Skip to content

Commit 3de2e88

Browse files
authored
figured out font colors, widths, style (#116)
1 parent a9b430e commit 3de2e88

File tree

6 files changed

+38
-40
lines changed

6 files changed

+38
-40
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ enter-server:
2323
docker exec -w /usr/share/nginx/html -it purajit.com sh
2424

2525
generate-pages-local: get-yass
26-
./generate_site.py yass_config_local.json
26+
uv run ./generate_site.py yass_config_local.json
2727

2828
# only used in local testing, but with "CDN" paths instead of local ones
2929
generate-pages-cdn: get-yass
30-
./generate_site.py yass_config_prod.json
30+
uv run ./generate_site.py yass_config_prod.json
3131

3232
clean:
3333
git clean -fd

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Jinja2==3.1.2
2+
marko

templates/footer.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<div class="v-spacer"></div>
21
<div class="force-dyad">ah, a force dyad</div>
32
</div>
43
</div>

templates/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
{% include 'head.html' %}
3-
<body class="bgimg" style="background-image: url({{ static_url }}/images/bg1-blurred.jpg);">
3+
<body class="bgimg">
44
<div id="main">
55
<div id="name">
66
<a href="{{ parent_page }}"></a>

templates/index.css

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,22 @@
2121
}
2222

2323
:root {
24-
--bg: #181a1b;
24+
--light-bg: #e5dcc3;
25+
--bg: #301f15;
2526
--text: #e8e6e3;
2627
--page-margin: 8%;
2728
}
2829

2930
body {
3031
font-family: "Libre Caslon Text";
3132
color: var(--text);
32-
background-color: var(--bg);
33-
margin: 0;
33+
background-color: var(--light-bg);
3434
width: 100%;
35+
display: flex;
36+
justify-content: center;
37+
padding-top: 8%;
38+
padding-bottom: 8%;
39+
margin: 0;
3540
}
3641

3742
/* overriding defaults */
@@ -70,7 +75,7 @@ input {
7075
code {
7176
background: #3A3B3C;
7277
border-left: 3px solid #f36d33;
73-
color: white;
78+
color: var(--light-bg);
7479
page-break-inside: avoid;
7580
font-family: "Lekton";
7681
font-size: 19px;
@@ -83,27 +88,18 @@ code {
8388
}
8489

8590
/* primary page elements that appear everywhere */
86-
.bgimg {
87-
/* actual image url in code to allow for static url templating */
88-
background-size: 100% 100%;
89-
position: absolute;
90-
background-attachment: fixed;
91-
}
92-
9391
#main {
9492
display: flex;
9593
flex-direction: column;
9694
font-weight: 500;
97-
margin: var(--page-margin) auto var(--page-margin) auto;
98-
min-width: 300px;
99-
max-width: 1350px;
95+
width: min(1000px, 100vw);
10096
}
10197

10298
#name {
10399
font-size: 60px;
104100
font-weight: bold;
105-
background-color: var(--text);
106-
color: var(--bg);
101+
background-color: var(--bg);
102+
color: var(--light-bg);
107103
width: fit-content;
108104
padding: 10px 10px 10px 10px;
109105
margin-bottom: 30px;
@@ -119,16 +115,21 @@ code {
119115
margin-bottom: 200px;
120116
}
121117

122-
#name > a, .contents-item > a {
123-
color: inherit;
118+
#name > a {
119+
color: var(--light-bg);
120+
text-decoration: none;
121+
}
122+
123+
.contents-item > a {
124+
color: var(--bg);
124125
text-decoration: none;
125126
}
126127

127128
.contents-item {
128129
font-size: 45px;
129130
width: fit-content;
130131
padding: 10px 10px 10px 10px;
131-
background-color: black;
132+
/* background-color: var(--bg); */
132133
}
133134

134135
.contents-item:not(:first-of-type) {
@@ -146,22 +147,22 @@ code {
146147
width: 100%;
147148
padding: 50px;
148149
font-size: 25px;
149-
background: black;
150+
background: var(--bg);
150151
border-radius: 20px;
151152
box-sizing: border-box;
152153
}
153154

154155
.writing {
155-
background: white;
156-
color: black;
156+
background: var(--bg);
157+
color: D7CDB0;
157158
}
158159

159160
.preserve-whitespace {
160161
white-space: pre-wrap;
161162
}
162163

163164
.writing-title {
164-
color: darksalmon;
165+
color: var(--light-bg);
165166
}
166167

167168
/* tables
@@ -185,7 +186,7 @@ code {
185186

186187
.table-column {
187188
flex: 1;
188-
border: 1px solid white;
189+
border: 1px solid var(--light-bg);
189190
min-height: 40px;
190191
display: flex;
191192
align-items: center;
@@ -198,12 +199,12 @@ code {
198199
}
199200

200201
.table-column:not(:nth-last-of-type(1)) {
201-
border-right: 1px solid white;
202+
border-right: 1px solid var(--light-bg);
202203
}
203204

204205
.table-header {
205-
background-color: white !important;
206-
color: black;
206+
background-color: var(--light-bg) !important;
207+
color: var(--bg);
207208
font-weight: bold;
208209
position: sticky;
209210
top: 0;
@@ -304,7 +305,7 @@ code {
304305
height: 300px;
305306
resize: none;
306307
border: none;
307-
border-bottom: 1px solid rgba(172, 225, 110, 0.5);
308+
border-bottom: 1px solid var(--light-bg);
308309
background: transparent;
309310
outline: none;
310311
color: var(--text);
@@ -313,7 +314,7 @@ code {
313314
margin-top: 30px;
314315
}
315316

316-
#hourglass-form {
317+
#hourglass-form {
317318
margin-top: 10px;
318319
margin-bottom: 10px;
319320
}
@@ -350,13 +351,10 @@ code {
350351
justify-content: center;
351352
margin-left: 10px;
352353
margin-right: 10px;
353-
height:
354-
var(--cs-height-min);
354+
height: var(--cs-height-min);
355355
cursor: pointer;
356356
user-select: none;
357-
transition: brightness 0.1s ease, filter 0.1s ease;
358357
border-radius: 5px;
359-
filter: brightness(150%);
360-
background: grey;
361-
color: black;
358+
background: var(--light-bg);
359+
color: var(--bg);
362360
}

templates/template_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
{% include 'head.html' %}
3-
<body class="bgimg" style="background-image: url({{ static_url }}/images/bg1-blurred.jpg);">
3+
<body class="bgimg">
44
<div id="main" class="index-page">
55
<div id="name">
66
{{ title }}

0 commit comments

Comments
 (0)