@@ -32,7 +32,11 @@ const moduleCards = computed(() => {
3232 </script >
3333
3434<template >
35- <header z-1000 fixed inset-x-0 top-0 mx-16 mt-16 border =" 1 neutral-400" shadow bg-neutral-0 f-h-xl flex =" ~ items-center gap-32" f-px-xl f-py-sm rounded-12 transition =" [transform,opacity] duration-300 ease-out" :class =" { 'translate-y--120% opacity-0': !isHeaderVisible }" >
35+ <header
36+ z-1000 fixed inset-x-0 top-0 mx-16 mt-16 border =" 1 neutral-400" shadow bg-neutral-0 f-h-xl
37+ flex =" ~ items-center gap-32" f-px-xl f-py-sm rounded-12 transition =" [transform,opacity] duration-300 ease-out"
38+ :class =" { 'translate-y--120% opacity-0': !isHeaderVisible }"
39+ >
3640 <!-- Logo on the left -->
3741 <Logo />
3842
@@ -43,29 +47,29 @@ const moduleCards = computed(() => {
4347
4448 <!-- Modules Dropdown -->
4549 <CollapsibleRoot v-model:open =" isModulesDropdownOpen" relative >
46- <CollapsibleTrigger flex =" ~ items-center gap-8" f-px-sm f-py-xs f-rounded-xs bg =" transparent hocus:neutral-200" transition-colors group >
50+ <CollapsibleTrigger
51+ flex =" ~ items-center gap-8" f-px-sm f-py-xs f-rounded-xs bg =" transparent hocus:neutral-200"
52+ transition-colors group
53+ >
4754 <span f-text-sm font-medium >Modules</span >
48- <div i-nimiq:chevron-down text-12 transition-transform duration-200 :class =" { 'rotate-180': isModulesDropdownOpen }" />
55+ <div
56+ i-nimiq:chevron-down text-12 transition-transform duration-200
57+ :class =" { 'rotate-180': isModulesDropdownOpen }"
58+ />
4959 </CollapsibleTrigger >
5060
51- <CollapsibleContent absolute top-full right-0 min-w-400 max-w-600 bg-neutral-0 border =" 1 neutral-400" f-rounded-md shadow-lg z-50 un-animate =" collapsible" class =" modules-dropdown-content" of-clip >
52- <motion .div
53- :initial =" { opacity: 0,
54- y: -10 }" :animate =" { opacity: 1,
55- y: 0 }" :transition =" { duration: 0.2 }" max-h-60vh of-y-auto f-p-md
56- >
61+ <CollapsibleContent
62+ absolute top-full right-0 min-w-400 max-w-600 bg-neutral-0 border =" 1 neutral-400"
63+ f-rounded-md shadow-lg z-50 un-animate =" collapsible" class =" modules-dropdown-content" of-clip
64+ >
65+ <!-- eslint-disable -->
66+ <motion .div :initial =" { opacity: 0, y: -10 }" :animate =" { opacity: 1, y: 0 }" :transition =" { duration: 0.2 }"
67+ max-h-60vh of-y-auto f-p-md >
5768 <ul v-if =" moduleCards.length > 0" grid =" ~ cols-2 gap-12" class =" nq-raw" max-w-full my-0 >
58- <motion .li
59- v-for =" (card, index) in moduleCards" :key =" card.title" :initial =" { opacity: 0,
60- y: 20,
61- scale: 0.9 }" :animate =" { opacity: 1,
62- y: 0,
63- scale: 1 }" :transition =" { duration: 0.3,
64- delay: index * 0.05,
65- type: 'spring',
66- stiffness: 260,
67- damping: 20 }" col-span-1 mt-0 flex @click =" isModulesDropdownOpen = false"
68- >
69+ <motion .li v-for =" (card, index) in moduleCards" :key =" card.title"
70+ :initial =" { opacity: 0, y: 20, scale: 0.9 }" :animate =" { opacity: 1, y: 0, scale: 1 }"
71+ :transition =" { duration: 0.3, delay: index * 0.05, type: 'spring', stiffness: 260, damping: 20 }"
72+ col-span-1 mt-0 flex @click =" isModulesDropdownOpen = false" >
6973 <a :href =" card.href" nq-hoverable >
7074 <div :class =" [card.icon, card.iconClass]" scale-125 />
7175 <h3 v-if =" card.title" f-mt-xs f-text-lg font-medium >
@@ -78,6 +82,7 @@ const moduleCards = computed(() => {
7882 </motion .li >
7983 </ul >
8084 </motion .div >
85+ <!-- eslint-enable -->
8186 </CollapsibleContent >
8287 </CollapsibleRoot >
8388
0 commit comments