|
6 | 6 | import Button from '$lib/ui/Button/Button.svelte'; |
7 | 7 | import { cn } from '$lib/utils'; |
8 | 8 |
|
9 | | - interface IBottomNavProps extends HTMLAttributes<HTMLElement> { |
| 9 | + interface ISideBarProps extends HTMLAttributes<HTMLElement> { |
10 | 10 | activeTab?: string; |
11 | 11 | profileSrc: string; |
12 | 12 | handlePost?: () => Promise<void>; |
|
16 | 16 | profileSrc = 'https://picsum.photos/200', |
17 | 17 | handlePost, |
18 | 18 | ...restProps |
19 | | - }: IBottomNavProps = $props(); |
| 19 | + }: ISideBarProps = $props(); |
20 | 20 |
|
21 | 21 | let _activeTab = $derived(page.url.pathname); |
22 | 22 |
|
|
57 | 57 | : 'var(--color-black-400)'} |
58 | 58 | fill={activeTab === 'home' ? 'var(--color-brand-burnt-orange)' : 'white'} |
59 | 59 | /> |
60 | | - <h3 class={`${activeTab === 'home' ? 'text-brand-burnt-orange' : 'text-black-800'}`}> |
| 60 | + <h3 |
| 61 | + class={`${activeTab === 'home' ? 'text-brand-burnt-orange' : 'text-black-800'} mt-[4px]`} |
| 62 | + > |
61 | 63 | Feed |
62 | 64 | </h3> |
63 | 65 | </button> |
|
76 | 78 | fill={activeTab === 'discover' ? 'var(--color-brand-burnt-orange)' : 'white'} |
77 | 79 | /> |
78 | 80 | <h3 |
79 | | - class={`${activeTab === 'discover' ? 'text-brand-burnt-orange' : 'text-black-800'}`} |
| 81 | + class={`${activeTab === 'discover' ? 'text-brand-burnt-orange' : 'text-black-800'} mt-[4px]`} |
80 | 82 | > |
81 | 83 | Search |
82 | 84 | </h3> |
|
95 | 97 | : 'var(--color-black-400)'} |
96 | 98 | fill={activeTab === 'post' ? 'var(--color-brand-burnt-orange)' : 'white'} |
97 | 99 | /> |
98 | | - <h3 class={`${activeTab === 'post' ? 'text-brand-burnt-orange' : 'text-black-800'}`}> |
| 100 | + <h3 |
| 101 | + class={`${activeTab === 'post' ? 'text-brand-burnt-orange' : 'text-black-800'} mt-[4px]`} |
| 102 | + > |
99 | 103 | Upload a photo |
100 | 104 | </h3> |
101 | 105 | </button> |
|
114 | 118 | fill={activeTab === 'messages' ? 'var(--color-brand-burnt-orange)' : 'white'} |
115 | 119 | /> |
116 | 120 | <h3 |
117 | | - class={`${activeTab === 'messages' ? 'text-brand-burnt-orange' : 'text-black-800'}`} |
| 121 | + class={`${activeTab === 'messages' ? 'text-brand-burnt-orange' : 'text-black-800'} mt-[4px]`} |
118 | 122 | > |
119 | 123 | Messages |
120 | 124 | </h3> |
|
137 | 141 | alt="profile" |
138 | 142 | /> |
139 | 143 | </span> |
140 | | - <h3 class={`${activeTab === 'profile' ? 'text-brand-burnt-orange' : 'text-black-800'}`}> |
| 144 | + <h3 |
| 145 | + class={`${activeTab === 'profile' ? 'text-brand-burnt-orange' : 'text-black-800'} mt-[4px]`} |
| 146 | + > |
141 | 147 | Profile |
142 | 148 | </h3> |
143 | 149 | </button> |
|
0 commit comments