mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 12:57:49 +00:00
misc: changes.
This commit is contained in:
@@ -46,9 +46,8 @@
|
|||||||
<Tabs.List
|
<Tabs.List
|
||||||
class={classNames(
|
class={classNames(
|
||||||
'border-smooth animate-fade-in relative grid w-full max-w-xl grid-cols-1 place-content-center gap-3 p-1 px-8 drop-shadow-md md:grid-cols-3 md:rounded-full md:border md:px-1',
|
'border-smooth animate-fade-in relative grid w-full max-w-xl grid-cols-1 place-content-center gap-3 p-1 px-8 drop-shadow-md md:grid-cols-3 md:rounded-full md:border md:px-1',
|
||||||
theme === 'light' ? '' : 'bg-card'
|
theme === 'light' ? 'md:bg[var(--card, rgba(255,255,255,0.90))]' : 'md:bg-card'
|
||||||
)}
|
)}
|
||||||
style={theme === 'light' ? 'background: var(--card, rgba(255,255,255,0.90));' : ''}
|
|
||||||
>
|
>
|
||||||
{#each navItems as { label, icon, value }, index}
|
{#each navItems as { label, icon, value }, index}
|
||||||
<Tabs.Trigger
|
<Tabs.Trigger
|
||||||
@@ -74,7 +73,7 @@
|
|||||||
</Tabs.Root>
|
</Tabs.Root>
|
||||||
|
|
||||||
{#key selectedTab}
|
{#key selectedTab}
|
||||||
<p class="animate-enter">
|
<p class="animate-enter text-caption px-4">
|
||||||
{getDescription()}
|
{getDescription()}
|
||||||
</p>
|
</p>
|
||||||
{/key}
|
{/key}
|
||||||
|
|||||||
@@ -19,9 +19,11 @@
|
|||||||
x: number;
|
x: number;
|
||||||
y: number;
|
y: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
theme: 'light' | 'dark'
|
||||||
};
|
};
|
||||||
|
|
||||||
const { coords }: Props = $props();
|
const { coords, theme = 'dark' }: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $tooltipData.city}
|
{#if $tooltipData.city}
|
||||||
@@ -32,8 +34,9 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class={classNames(
|
class={classNames(
|
||||||
'bg-card/90 border-gradient relative z-100 flex w-[190px] flex-col gap-2 rounded-[10px] p-2 backdrop-blur-lg before:rounded-[10px] after:rounded-[10px]',
|
'border-gradient relative z-100 flex w-[190px] flex-col gap-2 rounded-[10px] p-2 backdrop-blur-lg before:rounded-[10px] after:rounded-[10px]',
|
||||||
'data-[state="closed"]:animate-menu-out data-[state="instant-open"]:animate-menu-in data-[state="delayed-open"]:animate-menu-in'
|
'data-[state="closed"]:animate-menu-out data-[state="instant-open"]:animate-menu-in data-[state="delayed-open"]:animate-menu-in',
|
||||||
|
theme === 'dark' ? 'bg-card/90' : 'bg[var(--card, rgba(255,255,255))]'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span class="text-primary text-caption w-fit">
|
<span class="text-primary text-caption w-fit">
|
||||||
|
|||||||
@@ -127,6 +127,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MapTooltip coords={$position} />
|
<MapTooltip {theme} coords={$position} />
|
||||||
|
|
||||||
<MapNav {theme} onValueChange={(value) => (activeSegment = value)} />
|
<MapNav {theme} onValueChange={(value) => (activeSegment = value)} />
|
||||||
|
|||||||
Reference in New Issue
Block a user