Skip to content

Commit 1ca2b3c

Browse files
💄 Enhance primary logo section with hover effect and update download button styling for improved user experience
1 parent 62912ed commit 1ca2b3c

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

‎resources/views/brand.blade.php‎

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,30 +113,36 @@ class="mx-auto max-w-3xl pt-4 text-base/relaxed text-pretty text-gray-600 sm:tex
113113
class="mx-auto mt-10 flex w-full max-w-md flex-col items-stretch gap-5"
114114
>
115115
{{-- Primary logo --}}
116-
<div class="flex flex-col items-center gap-5">
116+
<div
117+
x-data="{ isHovered: false }"
118+
class="flex flex-col items-center gap-5"
119+
>
117120
{{-- Asset --}}
118121
<div
119-
class="grid h-50 w-full place-items-center rounded-xl bg-white p-5 ring-1 ring-gray-300"
122+
class="grid h-50 w-full place-items-center rounded-xl bg-gray-100 p-5 ring-1 ring-gray-300"
120123
>
121124
<img
122125
src="/brand-assets/logo/nativephp.svg"
123126
alt=""
124127
loading="lazy"
125-
class="h-8"
128+
class="h-8 transition duration-200 will-change-transform"
129+
x-bind:class="{
130+
'scale-105': isHovered,
131+
}"
126132
/>
127133
</div>
128134

129135
{{-- Download button --}}
130-
<div class="flex w-full justify-center">
131-
<a
132-
href="/brand-assets/logo/nativephp.svg"
133-
download
134-
class="inline-flex items-center gap-2 rounded-xl bg-haiti py-3 pr-5 pl-3.5 text-sm font-medium text-white shadow-sm transition duration-200 hover:bg-gray-800"
135-
>
136-
<x-icons.download class="size-5" />
137-
<div>Download</div>
138-
</a>
139-
</div>
136+
<a
137+
download
138+
href="/brand-assets/logo/nativephp.svg"
139+
class="inline-flex items-center gap-2 rounded-xl bg-white py-3 pr-5 pl-3.5 text-sm font-medium ring-1 ring-gray-300 transition duration-200 ring-inset hover:bg-gray-100 dark:bg-cloud/60 dark:text-white dark:ring-transparent dark:hover:bg-cloud"
140+
x-on:mouseenter="isHovered = true"
141+
x-on:mouseleave="isHovered = false"
142+
>
143+
<x-icons.download class="size-5" />
144+
<div>Download</div>
145+
</a>
140146
</div>
141147
</div>
142148
</section>

0 commit comments

Comments
 (0)