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

12
pages/404.tsx Normal file
View File

@@ -0,0 +1,12 @@
import SEO from "../components/SEO";
const PageError404 = () => {
return (
<>
<SEO title="404" />
Error 404!!
</>
);
};
export default PageError404;

View File

@@ -1,6 +1,16 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import "../styles/globals.scss";
import type { AppProps } from "next/app";
import Navigation from "../components/Navigation/Navigation";
import Footer from "../components/Footer/Footer";
import SEO from "../components/SEO";
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
return (
<>
<SEO />
<Navigation />
<Component {...pageProps} />
<Footer />
</>
);
}

View File

@@ -1,13 +1,13 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
import type { NextApiRequest, NextApiResponse } from "next";
type Data = {
name: string
}
name: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: 'John Doe' })
res.status(200).json({ name: "John Doe" });
}

12
pages/cytaty.tsx Normal file
View File

@@ -0,0 +1,12 @@
import SEO from "../components/SEO";
const PageCytaty = () => {
return (
<>
<SEO title="cytaty" />
Miejsce na stronkę od cytatów.
</>
);
};
export default PageCytaty;

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;

71
pages/nextjsintro.tsx Normal file
View File

@@ -0,0 +1,71 @@
import Head from "next/head";
import Image from "next/image";
import styles from "../styles/Home.module.css";
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>
<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1>
<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>
);
}

12
pages/o-gractwie.tsx Normal file
View File

@@ -0,0 +1,12 @@
import SEO from "../components/SEO";
const PageInfo = () => {
return (
<>
<SEO title="o gractwie" />
Miejsce na stronkę od informacji nt. Gractwa.
</>
);
};
export default PageInfo;

12
pages/rankingi.tsx Normal file
View File

@@ -0,0 +1,12 @@
import SEO from "../components/SEO";
const PageRankingi = () => {
return (
<>
<SEO title="rankingi" />
Miejsce na stronkę od rankingów.
</>
);
};
export default PageRankingi;