diff --git a/app/components/icons/search.tsx b/app/components/icons/search.tsx new file mode 100644 index 0000000..1d91245 --- /dev/null +++ b/app/components/icons/search.tsx @@ -0,0 +1,21 @@ +import type { JSX, SVGProps } from 'react' + +export const SearchIcon = ( + properties: JSX.IntrinsicAttributes & SVGProps, +) => { + return ( + + + + ) +} diff --git a/app/components/button.tsx b/app/components/ui/button.tsx similarity index 98% rename from app/components/button.tsx rename to app/components/ui/button.tsx index af5c9f7..cc98452 100644 --- a/app/components/button.tsx +++ b/app/components/ui/button.tsx @@ -14,6 +14,7 @@ const buttonVariants = cva( variant: { newsPrimary: 'bg-[#2E2F7C] text-white text-lg', newsSecondary: 'border-[3px] border-[#2E2F7C] text-[#2E2F7C] text-lg', + icon: '', // destructive: // 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90', // outline: @@ -26,9 +27,9 @@ const buttonVariants = cva( size: { default: 'h-[50px] w-[150px]', block: 'h-[50px] w-full', + icon: 'h-9 w-9', // sm: 'h-8 rounded-md px-3 text-xs', // lg: 'h-10 rounded-md px-8', - // icon: 'h-9 w-9', }, }, defaultVariants: { diff --git a/app/pages/news/header-search.tsx b/app/pages/news/header-search.tsx index e1c1de1..bf66044 100644 --- a/app/pages/news/header-search.tsx +++ b/app/pages/news/header-search.tsx @@ -1,10 +1,21 @@ +import { SearchIcon } from '~/components/icons/search' +import { Button } from '~/components/ui/button' + export const HeaderSearch = () => { return ( -
+ +
) } diff --git a/app/pages/news/header-top.tsx b/app/pages/news/header-top.tsx index 5773ef9..3d16c80 100644 --- a/app/pages/news/header-top.tsx +++ b/app/pages/news/header-top.tsx @@ -1,6 +1,6 @@ import { Link } from 'react-router' -import { Button } from '~/components/button' +import { Button } from '~/components/ui/button' import { DUMMY } from '~/data/dummy' export const HeaderTop = () => {