22type BaseItem = {
33 name: string
44 url: string
5- maxHeight ? : string
5+ normalisingIndent ? : string
66 logo:
77 | string
88 | {
@@ -22,41 +22,51 @@ const props = defineProps<{
2222 </script >
2323
2424<template >
25- <ul class =" flex flex-wrap gap-2 md:gap-x-4 md:gap-y-3 -mx-2 list-none" >
26- <li v-for =" item in list" :key =" item.name" class =" flex items-center justify-center" >
25+ <ul class =" list-none" >
26+ <li
27+ v-for =" item in list"
28+ :key =" item.name"
29+ :style ="
30+ 'items' in item && `grid-column: span ${item.items.length} / span ${item.items.length};`
31+ "
32+ >
2733 <a
2834 v-if =" 'logo' in item"
2935 :href =" item.url"
3036 target =" _blank"
3137 rel =" noopener noreferrer"
32- class =" relative flex items-center justify-center h-16 min-w-16 rounded-md hover:bg-fg/10 transition-colors p-2 "
33- :style =" { maxHeight : item.maxHeight }"
38+ class =" relative flex items-center justify-center h-16 rounded-md bg-bg-muted hover:bg-bg-subtle border border-border transition-colors py-1 px-3 "
39+ :style =" { paddingBlock : item.normalisingIndent }"
3440 :aria-label =" item.name"
3541 >
3642 <AboutLogoImg :src =" item.logo" :alt =" item.name" />
3743 </a >
38- <div v-else-if =" item.items" class =" relative flex items-center justify-center" >
44+ <div
45+ v-else-if =" item.items"
46+ class =" relative flex items-center justify-center h-full bg-bg-muted border border-border rounded-md py-1 px-2"
47+ >
3948 <svg
4049 width =" 11"
4150 height =" 38"
4251 viewBox =" 0 0 11 38"
4352 fill =" none"
4453 xmlns =" http://www.w3.org/2000/svg"
4554 aria-hidden =" true"
55+ class =" h-full w-auto"
4656 >
4757 <path
4858 d =" M5.62151 0C-1.8519 10.6931 -1.89574 27.2683 5.62151 37.9997H10.6709C3.15538 27.2683 3.19922 10.6931 10.6709 0H5.62151Z"
4959 fill =" currentColor"
5060 />
5161 </svg >
5262 <ul class =" flex items-center justify-center h-full gap-0.5 list-none" >
53- <li v-for =" groupItem in item.items" :key =" groupItem.name" >
63+ <li v-for =" groupItem in item.items" :key =" groupItem.name" class = " h-full " >
5464 <a
5565 :href =" groupItem.url"
5666 target =" _blank"
5767 rel =" noopener noreferrer"
58- class =" relative flex items-center justify-center h-12 min-w-12 rounded-md hover:bg-fg/10 transition-colors p-1"
59- :style =" { maxHeight : groupItem.maxHeight }"
68+ class =" relative flex items-center justify-center h-full aspect-square rounded-md hover:bg-bg-subtle border border-transparent hover:border-border transition-colors p-1.5 "
69+ :style =" { paddingBlock : groupItem.normalisingIndent }"
6070 :aria-label =" groupItem.name"
6171 >
6272 <AboutLogoImg :src =" groupItem.logo" :alt =" groupItem.name" />
@@ -70,6 +80,7 @@ const props = defineProps<{
7080 fill =" none"
7181 xmlns =" http://www.w3.org/2000/svg"
7282 aria-hidden =" true"
83+ class =" h-full w-auto"
7384 >
7485 <path
7586 d =" M5.04935 0H0C7.4734 10.6931 7.51725 27.2683 0 37.9997H5.04935C12.5648 27.2683 12.521 10.6931 5.04935 0Z"
0 commit comments