add: bottom nav dark theme
This commit is contained in:
@@ -21,7 +21,7 @@ function BottomNavBar() {
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="fixed bottom-0 left-0 w-full bg-transparent">
|
||||
<div className="fixed bottom-0 left-0 w-full bg-transparent pointer-events-none">
|
||||
<div className="max-w-md mx-auto w-full aspect-[436/104] relative z-30">
|
||||
<svg
|
||||
viewBox="0 0 436 104"
|
||||
@@ -30,10 +30,10 @@ function BottomNavBar() {
|
||||
className="w-full h-full block"
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
>
|
||||
<g filter="url(#filter0_d_9095_18036)">
|
||||
<g filter="url(#filter0_d_9095_18036)" className='fill-container'>
|
||||
<path
|
||||
className='pointer-events-auto'
|
||||
d="M218 16C229.034 16 238.711 22.0313 244.148 31.0943C245.844 33.9222 248.724 36 252.022 36H406C414.837 36 422 43.1634 422 52V80C422 88.8366 414.837 96 406 96H30C21.1634 96 14 88.8366 14 80V52C14 43.1634 21.1634 36 30 36H183.979C187.277 36 190.157 33.9222 191.853 31.0943C197.29 22.0315 206.966 16.0001 218 16Z"
|
||||
fill="white"
|
||||
/>
|
||||
</g>
|
||||
|
||||
@@ -50,8 +50,8 @@ function BottomNavBar() {
|
||||
<HomeIcon className='transition-all duration-200'
|
||||
fill={isHomeRoute ? 'white' : 'transparent'}
|
||||
stroke={isHomeRoute ? 'black' : 'white'}
|
||||
strokeWidth={1}
|
||||
width={20}
|
||||
strokeWidth={1}
|
||||
width={20}
|
||||
height={20} />}
|
||||
value={t('Menu')} />
|
||||
<BottomNavLink href={`/${name}/notifications`} icon={<NotifiBoardIcon width={20} height={20} />} value={t('Notifications')} />
|
||||
|
||||
@@ -17,7 +17,7 @@ function BottomNavLink({ icon, value, href, ...restProps }: Props) {
|
||||
|
||||
return (
|
||||
<Link {...restProps} href={href} className={clsx(
|
||||
'flex flex-col justify-arround items-center gap-[5px] text-disabled2',
|
||||
'flex flex-col justify-arround items-center gap-[5px] text-disabled2 pointer-events-auto dark:**:stroke-neutral-500',
|
||||
isActive && 'text-foreground **:stroke-foreground',
|
||||
restProps.className ?? '',
|
||||
)}>
|
||||
|
||||
@@ -17,7 +17,7 @@ function BottomNavHighlightLink({ icon, value, href, ...restProps }: Props) {
|
||||
|
||||
return (
|
||||
<Link {...restProps} href={href} className={clsx(
|
||||
'flex flex-col justify-arround items-center gap-[5px] text-disabled2',
|
||||
'flex flex-col justify-arround items-center gap-[5px] text-disabled2 pointer-events-auto',
|
||||
isActive && 'text-foreground',
|
||||
restProps.className ?? '',
|
||||
)}>
|
||||
|
||||
Reference in New Issue
Block a user