mirror of
https://github.com/tuna2134/cecilia.git
synced 2026-02-06 14:42:40 +00:00
add sns
This commit is contained in:
@@ -1,4 +1,17 @@
|
||||
import Image from "next/image";
|
||||
import { Github, X } from "iconoir-react";
|
||||
import Link from "next/link";
|
||||
|
||||
const SNSIcons = [
|
||||
{
|
||||
url: "https://github.com/tuna2134",
|
||||
icon: Github,
|
||||
},
|
||||
{
|
||||
url: "https://x.com/@fdc_tuna2134",
|
||||
icon: X,
|
||||
},
|
||||
];
|
||||
|
||||
const Header: React.FC = async () => {
|
||||
const res = await fetch(
|
||||
@@ -22,6 +35,13 @@ const Header: React.FC = async () => {
|
||||
className="mb-2 rounded-full"
|
||||
/>
|
||||
<h1 className="text-2xl font-bold text-center">tuna2134</h1>
|
||||
<div className="flex justify-center space-x-2 mt-2">
|
||||
{SNSIcons.map((sns, key) => (
|
||||
<Link href={sns.url} key={key}>
|
||||
<sns.icon height={32} width={32} />
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user