overall tweaks for mobile + margins

This commit is contained in:
2022-12-11 01:44:20 +01:00
parent 0185e29512
commit aaf7403e21
7 changed files with 20 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ const PageError404 = () => {
return ( return (
<> <>
<SEO title="404" /> <SEO title="404" />
Error 404!! <main>Error 404 - nie znaleziono takiego URL.</main>
</> </>
); );
}; };

View File

@@ -4,7 +4,7 @@ const PageCytaty = () => {
return ( return (
<> <>
<SEO title="cytaty" /> <SEO title="cytaty" />
Miejsce na stronkę od cytatów. <main>Miejsce na stronkę od cytatów.</main>
</> </>
); );
}; };

View File

@@ -11,8 +11,7 @@ const PageIndex = () => {
config.splashes[Math.floor(Math.random() * config.splashes.length)].body config.splashes[Math.floor(Math.random() * config.splashes.length)].body
); );
}, []); }, []);
const welcometext: string = const welcometext: string = "Witamy na witrynie internetowej Gractwa."; // Mamy nadzieję że odnajdziesz czego szukasz, zbłąkana duszo.";
"Witamy na witrynie internetowej Gractwa. Mamy nadzieję że odnajdziesz czego szukasz, zbłąkana duszo.";
return ( return (
<> <>
<SEO /> <SEO />
@@ -24,17 +23,16 @@ const PageIndex = () => {
<p>Warto naznaczyć, że strona jest w trakcie remontu.</p> <p>Warto naznaczyć, że strona jest w trakcie remontu.</p>
</div> </div>
</div> </div>
<div className={styles.stats}> <main>
<h1>Hejo!</h1> <h1>Hejo!</h1>
<p> <p>
Gractwo istnieje od{" "} Gractwo istnieje od{" "}
{Math.floor( {Math.floor(
// (Date.now() - new Date("06.07.2020").getTime()) / 86400000
(Date.now() - new Date("2020-07-06").getTime()) / 86400000 (Date.now() - new Date("2020-07-06").getTime()) / 86400000
)} )}{" "}
{" dni"}. dni.
</p> </p>
</div> </main>
</> </>
); );
}; };

View File

@@ -4,7 +4,7 @@ const PageInfo = () => {
return ( return (
<> <>
<SEO title="o gractwie" /> <SEO title="o gractwie" />
Miejsce na stronkę od informacji nt. Gractwa. <main>Miejsce na stronkę od informacji nt. Gractwa.</main>
</> </>
); );
}; };

View File

@@ -4,7 +4,7 @@ const PageRankingi = () => {
return ( return (
<> <>
<SEO title="rankingi" /> <SEO title="rankingi" />
Miejsce na stronkę od rankingów. <main>Miejsce na stronkę od rankingów.</main>
</> </>
); );
}; };

View File

@@ -2,13 +2,13 @@
display: block; display: block;
width: 100%; width: 100%;
height: 28rem; height: 28rem;
@media screen and (max-width: 800px) {
height: 20rem;
}
overflow: hidden; overflow: hidden;
position: relative; position: relative;
border-left: none; border-left: none;
border-right: none; border-right: none;
@media screen and (max-width: 800px) {
height: 14rem;
}
} }
.hero::before { .hero::before {
position: absolute; position: absolute;
@@ -33,7 +33,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
text-align: center; text-align: center;
} @media screen and (max-width: 800px) {
.stats { transform: scale(0.85);
margin: 1rem 16rem; }
} }

View File

@@ -30,6 +30,11 @@ h3 {
padding: 0.5rem 0; padding: 0.5rem 0;
font-family: var(--fonts-bold); font-family: var(--fonts-bold);
} }
main {
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
}
/* html, /* html,
body { body {