feat: add homepage and contacts(to-do)

This commit is contained in:
2024-12-17 01:48:47 +08:00
parent 35611e2d34
commit 987b8f04f3
7 changed files with 143 additions and 93 deletions
+7
View File
@@ -0,0 +1,7 @@
export default function Footer() {
return (
<footer className="w-full bg-white shadow p-4 text-left text-gray-500">
<p>© {new Date().getFullYear()} 智能计算实验室</p>
</footer>
);
}
+12
View File
@@ -0,0 +1,12 @@
import Link from "next/link";
export default function Header() {
return (
<header className="w-full bg-white shadow p-4 flex justify-between items-center">
<h1 className="text-2xl font-bold text-gray-900">智能计算实验室</h1>
<nav>
<Link href="/contacts" className="text-blue-600 hover:underline">联系人</Link>
</nav>
</header>
);
}