diff options
| author | LLLL Colonq <llll@colonq> | 2025-12-02 14:26:29 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-12-02 14:26:29 -0500 |
| commit | 29917cb61210aef47b1f79ad68326457e55bca17 (patch) | |
| tree | 3f04204195fed50968afbf3e4787733e9dbb3fbd | |
| parent | c9b9b64d2bc50011bb425bc34c95e8dcb443d4ae (diff) | |
Advent
| -rw-r--r-- | Makefile | 56 | ||||
| -rw-r--r-- | main.css | 68 | ||||
| -rw-r--r-- | templates/api/advent.html | 30 |
3 files changed, 126 insertions, 28 deletions
@@ -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/ @@ -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 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> + <title>adventure of advent of code 2025</title> + <link rel="icon" href="./assets/mrgreen.png"> + <link rel="stylesheet" type="text/css" href="./main.css"> + </head> + <body id="lcolonq-advent"> + <div id="lcolonq-advent-container"> + <div class="lcolonq-advent-header"> + <h1>aococ2k25</h1> + <span class="lcolonq-advent-subtitle">adventure of advent of code 2025</span> + </div> + <div class="lcolonq-advent-body"> + 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. + <a class="lcolonq-advent-puzzle" href="/advent/puzzle/1"> + <h3>puzzle 1 (2025-12-02)</h3> + <div class="lcolonq-advent-puzzle-author">author: LCOLONQ</div> + <div class="lcolonq-advent-puzzle-body"> + 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... + </div> + </a> + </div> + </div> + </body> +</html> |
