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
2022-12-10 23:58:09 +01:00

36 lines
919 B
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>Hello!</h1>
<p>This is the index test page.</p>
</div>
</>
);
};
export default PageIndex;