Skip to content

Commit 7b001b2

Browse files
committed
tailwind
1 parent e96d79b commit 7b001b2

File tree

14 files changed

+1827
-22
lines changed

14 files changed

+1827
-22
lines changed

danieldamkoehlernet/blog/static/css/style.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/*
12
body {
23
font-family: "Roboto", sans-serif;
34
font-size: 17px;
@@ -27,8 +28,8 @@ body {
2728
}
2829
2930
30-
/* Index pg - list of posts */
31+
!* Index pg - list of posts *!
3132
3233
.card {
3334
box-shadow: 0 16px 48px #E3E7EB;
34-
}
35+
}*/

danieldamkoehlernet/danieldamkoehlernet/settings.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/5.0/ref/settings/
1111
"""
12-
12+
import os
1313
from pathlib import Path
1414

1515
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -37,9 +37,14 @@
3737
'django.contrib.sessions',
3838
'django.contrib.messages',
3939
'django.contrib.staticfiles',
40-
'blog'
40+
'blog',
41+
'tailwind',
42+
'theme',
43+
'django_browser_reload',
4144
]
4245

46+
# TODO: keep browser reload last in Middleware and remove entirely from production
47+
4348
MIDDLEWARE = [
4449
'django.middleware.security.SecurityMiddleware',
4550
'django.contrib.sessions.middleware.SessionMiddleware',
@@ -48,6 +53,7 @@
4853
'django.contrib.auth.middleware.AuthenticationMiddleware',
4954
'django.contrib.messages.middleware.MessageMiddleware',
5055
'django.middleware.clickjacking.XFrameOptionsMiddleware',
56+
'django_browser_reload.middleware.BrowserReloadMiddleware',
5157
]
5258

5359
ROOT_URLCONF = 'danieldamkoehlernet.urls'
@@ -72,6 +78,11 @@
7278

7379
WSGI_APPLICATION = 'danieldamkoehlernet.wsgi.application'
7480

81+
TAILWIND_APP_NAME = 'theme'
82+
83+
INTERNAL_IPS = [
84+
"127.0.0.1"
85+
]
7586

7687
# Database
7788
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases

danieldamkoehlernet/danieldamkoehlernet/urls.py

+3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
from django.contrib import admin
1818
from django.urls import path, include
1919

20+
# TODO: remove browser reload from production
21+
2022
urlpatterns = [
2123
path('admin/', admin.site.urls),
2224
path('', include('blog.urls')),
25+
path('__reload__/', include('django_browser_reload.urls')),
2326
]

danieldamkoehlernet/requirements.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
arrow==1.3.0
2+
asgiref==3.7.2
3+
binaryornot==0.4.4
4+
certifi==2023.11.17
5+
chardet==5.2.0
6+
charset-normalizer==3.3.2
7+
click==8.1.7
8+
cookiecutter==2.5.0
9+
Django==5.0
10+
django-tailwind==3.6.0
11+
idna==3.6
12+
Jinja2==3.1.2
13+
markdown-it-py==3.0.0
14+
MarkupSafe==2.1.3
15+
mdurl==0.1.2
16+
Pygments==2.17.2
17+
python-dateutil==2.8.2
18+
python-slugify==8.0.1
19+
PyYAML==6.0.1
20+
requests==2.31.0
21+
rich==13.7.0
22+
six==1.16.0
23+
sqlparse==0.4.4
24+
text-unidecode==1.3
25+
types-python-dateutil==2.8.19.14
26+
urllib3==2.1.0
+29-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1+
{% load static %}
2+
{% load static tailwind_tags %}
13
<!DOCTYPE html>
24
<html lang="en">
3-
4-
{% load static %}
5-
6-
<head>
7-
<title>Daniel Damkoehler dot net</title>
8-
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
9-
<meta name="google" content="notranslate" />
5+
<head>
6+
<title>Daniel Damkoehler dot net</title>
107
<meta charset="UTF-8" />
118
<meta name="viewport" content="width=device-width, initial-scale=1" />
12-
<link rel="stylesheet" href="{% static 'css/style.css' %}" />
13-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
14-
crossorigin="anonymous" />
15-
</head>
9+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
10+
{% tailwind_css %}
11+
</head>
1612

17-
<body>
18-
<!-- Navigation -->
13+
<body class="bg-slate-300 font-sans leading-normal tracking-normal">
14+
<div class="container w-full bg-blue-300 h-12 grid grid-cols-2 gap-2">
15+
<div class="items-center"><h1>Daniel Damkoehler</h1></div>
16+
<div class="items-center">
17+
<nav>
18+
<div>
19+
<p>Navigation will go here.</p>
20+
</div>
21+
</nav>
22+
</div>
23+
</div>
24+
<div class="container mx-auto">
25+
<section class="flex">
26+
{% block content %}
27+
<!-- Content Goes here -->
28+
{% endblock content %}
29+
</section>
30+
<!-- &lt;!&ndash; Navigation &ndash;&gt;
1931
<nav class="navbar navbar-expand-lg navbar-light bg-light shadow" id="mainNav">
2032
<div class="container-fluid">
2133
<a class="navbar-brand" href="{% url 'home' %}">daniel damkoehler</a>
@@ -37,13 +49,12 @@
3749
</ul>
3850
</div>
3951
</div>
40-
</nav>
41-
{% block content %}
42-
<!-- Content Goes here -->
43-
{% endblock content %}
52+
</nav>-->
53+
</div>
54+
4455
<!-- Footer -->
4556
<footer class="py-3 bg-grey">
4657
<p class="m-0 text-dark text-center ">Copyright &copy; Daniel Damkoehler</p>
4758
</footer>
48-
</body>
59+
</body>
4960
</html>

danieldamkoehlernet/theme/__init__.py

Whitespace-only changes.

danieldamkoehlernet/theme/apps.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class ThemeConfig(AppConfig):
5+
name = 'theme'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

0 commit comments

Comments
 (0)