This commit is contained in:
2022-12-10 23:58:09 +01:00
parent 29da22d579
commit acda284da1
25 changed files with 799 additions and 111 deletions

View File

@@ -1,71 +1,35 @@
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
import styles from "../styles/Index.module.scss";
export default function Home() {
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
import { useEffect, useState } from "react";
import SEO from "../components/SEO";
import config from "../data/config.json";
<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1>
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>
</>
);
};
<p className={styles.description}>
Get started by editing{' '}
<code className={styles.code}>pages/index.tsx</code>
</p>
<div className={styles.grid}>
<a href="https://nextjs.org/docs" className={styles.card}>
<h2>Documentation &rarr;</h2>
<p>Find in-depth information about Next.js features and API.</p>
</a>
<a href="https://nextjs.org/learn" className={styles.card}>
<h2>Learn &rarr;</h2>
<p>Learn about Next.js in an interactive course with quizzes!</p>
</a>
<a
href="https://github.com/vercel/next.js/tree/canary/examples"
className={styles.card}
>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>
<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
className={styles.card}
>
<h2>Deploy &rarr;</h2>
<p>
Instantly deploy your Next.js site to a public URL with Vercel.
</p>
</a>
</div>
</main>
<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
)
}
export default PageIndex;