Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 86f14ad68a | |||
| 1a0ffead5a | |||
| 719956341c | |||
| 2a1e6dc8a4 | |||
| 6b19a55655 | |||
| a2b9d445e4 | |||
| a14306cce4 | |||
| 43f42a8274 |
@@ -1,10 +1,31 @@
|
||||
name: Build and publish container
|
||||
|
||||
# Only run when files that affect the built image change. Updates to CI
|
||||
# config, Renovate config, or docs (e.g. a Renovate bump of the checkout
|
||||
# action) do not change the image and so do not trigger a build or release.
|
||||
# Use workflow_dispatch to run manually after a pipeline change.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'default.conf'
|
||||
- 'index.html'
|
||||
- 'styles.css'
|
||||
- 'script.js'
|
||||
- 'messages.js'
|
||||
- '.dockerignore'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'default.conf'
|
||||
- 'index.html'
|
||||
- 'styles.css'
|
||||
- 'script.js'
|
||||
- 'messages.js'
|
||||
- '.dockerignore'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Lightweight, non-root nginx serving the static site.
|
||||
# Runs as user "nginx" and listens on 8080, ready to sit behind an
|
||||
# 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 --chown=nginx:nginx index.html styles.css script.js messages.js /usr/share/nginx/html/
|
||||
|
||||
+9
-4
@@ -11,8 +11,13 @@
|
||||
*/
|
||||
|
||||
const MESSAGES = [
|
||||
"PLACEHOLDER: write your first reason here",
|
||||
"PLACEHOLDER: write another reason here",
|
||||
// Add as many entries as you like, one per line:
|
||||
// "Your reason here",
|
||||
"Maggie came back, she was unimpressed",
|
||||
"They mixed up the B23s and the 2024 tube stock",
|
||||
"The computer went on strike",
|
||||
"Leaves on the track",
|
||||
"Escalators broke at Cutty Sark",
|
||||
"EHRC decided it was woke",
|
||||
"JK Rowling",
|
||||
"Kaiju",
|
||||
"28 Days Later happened",
|
||||
];
|
||||
|
||||
+8
-10
@@ -10,7 +10,6 @@
|
||||
/* Modern DLR — turquoise/teal */
|
||||
[data-theme="modern"] {
|
||||
--bg: #00afaa;
|
||||
--bg-accent: #007e7a;
|
||||
--surface: #ffffff;
|
||||
--text: #ffffff;
|
||||
--message: #ffffff;
|
||||
@@ -20,17 +19,16 @@
|
||||
--button-active-text: #ffffff;
|
||||
}
|
||||
|
||||
/* Original DLR — 1987 red and blue */
|
||||
/* Original DLR — 1987 red, white and blue */
|
||||
[data-theme="original"] {
|
||||
--bg: #002b5c;
|
||||
--bg-accent: #c8102e;
|
||||
--surface: #f5f0e1;
|
||||
--text: #f5f0e1;
|
||||
--message: #f5f0e1;
|
||||
--bg: #f5f0e1;
|
||||
--surface: #002b5c;
|
||||
--text: #002b5c;
|
||||
--message: #002b5c;
|
||||
--button-bg: #c8102e;
|
||||
--button-text: #f5f0e1;
|
||||
--button-active-bg: #f5f0e1;
|
||||
--button-active-text: #002b5c;
|
||||
--button-active-bg: #002b5c;
|
||||
--button-active-text: #f5f0e1;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -44,7 +42,7 @@ body {
|
||||
flex-direction: column;
|
||||
font-family: var(--font-stack);
|
||||
color: var(--text);
|
||||
background: linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
|
||||
background: var(--bg);
|
||||
transition: background 0.4s ease, color 0.4s ease;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user