diff --git a/src/assets/Works_1.png b/src/assets/Works_1.png new file mode 100644 index 0000000..4acf533 Binary files /dev/null and b/src/assets/Works_1.png differ diff --git a/src/assets/Works.png b/src/assets/Works_2.png similarity index 100% rename from src/assets/Works.png rename to src/assets/Works_2.png diff --git a/src/assets/Works_3.png b/src/assets/Works_3.png new file mode 100644 index 0000000..0e0923e Binary files /dev/null and b/src/assets/Works_3.png differ diff --git a/src/assets/homelogo.png b/src/assets/homelogo.png new file mode 100644 index 0000000..263fe54 Binary files /dev/null and b/src/assets/homelogo.png differ diff --git a/src/assets/instagram.png b/src/assets/instagram.png new file mode 100644 index 0000000..95b1668 Binary files /dev/null and b/src/assets/instagram.png differ diff --git a/src/components/about/Footer.tsx b/src/components/about/Footer.tsx index 3997c7b..4431945 100644 --- a/src/components/about/Footer.tsx +++ b/src/components/about/Footer.tsx @@ -1,5 +1,7 @@ -import { FaInstagram, FaHome } from 'react-icons/fa' +// import { FaInstagram, FaHome } from 'react-icons/fa' import logo from '../../assets/duksung.png' +import Instagram from '../../assets/instagram.png' +import Home from '../../assets/homelogo.png' const Footer = () => { return ( @@ -15,15 +17,15 @@ const Footer = () => { href="https://instagram.com/2025_wiscom" target="_blank" rel="noopener noreferrer" - className="w-10 h-10 rounded-full bg-[#A0896F] flex items-center justify-center" + className="w-10 h-10 rounded-full bg-[#9D8469] flex items-center justify-center" > - + 인스타그램 - + 홈
diff --git a/src/components/works/FrameCard.tsx b/src/components/works/FrameCard.tsx index ae864c7..d3a588f 100644 --- a/src/components/works/FrameCard.tsx +++ b/src/components/works/FrameCard.tsx @@ -1,4 +1,80 @@ -import frameImg from '../../assets/Works.png' +// import frameImg from '../../assets/Works.png' + +// type Size = 'sm' | 'md' | 'lg' + +// interface Props { +// image: string +// onClick?: () => void +// size?: Size +// focused?: boolean +// } + +// // 액자 PNG 안쪽 영역 비율 +// const INSET = { +// sm: { top: '14%', left: '12%', right: '12%', bottom: '14%' }, +// md: { top: '12%', left: '10%', right: '10%', bottom: '12%' }, +// lg: { top: '10%', left: '9%', right: '9%', bottom: '10%' }, +// } + +// export default function FrameCard({ +// image, +// onClick, +// size = 'md', +// focused = false, +// }: Props) { +// const wh = +// size === 'lg' +// ? 'h-[280px] w-[250px] max-lg:h-[300px] max-lg:w-[220px]' +// : size === 'sm' +// ? 'h-[240px] w-[175px] max-lg:h-[220px] max-lg:w-[160px]' +// : 'h-[300px] w-[220px] max-lg:h-[260px] max-lg:w-[190px]' + +// const pad = INSET[size] +// const src = image?.startsWith('http://') ? 'https://' + image.slice(7) : image + +// return ( +// +// ) +// } + +import frame1 from '../../assets/Works_1.png' +import frame2 from '../../assets/Works_2.png' +import frame3 from '../../assets/Works_3.png' type Size = 'sm' | 'md' | 'lg' @@ -7,20 +83,23 @@ interface Props { onClick?: () => void size?: Size focused?: boolean + index?: number } -// 액자 PNG 안쪽 영역 비율 const INSET = { sm: { top: '14%', left: '12%', right: '12%', bottom: '14%' }, md: { top: '12%', left: '10%', right: '10%', bottom: '12%' }, lg: { top: '10%', left: '9%', right: '9%', bottom: '10%' }, } +const FRAMES = [frame1, frame2, frame3] as const + export default function FrameCard({ image, onClick, size = 'md', focused = false, + index = 0, }: Props) { const wh = size === 'lg' @@ -32,25 +111,28 @@ export default function FrameCard({ const pad = INSET[size] const src = image?.startsWith('http://') ? 'https://' + image.slice(7) : image + // 1,2,3 반복: 0,1,2 → (i % 3)로 선택 + const frameSrc = FRAMES[index % 3] + return (