Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/assets/ui/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 3 additions & 3 deletions src/app/components/AppSearchModal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 2 additions & 6 deletions src/app/components/AppSearchModal.tsx
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down Expand Up @@ -148,12 +149,7 @@ export function AppSearchModal({ isOpen, onClose, onSelect }: AppSearchModalProp
>
<div className={styles.header}>
<div className={styles.searchIcon} aria-hidden="true">
<svg viewBox="0 0 24 24" focusable="false">
<path
d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"
fill="currentColor"
/>
</svg>
<SearchIcon className={styles.searchGlyph} />
</div>
<div className={styles.headerText}>
<h2 id="app-search-title" className={styles.title}>
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/AppTopNav.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
outline-offset: 3px;
}

.searchButton svg {
.searchGlyph {
display: block;
width: 20px;
height: 20px;
width: 24px;
height: 24px;
}

@media (max-width: 1200px) {
Expand Down
8 changes: 2 additions & 6 deletions src/app/components/AppTopNav.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -35,12 +36,7 @@ export function AppTopNav({ onOpenSearch }: AppTopNavProps) {
aria-label="Open search"
title="Search"
>
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path
d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"
fill="currentColor"
/>
</svg>
<SearchIcon className={styles.searchGlyph} />
</button>
}
/>
Expand Down
34 changes: 34 additions & 0 deletions src/shared/components/icons/SearchIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
type SearchIconProps = {
className?: string
title?: string
}

export function SearchIcon({ className, title }: SearchIconProps) {
return (
<svg
className={className}
viewBox="0 0 500 500"
fill="none"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet"
aria-hidden={title ? undefined : 'true'}
role={title ? 'img' : undefined}
>
{title ? <title>{title}</title> : null}
<g transform="translate(0 -552.36216)">
<g transform="translate(-4.3609793 -7.6704785)" fill="currentColor">
<path d="M232.83952 614.96702A154.04816 154.04794 0 0 0 78.79153 769.01382 154.04816 154.04794 0 0 0 232.83952 923.06184 154.04816 154.04794 0 0 0 386.88751 769.01382 154.04816 154.04794 0 0 0 232.83952 614.96702Zm0 26.77613A129.95832 127.2707 0 0 1 362.79832 769.01382 129.95832 127.2707 0 0 1 232.83952 896.28449 129.95832 127.2707 0 0 1 102.88194 769.01382 129.95832 127.2707 0 0 1 232.83952 641.74315Z" />
<rect
x="794.8775"
y="319.55432"
width="173.02675"
height="36.16684"
rx="33.249443"
ry="18.08342"
transform="matrix(0.65316768 0.7572133 -0.60689051 0.79478545 0 0)"
/>
</g>
</g>
</svg>
)
}
Loading