Skip to content

Commit 508ecca

Browse files
committed
fix: align logo cards with flex-col and consistent min-height
1 parent 33410bf commit 508ecca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/pages/brand.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
9494

9595
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
9696
<!-- Dark variant -->
97-
<div>
97+
<div class="flex flex-col">
9898
<div
99-
class="bg-[#0a0a0a] rounded-lg p-6 sm:p-8 flex items-center justify-center border border-border min-h-32 mb-2"
99+
class="bg-[#0a0a0a] rounded-lg p-6 sm:p-8 flex items-center justify-center border border-border min-h-40 flex-1"
100100
>
101101
<img
102102
:src="logo.src"
@@ -105,15 +105,15 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
105105
:class="{ 'max-h-20': logo.span }"
106106
/>
107107
</div>
108-
<div class="flex items-center justify-between">
108+
<div class="flex items-center justify-between mt-2">
109109
<span class="text-xs text-fg-subtle font-mono">{{
110110
$t('brand.logos.on_dark')
111111
}}</span>
112112
<div class="flex items-center gap-2">
113113
<a
114114
:href="logo.src"
115115
:download="logo.src.replace('/', '')"
116-
class="inline-flex items-center gap-1 text-xs font-mono text-fg-muted border border-border rounded-md px-2.5 py-1 hover:bg-bg-muted hover:text-fg transition-colors duration-200 no-underline focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-bg"
116+
class="inline-flex items-center gap-1 text-xs font-mono text-fg-muted border border-border rounded-md px-2 py-0.5 hover:bg-bg-muted hover:text-fg transition-colors duration-200 no-underline focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-bg"
117117
:aria-label="
118118
$t('brand.logos.download_svg_aria', {
119119
name: `${logo.name()} (${$t('brand.logos.on_dark')})`,
@@ -141,9 +141,9 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
141141
</div>
142142

143143
<!-- Light variant -->
144-
<div>
144+
<div class="flex flex-col">
145145
<div
146-
class="bg-white rounded-lg p-6 sm:p-8 flex items-center justify-center border border-border min-h-32 mb-2"
146+
class="bg-white rounded-lg p-6 sm:p-8 flex items-center justify-center border border-border min-h-40 flex-1"
147147
>
148148
<AppLogo
149149
v-if="logo.src === '/logo.svg'"
@@ -158,15 +158,15 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
158158
:style="logo.src === '/logo-mark.svg' ? 'filter: invert(1)' : ''"
159159
/>
160160
</div>
161-
<div class="flex items-center justify-between">
161+
<div class="flex items-center justify-between mt-2">
162162
<span class="text-xs text-fg-subtle font-mono">{{
163163
$t('brand.logos.on_light')
164164
}}</span>
165165
<div class="flex items-center gap-2">
166166
<a
167167
:href="logo.src"
168168
:download="logo.src.replace('/', '')"
169-
class="inline-flex items-center gap-1 text-xs font-mono text-fg-muted border border-border rounded-md px-2.5 py-1 hover:bg-bg-muted hover:text-fg transition-colors duration-200 no-underline focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-bg"
169+
class="inline-flex items-center gap-1 text-xs font-mono text-fg-muted border border-border rounded-md px-2 py-0.5 hover:bg-bg-muted hover:text-fg transition-colors duration-200 no-underline focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-bg"
170170
:aria-label="
171171
$t('brand.logos.download_svg_aria', {
172172
name: `${logo.name()} (${$t('brand.logos.on_light')})`,

0 commit comments

Comments
 (0)