mirror of
https://github.com/tuna2134/cecilia.git
synced 2026-02-06 14:42:40 +00:00
oh
This commit is contained in:
@@ -1,8 +1,21 @@
|
||||
const Header: React.FC = () => {
|
||||
import Image from "next/image";
|
||||
|
||||
const Header: React.FC = async () => {
|
||||
const res = await fetch(
|
||||
"https://discord.com/api/v10/users/739702692393517076",
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bot ${process.env.DISCORD_TOKEN}`,
|
||||
}
|
||||
}
|
||||
);
|
||||
const data = await res.json();
|
||||
const avatarURL = `https://cdn.discordapp.com/avatars/739702692393517076/${data.avatar}.png?size=1024`
|
||||
return (
|
||||
<header className="h-screen w-screen flex place-content-center">
|
||||
<div className="place-content-center">
|
||||
<h1 className="text-2xl font-bold">tuna2134</h1>
|
||||
<header className="h-screen w-screen flex justify-center items-center">
|
||||
<div>
|
||||
<Image alt="avatar" src={avatarURL} width={156} height={156} className="mb-2 rounded-full" />
|
||||
<h1 className="text-2xl font-bold text-center">tuna2134</h1>
|
||||
</div>
|
||||
</header>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user