From 7f4070fda8b7ffed39f8d9ad93ac5cbd5b571b1a Mon Sep 17 00:00:00 2001 From: Laurent <58115082+naaturel@users.noreply.github.com> Date: Fri, 11 Oct 2024 23:00:41 +0200 Subject: [PATCH] Add some style --- postcss.config.js | 6 ++ src/app.css | 125 ++++++++++++++++++++++++++ src/app.html | 1 + src/lib/assets/github-mark-white.svg | 1 + src/lib/assets/twitter-mark-white.svg | 1 + src/lib/components/NavLink.svelte | 37 ++++++++ src/routes/+layout.svelte | 36 ++++++++ src/routes/+page.svelte | 103 ++++++++++++++++++++- src/routes/about/+page.svelte | 1 + src/routes/play/+page.svelte | 4 + src/routes/play/+page.svlete | 0 static/favicon.png | Bin 1571 -> 0 bytes tailwind.config.ts | 11 +++ 13 files changed, 324 insertions(+), 2 deletions(-) create mode 100644 postcss.config.js create mode 100644 src/app.css create mode 100644 src/lib/assets/github-mark-white.svg create mode 100644 src/lib/assets/twitter-mark-white.svg create mode 100644 src/lib/components/NavLink.svelte create mode 100644 src/routes/+layout.svelte create mode 100644 src/routes/about/+page.svelte create mode 100644 src/routes/play/+page.svelte create mode 100644 src/routes/play/+page.svlete delete mode 100644 static/favicon.png create mode 100644 tailwind.config.ts diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..0f77216 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {} + } +}; diff --git a/src/app.css b/src/app.css new file mode 100644 index 0000000..e0fe217 --- /dev/null +++ b/src/app.css @@ -0,0 +1,125 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root +{ + --font-size : 1vw; +} + +* +{ + color: #F5F5F5; + text-decoration: none; + font-size: var(--font-size, 1vw); + transition: 0.3s; +} + +h1 +{ + font-size: calc(var(--font-size, 1vw) * 2.5); +} + +html +{ + /*background: linear-gradient(45deg, #102eff, #d2379b);*/ + background: linear-gradient(45deg, #b9b9c9, #d2379b); + height: 100vh; +} + +body +{ + display: flex; + height: 100vh; + align-items: center; + flex-direction: column; +} + +.container +{ + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; + + width: 75vw; + height: 75vh; +} + +hr { + height: 1px; + width: 100%; + background-color: #A1674A; + border: none; + +} + +nav +{ + display: flex; + align-self: start; + justify-content: space-around; + align-items: center; + + height: 5vh; + + margin-top: 2vh; + margin-bottom: 2vh; +} + +nav a +{ + margin-right: 2.5vw; + margin-left: 2.5vw; +} + +.nav_delimiter +{ + margin-bottom: 5vh; +} + +form +{ + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; + margin-bottom: 10vh; +} + +input +{ + color: #424242; + font-size: 2.5vh; + + width: 20vw; + height: 4.5vh; + + padding: 1vh; + margin: 1.5vh; + + text-align: center; +} + +.bordered +{ + border-radius: 10px; +} + +footer +{ + display: flex; + justify-content: end; + align-items: center; + + position: absolute; + bottom: 0.25vh; + margin-bottom: 0.25vh; + + width: 100vw; + height: 5vh; +} + +footer a { + margin-right: 2vh; +} \ No newline at end of file diff --git a/src/app.html b/src/app.html index 77a5ff5..284c860 100644 --- a/src/app.html +++ b/src/app.html @@ -1,6 +1,7 @@
+Visit kit.svelte.dev to read the documentation
+It was revealed to me in my dream
\ No newline at end of file diff --git a/src/routes/play/+page.svelte b/src/routes/play/+page.svelte new file mode 100644 index 0000000..2492b46 --- /dev/null +++ b/src/routes/play/+page.svelte @@ -0,0 +1,4 @@ + diff --git a/src/routes/play/+page.svlete b/src/routes/play/+page.svlete new file mode 100644 index 0000000..e69de29 diff --git a/static/favicon.png b/static/favicon.png deleted file mode 100644 index 825b9e65af7c104cfb07089bb28659393b4f2097..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1571 zcmV+;2Hg3HP)