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

@@ -0,0 +1,9 @@
const Footer = () => {
return (
<div style={{ textAlign: "center" }}>
<p>&copy; Gractwo 2020-{new Date().getFullYear()}</p>
</div>
);
};
export default Footer;

View File

@@ -0,0 +1,36 @@
.nav {
display: flex;
background-color: var(--black1);
min-height: 4rem;
}
.link {
display: flex;
flex-direction: column;
justify-content: center;
color: inherit;
text-decoration: none;
padding: 0 2rem;
height: auto;
user-select: none;
&:hover {
background: var(--backdrop);
color: var(--color);
}
}
.profile {
margin-left: auto;
background: var(--color);
color: var(--backdrop);
}
.logo {
padding: 0 1rem;
transition-duration: 100ms;
user-select: none;
&:hover {
background: var(--backdrop);
cursor: pointer;
}
&:active {
transform: scale(1.1);
}
}

View File

@@ -0,0 +1,43 @@
import styles from "./Navigation.module.scss";
import GractwoLogo from "../logo";
import Link from "next/link";
const PageNavigation = () => {
let username: string = "";
return (
<>
<div className={styles.nav}>
<GractwoLogo className={styles.logo} />
{/* <h1 className={styles.wordmark}>Gractwo!</h1> */}
<Link href="/" className={styles.link}>
główna
</Link>
<Link href="/o-gractwie" className={styles.link}>
o gractwie
</Link>
<Link href="/cytaty" className={styles.link}>
cytaty
</Link>
<Link href="/rankingi" className={styles.link}>
rankingi
</Link>
<Link
href="/"
style={{ display: "flex" }}
className={`${styles.link} ${styles.profile}`}
>
zaloguj się
</Link>
<Link
href="/"
style={{ display: "none" }}
className={`${styles.link} ${styles.profile}`}
>
{username ? username : "twój profil"}
</Link>
</div>
</>
);
};
export default PageNavigation;

22
components/SEO.tsx Normal file
View File

@@ -0,0 +1,22 @@
import Head from "next/head";
type seoprops = {
title?: string;
noatsign?: boolean; // simply add "noatsign" as property to element
description?: string;
};
const ComponentSEO = ({ title, noatsign, description }: seoprops) => {
const defaultDescription = "Witryna internetowa Gractwa.";
return (
<Head>
<title>
{title ? `${title}${noatsign ? "" : " @ gractwo.pl"}` : "gractwo.pl"}
</title>
<link rel="shortcut icon" href="/logo.svg" type="image/x-icon" />
<meta name="description" content={description || defaultDescription} />
</Head>
);
};
export default ComponentSEO;

56
components/logo.tsx Normal file
View File

@@ -0,0 +1,56 @@
import { SVGProps } from "react";
type logoprops = {
width?: number;
height?: number;
} & React.SVGProps<SVGSVGElement>;
const GractwoLogo = ({ width, height, ...props }: logoprops) => {
return (
<svg
version="1.2"
baseProfile="tiny"
id="svg10"
x="0px"
y="0px"
viewBox="0 0 192 192"
width={width || 64}
height={height || 64}
{...props}
>
<title id="title931">Gractwo Main Logo</title>
<path id="path48" fill="none" stroke="#61F2EA" d="M0,0" />
<path
id="path879"
fill="#FB636B"
stroke="#FB636B"
strokeWidth="0.513"
d="M29,146.3l-6-2.6l-0.1-0.5c0-0.3-0.4-6.5-0.9-13.7
l-0.8-13.2l9-29.7c5-16.3,9-29.8,9.1-29.9c0.1-0.1,1-1.3,2.1-2.7l2-2.4h3.1c1.7,0,5.3,0,8.1,0.1l4.9,0.1l1.2,1.4
c0.9,1.1,1.2,1.4,1.5,1.4c0.2,0,5.3,0.1,11.4,0.2l11,0.1l1.4-0.9c1.3-0.8,1.5-0.9,2-0.9c0.4,0,7,0.4,7.1,0.4c0,0,1.6,6.9,3.5,15.4
l3.5,15.4l-4.7,16.3l-4.7,16.3l-11.8,2.9l-11.8,2.9l-11.3,11.2l-11.3,11.2l-5.5,1.9c-3,1.1-5.6,2-5.7,2C35,148.9,32.9,148,29,146.3z
M39.2,142c3.6-1.1,3.6-1.1,4.1-1.6c0.2-0.3,5.1-5.3,10.7-11.2c8.7-9,10.4-10.7,10.7-10.8c0.2-0.1,5.4-1.4,11.4-3
c6-1.6,11-2.9,11-2.9c0,0,1.5-5.6,3.3-12.3c2.7-10.3,3.2-12.3,3.1-12.5c-0.1-0.1-1.6-2-3.3-4.3l-3.2-4l-0.7,0.1
c-0.4,0-3.2,0.3-6.3,0.5s-5.6,0.5-5.7,0.5c0,0-1.1,2.1-2.2,4.7l-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9l2,0.9c1.1,0.5,2.1,0.9,2.3,0.9C162.1,133,163.1,132.6,164.3,132.1L164.3,132.1z"
/>
</svg>
);
};
export default GractwoLogo;