From 8ae67a86d820548f9e22669f2ea0123a00119eab Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 27 Sep 2024 16:13:44 +0000 Subject: [PATCH] feat: initial code commit (#1) Placeholder website until the real thing is ready Reviewed-on: https://codeberg.org/reflect/website/pulls/1 Co-authored-by: Victor Westerlund Co-committed-by: Victor Westerlund --- .gitignore | 22 ++++++++++++++ assets/css/pages/index.css | 27 +++++++++++++++++ assets/css/shells/document.css | 55 ++++++++++++++++++++++++++++++++++ assets/media/logo.svg | 1 + public/error.php | 4 +++ public/index.php | 11 +++++++ shells/document.php | 16 ++++++++++ 7 files changed, 136 insertions(+) create mode 100755 .gitignore create mode 100644 assets/css/pages/index.css create mode 100644 assets/css/shells/document.css create mode 100644 assets/media/logo.svg create mode 100644 public/error.php create mode 100644 public/index.php create mode 100644 shells/document.php diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..526737f --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# Public assets # +################# +public/robots.txt +public/.well-known + +# Bootstrapping # +################# +vendor +node_modules +.env.ini + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +Icon? +ehthumbs.db +Thumbs.db +.directory diff --git a/assets/css/pages/index.css b/assets/css/pages/index.css new file mode 100644 index 0000000..3d13bbe --- /dev/null +++ b/assets/css/pages/index.css @@ -0,0 +1,27 @@ +main { + display: flex; + flex-direction: column; + align-items: center; + gap: var(--padding); + padding: var(--padding); + border-radius: 6px; + background-color: white; + border: solid 1px rgba(var(--primer-color-reflect), .2); + margin: var(--padding); + text-align: center; +} + +main h1 { + color: var(--color-reflect); +} + +main svg { + width: clamp(20px, 100%, 100px); + border-radius: 16px; +} + +main .actions { + display: flex; + flex-direction: column; + gap: var(--padding); +} \ No newline at end of file diff --git a/assets/css/shells/document.css b/assets/css/shells/document.css new file mode 100644 index 0000000..aba7149 --- /dev/null +++ b/assets/css/shells/document.css @@ -0,0 +1,55 @@ +:root { + --primer-color-reflect: 220, 26, 0; + --color-reflect: rgb(var(--primer-color-reflect)); + + --padding: 20px; +} + +html, +body { + width: 100%; + height: 100svh; +} + +body { + display: grid; + align-items: center; + justify-items: center; + background-color: rgba(var(--primer-color-reflect), .1); +} + +* { + margin: 0; + fill: inherit; + color: inherit; + font-family: monospace; +} + +h1 { + font-size: 30px; + letter-spacing: .1em; +} + +p { + font-size: 17px; +} + +button { + width: 100%; + color: var(--color-reflect); + padding: 10px 15px; + border: solid 1px var(--color-reflect); + background-color: transparent; + border-radius: 4px; + cursor: pointer; +} + +button.solid { + color: white; + background-color: var(--color-reflect); +} + +button:hover { + color: var(--color-reflect); + background-color: rgba(var(--primer-color-reflect), .1); +} \ No newline at end of file diff --git a/assets/media/logo.svg b/assets/media/logo.svg new file mode 100644 index 0000000..39d0f60 --- /dev/null +++ b/assets/media/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/error.php b/public/error.php new file mode 100644 index 0000000..f4e6220 --- /dev/null +++ b/public/error.php @@ -0,0 +1,4 @@ +
+

404 Not found

+

Sorry, there is nothing to show here

+
\ No newline at end of file diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..4e2687b --- /dev/null +++ b/public/index.php @@ -0,0 +1,11 @@ + +
+ +

WORK IN PROGRESS

+

Sorry, this website is still under construction

+

You can find the source for the Reflect API framework on Codeberg and on git.vlw.se

+ +
\ No newline at end of file diff --git a/shells/document.php b/shells/document.php new file mode 100644 index 0000000..1019d83 --- /dev/null +++ b/shells/document.php @@ -0,0 +1,16 @@ + + + + + + + + + Reflect + + + + + + + \ No newline at end of file