Skip to content

Commit 4037b01

Browse files
✨ Enhance Bifrost banner with decorative arrows and improved styling
1 parent 5b9b276 commit 4037b01

File tree

2 files changed

+68
-6
lines changed

2 files changed

+68
-6
lines changed

resources/views/components/bifrost-banner.blade.php

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,57 @@
11
<a
22
href="https://bifrost.nativephp.com/"
33
onclick="fathom.trackEvent('alert_click');"
4-
class="group relative z-30 flex items-center justify-center gap-x-2 gap-y-2.5 overflow-hidden bg-slate-100 px-5 py-3 select-none dark:bg-[#050714]"
4+
class="group relative z-30 flex flex-col items-center justify-center gap-x-3 gap-y-2.5 overflow-hidden bg-slate-200/60 px-5 py-3 select-none sm:flex-row dark:bg-gray-950/50"
55
>
6-
{{-- Laracon --}}
6+
{{-- Left side decorations --}}
7+
<div class="absolute top-1/2 left-2 -z-5 hidden -translate-y-1/2 md:block">
8+
<div class="flex items-center gap-2">
9+
{{-- Lines --}}
10+
<div
11+
class="flex items-center *:-mr-1 *:h-0.5 *:w-4 *:-rotate-50 *:rounded-full *:bg-slate-300 *:dark:bg-gray-600"
12+
>
13+
<div class="opacity-10"></div>
14+
<div class="opacity-20"></div>
15+
<div class="opacity-30"></div>
16+
<div class="opacity-40"></div>
17+
<div class="opacity-50"></div>
18+
<div class="opacity-60"></div>
19+
<div class="opacity-70"></div>
20+
<div class="opacity-80"></div>
21+
</div>
22+
23+
{{-- Arrow --}}
24+
<x-icons.modern-arrow
25+
class="h-3.5 text-slate-300 dark:text-gray-600"
26+
/>
27+
</div>
28+
</div>
29+
30+
{{-- Right side decorations --}}
31+
<div class="absolute top-1/2 right-2 -z-5 hidden -translate-y-1/2 md:block">
32+
<div class="flex items-center gap-2">
33+
{{-- Arrow --}}
34+
<x-icons.modern-arrow
35+
class="h-3.5 -scale-x-100 -scale-y-100 text-slate-300 dark:text-gray-600"
36+
/>
37+
38+
{{-- Lines --}}
39+
<div
40+
class="flex items-center *:-mr-1 *:h-0.5 *:w-4 *:rotate-50 *:rounded-full *:bg-slate-300 *:dark:bg-gray-600"
41+
>
42+
<div class="opacity-80"></div>
43+
<div class="opacity-70"></div>
44+
<div class="opacity-60"></div>
45+
<div class="opacity-50"></div>
46+
<div class="opacity-40"></div>
47+
<div class="opacity-30"></div>
48+
<div class="opacity-20"></div>
49+
<div class="opacity-10"></div>
50+
</div>
51+
</div>
52+
</div>
53+
54+
{{-- Bifrost --}}
755
<div
856
class="flex items-center gap-2.5 transition duration-200 ease-in-out will-change-transform group-hover:-translate-x-0.5"
957
>
@@ -45,24 +93,25 @@ class="flex items-center justify-center gap-3 transition duration-200 ease-in-ou
4593
}
4694
</style>
4795
<div
48-
class="gradient-text bg-clip-text tracking-tight text-transparent"
96+
class="gradient-text bg-clip-text text-center tracking-tight text-pretty text-transparent"
4997
>
5098
Build for anything. From anywhere. With PHP
5199
</div>
52100
</div>
101+
53102
{{-- Arrow --}}
54-
<x-icons.right-arrow class="size-3 shrink-0 text-white" />
103+
<x-icons.right-arrow class="size-3 shrink-0" />
55104
</div>
56105

57106
{{-- Left blur --}}
58-
<div class="absolute top-12 right-1/2 -z-10 translate-x-1/2">
107+
<div class="absolute right-1/2 -bottom-11 -z-10 translate-x-1/2">
59108
<div
60109
class="h-10 w-36 -translate-x-10 -rotate-15 rounded-full bg-sky-300 blur-xl dark:bg-sky-500/60"
61110
></div>
62111
</div>
63112

64113
{{-- Right blur --}}
65-
<div class="absolute top-12 right-1/2 -z-10 translate-x-1/2">
114+
<div class="absolute right-1/2 -bottom-11 -z-10 translate-x-1/2">
66115
<div
67116
class="h-10 w-36 translate-x-10 -rotate-15 rounded-full bg-pink-300 blur-xl dark:bg-slate-400/60"
68117
></div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<svg
2+
{{ $attributes }}
3+
xmlns="http://www.w3.org/2000/svg"
4+
viewBox="0 0 23 28"
5+
fill="none"
6+
>
7+
<path
8+
fill-rule="evenodd"
9+
clip-rule="evenodd"
10+
d="M11.4872 0.393906L22.3968 11.3036L22.3966 11.3037L22.3967 11.3037L22.387 16.6444L14.5679 16.6302L15.2636 23.472L11.2774 27.4582L7.50096 23.6818L14.5526 16.6302L0.649884 16.6049L0.659572 11.2643L14.8305 11.29L7.71077 4.17032L11.4872 0.393906Z"
11+
fill="currentColor"
12+
/>
13+
</svg>

0 commit comments

Comments
 (0)