init finish

This commit is contained in:
2022-05-12 20:32:34 +08:00
parent 4f976b19cd
commit 5848a7cdaf
22 changed files with 7335 additions and 174 deletions

5
components/Copyright.js Normal file
View File

@@ -0,0 +1,5 @@
function Copyright({ Component, pageProps }) {
return "©";
}
export default Copyright;

15
components/Footer.js Normal file
View File

@@ -0,0 +1,15 @@
import Link from "next/link";
import styles from '../styles/Footer.module.css';
export default function Footer() {
return (
<>
<footer className={styles.footer}>
<small>
©2022-2023 Social OJO. All Rights Reserved.
</small>
</footer>
</>
);
}

33
components/Header.js Normal file
View File

@@ -0,0 +1,33 @@
import styles from "../styles/Header.module.css";
import Link from "next/link";
// images
import headerBackground from "../public/typhoon.png";
export default function Header({ titleText }) {
return (
<>
<nav className={styles.toolbar}>
<strong>
<Link href="/">Social OJO</Link>
</strong>
<div className={styles.nav}>
<span>
<Link href="/">主页</Link>
</span>
<span>
<Link href="/posts/init">关于</Link>
</span>
</div>
</nav>
<h1 className={styles.title}>{titleText || "Social OJO"}</h1>
<header
className={styles.header}
style={{
backgroundImage: `url('${headerBackground.src}')`,
}}
>
</header>
</>
);
}