커밋 bun 버려

This commit is contained in:
imnyang 2024-11-24 23:57:48 +09:00
commit 137e1b5790
2 changed files with 21 additions and 3 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -3,12 +3,17 @@
import { useEffect, useState, forwardRef } from "react"; import { useEffect, useState, forwardRef } from "react";
import { useSearchParams } from "next/navigation"; import { useSearchParams } from "next/navigation";
import Link from "next/link"; import Link from "next/link";
import Image from "next/image";
import Repos from "./components/repos"; import Repos from "./components/repos";
import Tippy from "@tippyjs/react"; import Tippy from "@tippyjs/react";
import "tippy.js/dist/tippy.css"; import "tippy.js/dist/tippy.css";
import "./index.css"; import "./index.css";
const TippyWrapper = forwardRef<HTMLAnchorElement, any>((props, ref) => ( interface TippyWrapperProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
children: React.ReactNode;
}
const TippyWrapper = forwardRef<HTMLAnchorElement, TippyWrapperProps>((props, ref) => (
<a {...props} ref={ref} /> <a {...props} ref={ref} />
)); ));
TippyWrapper.displayName = 'TippyWrapper'; TippyWrapper.displayName = 'TippyWrapper';
@ -56,7 +61,13 @@ export default function Home() {
} }
}, [searchParams]); }, [searchParams]);
const SocialLink = ({ href, icon, tooltip }: { href: string; icon: string; tooltip: string }) => ( interface SocialLinkProps {
href: string;
icon: string;
tooltip: string;
}
const SocialLink = ({ href, icon, tooltip }: SocialLinkProps) => (
<Tippy content={tooltip} placement="bottom"> <Tippy content={tooltip} placement="bottom">
<TippyWrapper <TippyWrapper
href={href} href={href}
@ -79,7 +90,14 @@ export default function Home() {
<div className="left"> <div className="left">
<p style={{ color: "transparent" }}>/?no_hair</p> <p style={{ color: "transparent" }}>/?no_hair</p>
{/* /?no_ear */} {/* /?no_ear */}
<img src={imageSrc} width={256} className="profile" alt="Profile" /> <Image
src={imageSrc}
width={256}
height={256}
className="profile"
alt="Profile"
priority
/>
<h1 <h1
style={{ style={{
color: "#ffe7fb", color: "#ffe7fb",