This repository has been archived on 2026-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web/pages/index.tsx

43 lines
1.1 KiB
TypeScript

import styles from "../styles/Index.module.scss";
import { useEffect, useState } from "react";
import SEO from "../components/SEO";
import config from "../data/config.json";
const PageIndex = () => {
const [splash, setSplash] = useState("");
useEffect(() => {
setSplash(
config.splashes[Math.floor(Math.random() * config.splashes.length)].body
);
}, []);
const welcometext: string =
"Witamy na witrynie internetowej Gractwa. Mamy nadzieję że odnajdziesz czego szukasz, zbłąkana duszo.";
return (
<>
<SEO />
<div className={styles.hero}>
<div className={styles.heroinside}>
<h1>&bdquo;{splash || "..."}&rdquo;</h1>
<p>{welcometext}</p>
<br />
<p>Warto naznaczyć, że strona jest w trakcie remontu.</p>
</div>
</div>
<div className={styles.stats}>
<h1>Hejo!</h1>
<p>
Gractwo istnieje od{" "}
{Math.floor(
// (Date.now() - new Date("06.07.2020").getTime()) / 86400000
(Date.now() - new Date("2020-07-06").getTime()) / 86400000
)}
{" dni"}.
</p>
</div>
</>
);
};
export default PageIndex;