From b4bb95e339b2769730d40979d4f7f36c5dfed2dc Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Wed, 15 May 2024 02:51:37 +0200 Subject: [PATCH] login register --- public/favicon.ico | Bin 11454 -> 13054 bytes public/index.html | 17 +++-- public/login/index.html | 36 +++++++++++ public/reader/index.html | 15 +++-- public/register/index.html | 36 +++++++++++ .../{reader/style.css => static/common.css} | 21 ++---- public/static/index.css | 25 ++++++++ public/{script.js => static/index.js} | 2 +- public/static/login.css | 47 ++++++++++++++ public/static/reader.css | 18 ++++++ public/{reader/script.js => static/reader.js} | 0 public/static/register.css | 47 ++++++++++++++ public/style.css | 60 ------------------ 13 files changed, 236 insertions(+), 88 deletions(-) create mode 100644 public/login/index.html create mode 100644 public/register/index.html rename public/{reader/style.css => static/common.css} (70%) create mode 100644 public/static/index.css rename public/{script.js => static/index.js} (97%) create mode 100644 public/static/login.css create mode 100644 public/static/reader.css rename public/{reader/script.js => static/reader.js} (100%) create mode 100644 public/static/register.css delete mode 100644 public/style.css diff --git a/public/favicon.ico b/public/favicon.ico index a9ebba4c1f73d2af822b7f50a1a8c83e67292d78..add4bd44ff8e50207b50b2bc7f2ed1413b06920a 100644 GIT binary patch literal 13054 zcmciI1(Y4d5(eN60TMVs(BK3oxI@t3?(XjH4hed2cMIbs`{&{XB!&2)c*D9(@^_=%7!6xH8k{WXlUqNJ8G92cB>t(x7J1) zX{5-bYuBz#=Xq`9kw=bEMj0i>8*jXFZ}!<|kLRC%KD6P(hnN2M-+zy7d<=bn4U8f&Z(M;viPy!hgaO=CTi&y|NO^9&m{EasYPu9$MlDP!uXr;aJ6 zm?C=h>J^huK6&))*|YT1O*dUkHPuvQ%sAtWQ^rg*(L^!nq?3l<ZkNx-GzsNM{2jqzWL_y{`>D2du7`&uxGksi?F%YR)eY9 z+8VpsYO58y?AEPY=~KU(Zn|l(iWFWt})pIdg>WlLOGXPtG5PGBVWLJKVv8*jXE@Ht#c=iJM0ioJ@r(HEe9QR zP@I1H>2c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1 100644 --- a/public/index.html +++ b/public/index.html @@ -3,17 +3,22 @@ - - - grill blog + + + + Materiel
-

grill blog

+ +

Materiel

+
-
dasdasdasd
+
+
dasdasdasd
+
- Copyright © 2024- The authors or something idk + Copyright © 2024 S. F. Jakobsen
diff --git a/public/login/index.html b/public/login/index.html new file mode 100644 index 0000000..c40b742 --- /dev/null +++ b/public/login/index.html @@ -0,0 +1,36 @@ + + + + + + + + + Materiel + + +
+ +

Materiel

+
+
+
+
+

Login

+ + +
+ + +
+ +
+
+
+ Copyright © 2024 S. F. Jakobsen +
+ + diff --git a/public/reader/index.html b/public/reader/index.html index 13cb320..60fb1d6 100644 --- a/public/reader/index.html +++ b/public/reader/index.html @@ -3,22 +3,25 @@ - - - grill blog reader + + + + Materiel
-

grill blog

+ +

Materiel

+
- Go back + Go back

Loading...

- Copyright © 2024- The authors or something idk + Copyright © 2024 S. F. Jakobsen
diff --git a/public/register/index.html b/public/register/index.html new file mode 100644 index 0000000..4818d86 --- /dev/null +++ b/public/register/index.html @@ -0,0 +1,36 @@ + + + + + + + + + Materiel + + +
+ +

Materiel

+
+
+
+
+

Register

+ + +
+ + +
+ +
+
+
+ Copyright © 2024 S. F. Jakobsen +
+ + diff --git a/public/reader/style.css b/public/static/common.css similarity index 70% rename from public/reader/style.css rename to public/static/common.css index 7bfdff5..b6a615d 100644 --- a/public/reader/style.css +++ b/public/static/common.css @@ -1,4 +1,5 @@ + * { box-sizing: border-box; } @@ -21,6 +22,11 @@ header { padding: 16px; } +header a { + color: unset; + text-decoration: none; +} + header h1 { margin: 0; } @@ -34,21 +40,6 @@ p { } main { - text-align: left; - max-width: 800px; - margin-left: auto; - margin-right: auto; padding-left: 16px; padding-right: 16px; } - -#content { - margin: auto; - max-width: 600px; -} - -#content p { - word-wrap: normal; -} - - diff --git a/public/static/index.css b/public/static/index.css new file mode 100644 index 0000000..39861ea --- /dev/null +++ b/public/static/index.css @@ -0,0 +1,25 @@ +a { + color: unset; + text-decoration: none; +} + + +#articles { + text-align: left; + max-width: 1500px; + margin-left: auto; + margin-right: auto; +} + +.article { + border-top: 2px solid; + border-bottom: 2px solid; + margin: 16px; + padding-left: 32px; + padding-right: 32px; +} + +.article:hover { + cursor: pointer; +} + diff --git a/public/script.js b/public/static/index.js similarity index 97% rename from public/script.js rename to public/static/index.js index 8928ab3..ce27f17 100644 --- a/public/script.js +++ b/public/static/index.js @@ -29,7 +29,7 @@ async function main() { const articles = await requestArticles(); articlesDiv.innerHTML = articles.map((article) => ` - +

${article.title}

${article.author}, ${ diff --git a/public/static/login.css b/public/static/login.css new file mode 100644 index 0000000..36766c6 --- /dev/null +++ b/public/static/login.css @@ -0,0 +1,47 @@ + + +form { + margin: auto; + display: flex; + flex-direction: column; + max-width: 400px; + align-items: start; + text-align: left; + gap: 0.2em; + +} + +br { + margin-top: 10px; +} + + +#action { + margin: auto; + display: flex; + flex-direction: column; + max-width: 200px; + align-items: start; + text-align: center; + gap: 0.2em; +} + +form > *, #action > * { + padding: 0.5em; + width: 100%; +} + +form h1 { + margin: 0; + padding-left: 0; + padding-right: 0; + text-align: center; + font-size: 1.5em; + border-bottom: 2px solid; + margin-bottom: 0.5em; +} + +a { + color: unset; +} + diff --git a/public/static/reader.css b/public/static/reader.css new file mode 100644 index 0000000..5b8d2f7 --- /dev/null +++ b/public/static/reader.css @@ -0,0 +1,18 @@ + +main { + text-align: left; + max-width: 800px; + margin-left: auto; + margin-right: auto; +} + +#content { + margin: auto; + max-width: 600px; +} + +#content p { + word-wrap: normal; +} + + diff --git a/public/reader/script.js b/public/static/reader.js similarity index 100% rename from public/reader/script.js rename to public/static/reader.js diff --git a/public/static/register.css b/public/static/register.css new file mode 100644 index 0000000..36766c6 --- /dev/null +++ b/public/static/register.css @@ -0,0 +1,47 @@ + + +form { + margin: auto; + display: flex; + flex-direction: column; + max-width: 400px; + align-items: start; + text-align: left; + gap: 0.2em; + +} + +br { + margin-top: 10px; +} + + +#action { + margin: auto; + display: flex; + flex-direction: column; + max-width: 200px; + align-items: start; + text-align: center; + gap: 0.2em; +} + +form > *, #action > * { + padding: 0.5em; + width: 100%; +} + +form h1 { + margin: 0; + padding-left: 0; + padding-right: 0; + text-align: center; + font-size: 1.5em; + border-bottom: 2px solid; + margin-bottom: 0.5em; +} + +a { + color: unset; +} + diff --git a/public/style.css b/public/style.css deleted file mode 100644 index 291f469..0000000 --- a/public/style.css +++ /dev/null @@ -1,60 +0,0 @@ - -* { - box-sizing: border-box; -} - -:root { - color-scheme: dark; -} - -body { - margin: 0; - height: 100vh; - text-align: center; -} - -header { - border-bottom: 2px solid; - margin-left: 16px; - margin-right: 16px; - margin-bottom: 16px; - padding: 16px; -} - -header h1 { - margin: 0; -} - -footer { - padding: 32px; -} - -p { - line-height: 1.6em; -} - -a { - color: unset; - text-decoration: none; -} - - -#articles { - text-align: left; - max-width: 1500px; - margin-left: auto; - margin-right: auto; -} - -.article { - border-top: 2px solid; - border-bottom: 2px solid; - margin: 16px; - padding-left: 32px; - padding-right: 32px; -} - -.article:hover { - cursor: pointer; -} -