diff --git a/src/App.tsx b/src/App.tsx index 2ed3596..a13eec8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -37,14 +37,19 @@ const EPISODE_SCROLL_DISTANCE_RATIO = 0.72 const SEASON_DOMINANCE_SWITCH_RATIO = 0.12 const SEASON_DOMINANCE_SWITCH_MIN_PX = 56 -const sidebarItems: Array<{ route: AppRoute; label: string; short: string; icon?: 'calendar' | 'search'; iconClassName?: string }> = [ - { route: 'home', label: 'Inicio', short: 'H' }, +type SidebarItem = { route: AppRoute; label: string; short: string; icon?: 'calendar' | 'search' | 'downloads' | 'home' | 'library'; iconClassName?: string } + +const topSidebarItems: SidebarItem[] = [ { route: 'search', label: 'Search', short: 'S', icon: 'search', iconClassName: 'sidebar-search-icon' }, - { route: 'dorama', label: 'K-Drama', short: 'K' }, - { route: 'anime', label: 'Anime', short: 'A' }, - { route: 'library', label: 'Library', short: 'L' }, { route: 'calendar', label: 'Upcoming', short: 'C', icon: 'calendar' }, - { route: 'downloads', label: 'Downloads', short: 'D' }, + { route: 'downloads', label: 'Downloads', short: 'D', icon: 'downloads' }, +] + +const sidebarItems: SidebarItem[] = [ + { route: 'home', label: 'Inicio', short: 'H', icon: 'home' }, + { route: 'dorama', label: 'K-Drama', short: '아' }, + { route: 'anime', label: 'Anime', short: 'あ' }, + { route: 'library', label: 'Library', short: 'L', icon: 'library' }, ] const networkSidebarItems: Array<{ route: AppRoute; label: string; icon: string; iconClassName?: string }> = [ @@ -559,6 +564,22 @@ function Sidebar(props: { +
+ {topSidebarItems.map((item) => ( + + ))} +
+
{sidebarItems.map((item) => ( @@ -628,6 +649,27 @@ function SearchGlyph() { ) } +function HomeGlyph() { + return ( + + ) +} + +function LibraryGlyph() { + return ( + + ) +} + function ArrowRightGlyph() { return (