Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 65f97d2707 | |||
| ad90451846 | |||
| 1a0ffead5a | |||
| 719956341c | |||
| 2a1e6dc8a4 | |||
| 6b19a55655 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# Lightweight, non-root nginx serving the static site.
|
# Lightweight, non-root nginx serving the static site.
|
||||||
# Runs as user "nginx" and listens on 8080, ready to sit behind an
|
# Runs as user "nginx" and listens on 8080, ready to sit behind an
|
||||||
# external reverse proxy that terminates TLS and forwards requests.
|
# external reverse proxy that terminates TLS and forwards requests.
|
||||||
FROM nginxinc/nginx-unprivileged:1.27-alpine-slim
|
FROM nginxinc/nginx-unprivileged:1.31-alpine-slim@sha256:6616de6eaa82bc2ee3541fa287a8fca7dc7271e6374e9402014dbd13f4a980ae
|
||||||
|
|
||||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --chown=nginx:nginx index.html styles.css script.js messages.js /usr/share/nginx/html/
|
COPY --chown=nginx:nginx index.html styles.css script.js messages.js /usr/share/nginx/html/
|
||||||
|
|||||||
+9
-4
@@ -11,8 +11,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const MESSAGES = [
|
const MESSAGES = [
|
||||||
"PLACEHOLDER: write your first reason here",
|
"Maggie came back, she was unimpressed",
|
||||||
"PLACEHOLDER: write another reason here",
|
"They mixed up the B23s and the 2024 tube stock",
|
||||||
// Add as many entries as you like, one per line:
|
"The computer went on strike",
|
||||||
// "Your reason here",
|
"Leaves on the track",
|
||||||
|
"Escalators broke at Cutty Sark",
|
||||||
|
"EHRC decided it was woke",
|
||||||
|
"JK Rowling",
|
||||||
|
"Kaiju",
|
||||||
|
"28 Days Later happened",
|
||||||
];
|
];
|
||||||
|
|||||||
+13
-7
@@ -63,10 +63,13 @@ body {
|
|||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Segmented control: both options joined in one rounded container,
|
||||||
|
with the active segment filled. */
|
||||||
.theme-toggle {
|
.theme-toggle {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
gap: 0.5rem;
|
border: 2px solid var(--button-bg);
|
||||||
border: none;
|
border-radius: 999px;
|
||||||
|
overflow: hidden;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -75,19 +78,22 @@ body {
|
|||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1.1rem;
|
||||||
border: 2px solid var(--button-bg);
|
border: none;
|
||||||
border-radius: 999px;
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.2s ease, color 0.2s ease;
|
transition: background 0.2s ease, color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Divider between the two segments. */
|
||||||
|
.theme-button + .theme-button {
|
||||||
|
border-left: 2px solid var(--button-bg);
|
||||||
|
}
|
||||||
|
|
||||||
.theme-button[aria-pressed="true"] {
|
.theme-button[aria-pressed="true"] {
|
||||||
background: var(--button-active-bg);
|
background: var(--button-active-bg);
|
||||||
color: var(--button-active-text);
|
color: var(--button-active-text);
|
||||||
border-color: var(--button-active-bg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.stage {
|
.stage {
|
||||||
|
|||||||
Reference in New Issue
Block a user