diff --git a/public/assets/ui/.gitkeep b/public/assets/ui/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/public/assets/ui/.gitkeep @@ -0,0 +1 @@ + diff --git a/src/app/components/AppSearchModal.module.css b/src/app/components/AppSearchModal.module.css index 86ef621..1257af1 100644 --- a/src/app/components/AppSearchModal.module.css +++ b/src/app/components/AppSearchModal.module.css @@ -47,9 +47,9 @@ border: 1px solid rgba(168, 243, 237, 0.24); } -.searchIcon svg { - width: 20px; - height: 20px; +.searchGlyph { + width: 24px; + height: 24px; } .headerText { diff --git a/src/app/components/AppSearchModal.tsx b/src/app/components/AppSearchModal.tsx index 5994b39..b37d695 100644 --- a/src/app/components/AppSearchModal.tsx +++ b/src/app/components/AppSearchModal.tsx @@ -1,5 +1,6 @@ import { useDeferredValue, useEffect, useMemo, useRef, useState } from 'react' import { AnimatePresence, motion } from 'framer-motion' +import { SearchIcon } from '@/shared/components/icons/SearchIcon' import styles from './AppSearchModal.module.css' type SearchTarget = { @@ -148,12 +149,7 @@ export function AppSearchModal({ isOpen, onClose, onSelect }: AppSearchModalProp >

diff --git a/src/app/components/AppTopNav.module.css b/src/app/components/AppTopNav.module.css index 5858eea..d5d497e 100644 --- a/src/app/components/AppTopNav.module.css +++ b/src/app/components/AppTopNav.module.css @@ -30,10 +30,10 @@ outline-offset: 3px; } -.searchButton svg { +.searchGlyph { display: block; - width: 20px; - height: 20px; + width: 24px; + height: 24px; } @media (max-width: 1200px) { diff --git a/src/app/components/AppTopNav.tsx b/src/app/components/AppTopNav.tsx index b93e0ae..2c926d1 100644 --- a/src/app/components/AppTopNav.tsx +++ b/src/app/components/AppTopNav.tsx @@ -1,5 +1,6 @@ import type { MouseEvent } from 'react' import { TopNav } from '@/shared/components/TopNav' +import { SearchIcon } from '@/shared/components/icons/SearchIcon' import { appNavItems } from '@/shared/data/content' import { useAuth } from '@/shared/context/AuthContext' import { API_VERSION } from '@/shared/services/apiClient' @@ -35,12 +36,7 @@ export function AppTopNav({ onOpenSearch }: AppTopNavProps) { aria-label="Open search" title="Search" > - + } /> diff --git a/src/shared/components/icons/SearchIcon.tsx b/src/shared/components/icons/SearchIcon.tsx new file mode 100644 index 0000000..30f5f18 --- /dev/null +++ b/src/shared/components/icons/SearchIcon.tsx @@ -0,0 +1,34 @@ +type SearchIconProps = { + className?: string + title?: string +} + +export function SearchIcon({ className, title }: SearchIconProps) { + return ( + + {title ? {title} : null} + + + + + + + + ) +}