From 3062c41476531dc5988039cb10e746054435bc84 Mon Sep 17 00:00:00 2001 From: mortendk Date: Fri, 3 Feb 2023 16:08:52 +0100 Subject: [PATCH] remove splashscreen keep the stuff thats needed to maintain down --- .nova/Tasks/splash screens.json | 21 --------------- README.md | 5 ---- package.json | 5 +--- src/content/_data/site.json | 3 +-- src/content/styleguide/09-global/30-pwa.njk | 7 ----- .../systempages/pwa-splashscreen-dark.njk | 5 ---- src/system/systempages/pwa-splashscreen.njk | 5 ---- src/themes/grunn/README.md | 5 +--- src/themes/grunn/assets/css/style.css | 25 ++++-------------- .../layouts/system/pwa-splashscreen-dark.njk | 25 ------------------ .../grunn/layouts/system/pwa-splashscreen.njk | 26 ------------------- src/themes/nakinn/README.md | 5 +--- .../layouts/system/pwa-splashscreen-dark.njk | 25 ------------------ .../layouts/system/pwa-splashscreen.njk | 26 ------------------- 14 files changed, 9 insertions(+), 179 deletions(-) delete mode 100644 .nova/Tasks/splash screens.json delete mode 100644 src/system/systempages/pwa-splashscreen-dark.njk delete mode 100644 src/system/systempages/pwa-splashscreen.njk delete mode 100644 src/themes/grunn/layouts/system/pwa-splashscreen-dark.njk delete mode 100644 src/themes/grunn/layouts/system/pwa-splashscreen.njk delete mode 100644 src/themes/nakinn/layouts/system/pwa-splashscreen-dark.njk delete mode 100644 src/themes/nakinn/layouts/system/pwa-splashscreen.njk diff --git a/.nova/Tasks/splash screens.json b/.nova/Tasks/splash screens.json deleted file mode 100644 index d264f7c0..00000000 --- a/.nova/Tasks/splash screens.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "actions" : { - "build" : { - "enabled" : true, - "postActions" : [ - { - "script" : "npm start", - "type" : "runScript" - }, - { - "script" : "npm run splash-screens:build", - "type" : "runScript" - } - ], - "script" : "npm run splash-screens:build" - }, - "run" : { - "enabled" : true - } - } -} diff --git a/README.md b/README.md index 95e31b9e..05af8cde 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,6 @@ The are configured in /saga11.config.js 🪲 bugs & comments [github](https://github.com/mortendk/saga11) -📲 PWA statupscreen - -``` -$ npm run splash-screens:build -``` 🗑 Cleanup the build folder diff --git a/package.json b/package.json index b4554066..ec9b6113 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,7 @@ "tw:build": "npx tailwindcss -c src/themes/grunn/tailwind.config.js -i src/themes/grunn/tailwind/tailwind.css -o src/themes/grunn/assets/css/style.min.css --minify", "tw:watch": "npx tailwindcss -c src/themes/grunn/tailwind.config.js -i src/themes/grunn/tailwind/tailwind.css -o src/themes/grunn/assets/css/style.css --watch", "cleanup": "rm -rf _site", - "upgrade": "npm update & npm install -D tailwindcss@latest & npm install -D @tailwindcss/typography@latest & npm install -D @tailwindcss/forms@latest", - "splash-screens:build": "npm run splash-screens:screen & npm run splash-screens:screendark", - "splash-screens:screen": "npx pwa-asset-generator http://localhost:3791/pwa-splashscreen/ src/themes/grunn/assets/splash_screens --path-override '/assets/splash_screens' -i src/themes/grunn/assets/splash_screens/index.html --splash-only ", - "splash-screens:screendark": "npx pwa-asset-generator http://localhost:3791/pwa-splashscreen-dark/ src/themes/grunn/assets/splash_screens --path-override '/assets/splash_screens' -i src/themes/grunn/assets/splash_screens/index.html --splash-only --dark-mode" + "upgrade": "npm update & npm install -D tailwindcss@latest & npm install -D @tailwindcss/typography@latest & npm install -D @tailwindcss/forms@latest" }, "keywords": [], "author": "mortendk", diff --git a/src/content/_data/site.json b/src/content/_data/site.json index 7c0749cd..d1b7f826 100644 --- a/src/content/_data/site.json +++ b/src/content/_data/site.json @@ -7,11 +7,10 @@ "authoremail": "Ragnar@valhalla", "mastodon_verification": "", "rss": true, - "splashscreen": true, "authorname": "Ragnar", "country": "denmark", "errorpage": "404 !", "title": "Saga 11", "icon": "", "description": "saga 11" -} \ No newline at end of file +} diff --git a/src/content/styleguide/09-global/30-pwa.njk b/src/content/styleguide/09-global/30-pwa.njk index 7cf903db..57dc6f7e 100644 --- a/src/content/styleguide/09-global/30-pwa.njk +++ b/src/content/styleguide/09-global/30-pwa.njk @@ -5,11 +5,4 @@ title: pwa Theres 2 splacescreens: - - - - diff --git a/src/system/systempages/pwa-splashscreen-dark.njk b/src/system/systempages/pwa-splashscreen-dark.njk deleted file mode 100644 index d07bbb05..00000000 --- a/src/system/systempages/pwa-splashscreen-dark.njk +++ /dev/null @@ -1,5 +0,0 @@ ---- -permalink: /pwa-splashscreen-dark/ -layout: system/pwa-splashscreen-dark.njk -eleventyExcludeFromCollections: true ---- diff --git a/src/system/systempages/pwa-splashscreen.njk b/src/system/systempages/pwa-splashscreen.njk deleted file mode 100644 index b3251379..00000000 --- a/src/system/systempages/pwa-splashscreen.njk +++ /dev/null @@ -1,5 +0,0 @@ ---- -permalink: /pwa-splashscreen/ -layout: system/pwa-splashscreen.njk -eleventyExcludeFromCollections: true ---- diff --git a/src/themes/grunn/README.md b/src/themes/grunn/README.md index d28727b9..1a7256fe 100644 --- a/src/themes/grunn/README.md +++ b/src/themes/grunn/README.md @@ -14,9 +14,6 @@ package.json "tw:watch": "npx tailwindcss -c src/themes/grunn/tailwind.config.js -i src/themes/grunn/tailwind/tailwind.css -o src/themes/grunn/assets/css/style.css --watch", "tw:build": "npx tailwindcss -c src/themes/grunn/tailwind.config.js -i src/themes/grunn/tailwind/tailwind.css -o src/themes/grunn/assets/css/style.min.css --minify", "build": "npm run tw:build && npm run debug ", - "debug": "ELEVENTY_ENV=prod DEBUG=* eleventy", - "splash-screens:build": "npm run splash-screens:screen & npm run splash-screens:screendark", - "splash-screens:screen": "npx pwa-asset-generator http://localhost:3791/pwa-splashscreen/ src/themes/grunn/assets/splash_screens --path-override '/assets/splash_screens' -i src/themes/grunn/assets/splash_screens/index.html --splash-only ", - "splash-screens:screendark": "npx pwa-asset-generator http://localhost:3791/pwa-splashscreen-dark/ src/themes/grunn/assets/splash_screens --path-override '/assets/splash_screens' -i src/themes/grunn/assets/splash_screens/index.html --splash-only --dark-mode" + "debug": "ELEVENTY_ENV=prod DEBUG=* eleventy" }, ``` diff --git a/src/themes/grunn/assets/css/style.css b/src/themes/grunn/assets/css/style.css index 01ea028c..9e34ba22 100644 --- a/src/themes/grunn/assets/css/style.css +++ b/src/themes/grunn/assets/css/style.css @@ -763,6 +763,11 @@ form button:focus { max-width: 65ch; } +.prose :where(p):not(:where([class~="not-prose"] *)) { + margin-top: 1.25em; + margin-bottom: 1.25em; +} + .prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) { color: var(--tw-prose-lead); font-size: 1.25em; @@ -1115,11 +1120,6 @@ form button:focus { line-height: 1.75; } -.prose :where(p):not(:where([class~="not-prose"] *)) { - margin-top: 1.25em; - margin-bottom: 1.25em; -} - .prose :where(video):not(:where([class~="not-prose"] *)) { margin-top: 2em; margin-bottom: 2em; @@ -2327,22 +2327,11 @@ form button:focus { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-neutral-800 { - --tw-gradient-from: #1f2937; - --tw-gradient-to: rgb(31 41 55 / 0); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - .via-purple-500 { --tw-gradient-to: rgb(168 85 247 / 0); --tw-gradient-stops: var(--tw-gradient-from), #a855f7, var(--tw-gradient-to); } -.via-neutral-700 { - --tw-gradient-to: rgb(55 65 81 / 0); - --tw-gradient-stops: var(--tw-gradient-from), #374151, var(--tw-gradient-to); -} - .to-neutral-900 { --tw-gradient-to: #111827; } @@ -2351,10 +2340,6 @@ form button:focus { --tw-gradient-to: #ec4899; } -.to-neutral-800 { - --tw-gradient-to: #1f2937; -} - .object-cover { -o-object-fit: cover; object-fit: cover; diff --git a/src/themes/grunn/layouts/system/pwa-splashscreen-dark.njk b/src/themes/grunn/layouts/system/pwa-splashscreen-dark.njk deleted file mode 100644 index 6361b640..00000000 --- a/src/themes/grunn/layouts/system/pwa-splashscreen-dark.njk +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: "PWA Splashscreen Dark" -layout: html.njk ---- - -{# PWA setup ------------------------------------------------- -Instead of fiddeling with a bunch of design tools we can build the pwa screens in -html and css - use the pwa: in package.json -#} -{%- if env.mode != 'prod' %}{%- endif -%} - - - -
- - {% include "svg/saga11.svg" %} - -
- {{ site.title }} -
- - - -
diff --git a/src/themes/grunn/layouts/system/pwa-splashscreen.njk b/src/themes/grunn/layouts/system/pwa-splashscreen.njk deleted file mode 100644 index d210d274..00000000 --- a/src/themes/grunn/layouts/system/pwa-splashscreen.njk +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: "PWA Splashscreen" -layout: html.njk ---- -{# PWA setup ------------------------------------------------- -Instead of fiddeling with a bunch of design tools we can build the pwa screens in -html and css - use the pwa: in package.json -#} -{%- if env.mode != 'prod' %}{%- endif -%} - - - -
- - - {% include "svg/saga11.svg" %} - - -
- {{ site.title }} -
- - - -
diff --git a/src/themes/nakinn/README.md b/src/themes/nakinn/README.md index 959c1539..250ab8db 100644 --- a/src/themes/nakinn/README.md +++ b/src/themes/nakinn/README.md @@ -44,10 +44,7 @@ Heres a clean version "cleanup": "rm -rf _site", "watch": "npx @11ty/eleventy --serve --quiet", "build": "npm run debug", - "debug": "ELEVENTY_ENV=prod DEBUG=* eleventy", - "splash-screens:build": "npm run splash-screens:screen & npm run splash-screens:screendark", - "splash-screens:screen": "npx pwa-asset-generator http://localhost:3791/pwa-splashscreen/ src/themes/grunn/assets/splash_screens --path-override '/assets/splash_screens' -i src/themes/grunn/assets/splash_screens/index.html --splash-only ", - "splash-screens:screendark": "npx pwa-asset-generator http://localhost:3791/pwa-splashscreen-dark/ src/themes/grunn/assets/splash_screens --path-override '/assets/splash_screens' -i src/themes/grunn/assets/splash_screens/index.html --splash-only --dark-mode" + "debug": "ELEVENTY_ENV=prod DEBUG=* eleventy" }, ``` diff --git a/src/themes/nakinn/layouts/system/pwa-splashscreen-dark.njk b/src/themes/nakinn/layouts/system/pwa-splashscreen-dark.njk deleted file mode 100644 index 728aa6b4..00000000 --- a/src/themes/nakinn/layouts/system/pwa-splashscreen-dark.njk +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: "PWA Splashscreen Dark" -layout: html.njk ---- - -{# PWA setup ------------------------------------------------- -Instead of fiddeling with a bunch of design tools we can build the pwa screens in -html and css - use the pwa: in package.json -#} -{%- if env.mode != 'prod' %}{%- endif -%} - - - - - - {% include "svg/saga11.svg" %} - - - {{ site.title }} - - - - - diff --git a/src/themes/nakinn/layouts/system/pwa-splashscreen.njk b/src/themes/nakinn/layouts/system/pwa-splashscreen.njk deleted file mode 100644 index 9538d8de..00000000 --- a/src/themes/nakinn/layouts/system/pwa-splashscreen.njk +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: "PWA Splashscreen" -layout: html.njk ---- -{# PWA setup ------------------------------------------------- -Instead of fiddeling with a bunch of design tools we can build the pwa screens in -html and css - use the pwa: in package.json -#} -{%- if env.mode != 'prod' %}{%- endif -%} - - - - - - - {% include "svg/saga11.svg" %} - - - - {{ site.title }} - - - - -