From d77eaa7b4a5a8acda412ddd27f5a76e16305bacb Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Sun, 11 Dec 2022 15:36:51 +0100 Subject: [PATCH] add depth styling, index page stats, footer margin --- components/Footer/Footer.tsx | 2 +- components/Navigation/Navigation.module.scss | 3 ++ pages/index.tsx | 30 ++++++++---- styles/Index.module.scss | 49 ++++++++++++++++++++ styles/globals.scss | 2 + 5 files changed, 75 insertions(+), 11 deletions(-) diff --git a/components/Footer/Footer.tsx b/components/Footer/Footer.tsx index 93c72fa..c9328af 100644 --- a/components/Footer/Footer.tsx +++ b/components/Footer/Footer.tsx @@ -2,7 +2,7 @@ import Link from "next/link"; const Footer = () => { return ( -
+

© Gractwo 2020-{new Date().getFullYear()} diff --git a/components/Navigation/Navigation.module.scss b/components/Navigation/Navigation.module.scss index 76d3990..4ae69e4 100644 --- a/components/Navigation/Navigation.module.scss +++ b/components/Navigation/Navigation.module.scss @@ -2,6 +2,9 @@ display: flex; background-color: var(--black1); height: 4rem; + position: relative; + z-index: 10; + box-shadow: var(--shadow0); } .link { display: flex; diff --git a/pages/index.tsx b/pages/index.tsx index 39b8406..f10a84b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -31,16 +31,26 @@ const PageIndex = () => {

Warto naznaczyć, że strona jest w trakcie remontu.

-
-

Hejo!

-

- Gractwo istnieje od{" "} - {Math.floor( - (Date.now() - new Date("2020-07-06").getTime()) / 86400000 - )}{" "} - dni. -

-
+
+
+
+

~200

+

członków na discordzie

+
+
+

+ {Math.floor( + (Date.now() - new Date("2020-07-06").getTime()) / 86400000 + )} +

+

dni istnienia gractwa

+
+
+

dużo

+

wysłanych wiadomości

+
+
+
); }; diff --git a/styles/Index.module.scss b/styles/Index.module.scss index 49d3162..c76545b 100644 --- a/styles/Index.module.scss +++ b/styles/Index.module.scss @@ -43,3 +43,52 @@ cursor: pointer; } } +.statscontainer { + background: var(--black1); + box-shadow: var(--shadow0); +} +.stats { + display: flex; + flex-direction: row; + justify-content: center; + article { + display: flex; + flex-direction: column; + align-items: center; + border: 1px solid var(--grey); + padding: 0 4rem; + border-top: none; + border-bottom: none; + font-size: 1.35em; + text-align: center; + h1 { + font-size: 2em; + } + &:first-of-type { + border-left: none; + } + &:last-of-type { + border-right: none; + } + } + @media screen and (max-width: 800px) { + padding-top: 0; + flex-direction: column; + article { + font-size: 1em; + padding: 0.5rem 0; + border: 1px solid var(--grey); + border-left: 0; + border-right: 0; + border-top: 0; + &:first-of-type { + padding-top: 0; + border-top: 0; + } + &:last-of-type { + padding-bottom: 0; + border-bottom: 0; + } + } + } +} diff --git a/styles/globals.scss b/styles/globals.scss index eba1430..1222254 100644 --- a/styles/globals.scss +++ b/styles/globals.scss @@ -5,7 +5,9 @@ --black2: #2c2c2c; --black3: #1d1d1d; --white0: #eee; + --grey: #444; --accent: #61f2ea; + --shadow0: 0 0 1rem rgba(0, 0, 0, 0.35); --fonts-norm: "Quicksand", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; --fonts-bold: "Lexend", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,