design: improve tabs design

This commit is contained in:
James Xylight committed 2025-08-21 17:43:44 -07:00
1 parent f5422f976b
commit 6303dc224c
9 files changed
+124 -172

No files matched your search

+29 -34
View File
@@ -9,39 +9,34 @@
</script>
<div class="flex flex-col gap-2">
<div
class="sticky mx-auto z-50 max-w-full min-w-0 flex items-center gap-2 top-6 lg:top-22"
>
<Tabs
routes={[
{
href: '/util',
name: 'Home',
},
{
href: '/util/instance',
name: 'Photon instance',
},
{
href: '/util/photonify',
name: 'Photonify Links',
},
{
href: '/util/placeholder',
name: 'Placeholders',
},
{
href: '/util/constants',
name: 'Constants',
},
{
href: '/functions',
name: 'Functions',
},
]}
class="overflow-auto"
currentRoute={page.url.toString()}
/>
</div>
<Tabs
routes={[
{
href: '/util',
name: 'Home',
},
{
href: '/util/instance',
name: 'Photon instance',
},
{
href: '/util/photonify',
name: 'Photonify Links',
},
{
href: '/util/placeholder',
name: 'Placeholders',
},
{
href: '/util/constants',
name: 'Constants',
},
{
href: '/functions',
name: 'Functions',
},
]}
class="overflow-auto"
/>
{@render children?.()}
</div>