|
1 | | -export default function Home() {} |
| 1 | +'use client'; |
| 2 | + |
| 3 | +import BellIcon from '@assets/svg/bell'; |
| 4 | +import CheckIcon from '@assets/svg/check'; |
| 5 | +import ChevronIcon from '@assets/svg/chevron'; |
| 6 | +import CloseEyeIcon from '@assets/svg/close-eye'; |
| 7 | +import CloseIcon from '@assets/svg/close'; |
| 8 | +import IconDropdown from '@assets/svg/dropdown'; |
| 9 | +import IconFacebook from '@assets/svg/facebook'; |
| 10 | +import IconInstagram from '@assets/svg/instagram'; |
| 11 | +import LeftArrowIcon from '@assets/svg/left-arrow'; |
| 12 | +import LocationIcon from '@assets/svg/location'; |
| 13 | +import LogoIcon from '@assets/svg/logo'; |
| 14 | +import OpenEyeIcon from '@assets/svg/open-eye'; |
| 15 | +import RightArrowIcon from '@assets/svg/right-arrow'; |
| 16 | +import IconTwitter from '@assets/svg/twitter'; |
| 17 | +import IconYoutube from '@assets/svg/youtube'; |
| 18 | + |
| 19 | +export default function Home() { |
| 20 | + const icons = [ |
| 21 | + { name: 'BellIcon', component: <BellIcon size={32} /> }, |
| 22 | + { name: 'CheckIcon', component: <CheckIcon size={32} /> }, |
| 23 | + { |
| 24 | + name: 'CheckIcon (no bg)', |
| 25 | + component: <CheckIcon size={32} showBackground={false} />, |
| 26 | + }, |
| 27 | + { |
| 28 | + name: 'ChevronIcon (down)', |
| 29 | + component: <ChevronIcon size={32} direction='down' />, |
| 30 | + }, |
| 31 | + { |
| 32 | + name: 'ChevronIcon (up)', |
| 33 | + component: <ChevronIcon size={32} direction='up' />, |
| 34 | + }, |
| 35 | + { name: 'CloseEyeIcon', component: <CloseEyeIcon size={32} /> }, |
| 36 | + { name: 'CloseIcon', component: <CloseIcon size={32} /> }, |
| 37 | + { |
| 38 | + name: 'DropdownIcon', |
| 39 | + component: <IconDropdown size={32} color='#1B1B1B' />, |
| 40 | + }, |
| 41 | + { |
| 42 | + name: 'FacebookIcon', |
| 43 | + component: <IconFacebook size={32} color='#1B1B1B' />, |
| 44 | + }, |
| 45 | + { |
| 46 | + name: 'InstagramIcon', |
| 47 | + component: <IconInstagram size={32} color='#1B1B1B' />, |
| 48 | + }, |
| 49 | + { name: 'LeftArrowIcon', component: <LeftArrowIcon size={32} /> }, |
| 50 | + { name: 'LocationIcon', component: <LocationIcon size={32} /> }, |
| 51 | + { name: 'LogoIcon', component: <LogoIcon size={80} /> }, |
| 52 | + { name: 'OpenEyeIcon', component: <OpenEyeIcon size={32} /> }, |
| 53 | + { name: 'RightArrowIcon', component: <RightArrowIcon size={32} /> }, |
| 54 | + { |
| 55 | + name: 'TwitterIcon', |
| 56 | + component: <IconTwitter size={32} color='#1B1B1B' />, |
| 57 | + }, |
| 58 | + { |
| 59 | + name: 'YoutubeIcon', |
| 60 | + component: <IconYoutube size={32} color='#1B1B1B' />, |
| 61 | + }, |
| 62 | + ]; |
| 63 | + |
| 64 | + return ( |
| 65 | + <div className='min-h-screen bg-gray-100 p-40'> |
| 66 | + <div className='mx-auto max-w-1200'> |
| 67 | + <h1 className='text-32 mb-40 text-center font-bold'> |
| 68 | + GlobalNomad 아이콘 샘플 |
| 69 | + </h1> |
| 70 | + |
| 71 | + <div className='grid grid-cols-2 gap-24 md:grid-cols-3 lg:grid-cols-4'> |
| 72 | + {icons.map(({ name, component }, index) => ( |
| 73 | + <div |
| 74 | + key={index} |
| 75 | + className='rounded-8 flex min-h-120 flex-col items-center justify-center border border-gray-300 bg-white p-16' |
| 76 | + > |
| 77 | + <div className='mb-12 flex items-center justify-center'> |
| 78 | + {component} |
| 79 | + </div> |
| 80 | + <p className='text-14 text-center font-medium break-all text-gray-700'> |
| 81 | + {name} |
| 82 | + </p> |
| 83 | + </div> |
| 84 | + ))} |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + ); |
| 89 | +} |
0 commit comments