From 29917cb61210aef47b1f79ad68326457e55bca17 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 2 Dec 2025 14:26:29 -0500 Subject: Advent --- Makefile | 56 +++++++++++++++++++------------------- main.css | 68 +++++++++++++++++++++++++++++++++++++++++++++++ templates/api/advent.html | 30 +++++++++++++++++++++ 3 files changed, 126 insertions(+), 28 deletions(-) create mode 100644 templates/api/advent.html diff --git a/Makefile b/Makefile index 84c6d69..02b9b58 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all dist clean api deploy_pubnix pubnix extension +.PHONY: all clean dist extension deploy_api api deploy_pubnix pubnix deploy_auth auth deploy_greencircle greencircle TEMPLATES_API=$(shell ls templates/api) TEMPLATES_PUBNIX=$(shell ls templates/pubnix) @@ -7,6 +7,10 @@ TEMPLATES_GREENCIRCLE=$(shell ls templates/greencircle) all: api pubnix extension auth greencircle +clean: + rm main.js + rm -r dist/ + dist: mkdir -p dist/api/test mkdir -p dist/api/deploy @@ -20,6 +24,29 @@ dist: main.js: $(shell find src) purs-nix bundle +# extension +extension: dist dist/extension/assets dist/extension/manifest.json dist/extension/background.js dist/extension/main.js dist/extension/main.css dist/extension/config.js + +dist/extension/main.css: extension/main.css dist + cp $< $@ + +dist/extension/manifest.json: extension/manifest.dhall dist + dhall-to-json <$< >$@ + +dist/extension/config.js: config/extension.js dist + cp $< $@ + +dist/extension/main.js: main.js dist + cp $< $@ + +dist/extension/%: extension/% dist + cp $< $@ + +dist/extension/assets: $(shell find assets) dist + rm -rf $@ + mkdir -p $@ + cp -r assets/* $@ + # api deploy_api: dist $(addprefix dist/api/deploy/,$(TEMPLATES_API)) dist/api/deploy/assets dist/api/deploy/main.js dist/api/deploy/main.css dist/api/deploy/newton dist/api/deploy/ranch @@ -122,30 +149,3 @@ dist/greencircle/%/$(template): config/%.m4 templates/greencircle/$(template) sh -c "m4 $$^ >$$@" endef $(foreach template,$(TEMPLATES_GREENCIRCLE), $(eval $(GEN_RULE_GREENCIRCLE))) - -# extension -extension: dist dist/extension/assets dist/extension/manifest.json dist/extension/background.js dist/extension/main.js dist/extension/main.css dist/extension/config.js - -dist/extension/main.css: extension/main.css dist - cp $< $@ - -dist/extension/manifest.json: extension/manifest.dhall dist - dhall-to-json <$< >$@ - -dist/extension/config.js: config/extension.js dist - cp $< $@ - -dist/extension/main.js: main.js dist - cp $< $@ - -dist/extension/%: extension/% dist - cp $< $@ - -dist/extension/assets: $(shell find assets) dist - rm -rf $@ - mkdir -p $@ - cp -r assets/* $@ - -clean: - rm main.js - rm -r dist/ diff --git a/main.css b/main.css index 6b1511b..e3e30f2 100644 --- a/main.css +++ b/main.css @@ -663,3 +663,71 @@ a.lcolonq-button-link :active { margin-top: 0px; margin-bottom: 0.5rem; } + +/* advent */ +#lcolonq-advent { + overflow-y: scroll; + color: white; + background-color: black; + min-height: 100vh; + height: auto; + display: flex; + flex-direction: column; + align-items: center; +} +#lcolonq-advent-container { + height: 100%; + margin-left: 3rem; + margin-right: 3rem; +} +.lcolonq-advent-header { + text-align: center; + padding-bottom: 1rem; +} +.lcolonq-advent-header h1 { + margin-top: 0rem; + margin-bottom: 0rem; + font-size: 15vw; +} +.lcolonq-advent-subtitle { + font-weight: bold; +} +.lcolonq-advent-body { + margin-left: auto; + margin-right: auto; + max-width: 40rem; + text-align: justify; +} +.lcolonq-advent-link { + text +} +.lcolonq-advent-puzzle { + display: block; + text-decoration: none; + color: white; + border: solid; + border-color: white; + margin-top: 1rem; + padding: 0.5rem; +} +.lcolonq-advent-puzzle:hover { + background-color: #111111; +} +.lcolonq-advent-puzzle h3 { + margin: 0px; +} +.lcolonq-advent-puzzle-author { + font-weight: bold; +} +.lcolonq-advent-puzzle-body { + margin-left: 1rem; + margin-right: 1rem; +} +.lcolonq-advent-link { + text-decoration: none; + color: white; + font-weight: bold; +} +.lcolonq-advent-submit { + display: none; +} diff --git a/templates/api/advent.html b/templates/api/advent.html new file mode 100644 index 0000000..12375cb --- /dev/null +++ b/templates/api/advent.html @@ -0,0 +1,30 @@ + + + + + + adventure of advent of code 2025 + + + + +
+
+

aococ2k25

+ adventure of advent of code 2025 +
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +

puzzle 1 (2025-12-02)

+
author: LCOLONQ
+
+ Help the Order of Dana conduct their solstice ritual. + The ritual's instructions are just a little bit awkward. + You can figure them out, surely... +
+
+
+
+ + -- cgit v1.2.3