1+ <a
2+ href =" /bifrost"
3+ onclick =" fathom.trackEvent('black_friday_banner_click');"
4+ class =" group relative z-30 flex flex-col items-center justify-center gap-3 overflow-hidden bg-gradient-to-tl from-orange-100 to-gray-200/60 px-5 py-3 select-none sm:flex-row dark:from-orange-950/65 dark:to-gray-950/50"
5+ >
6+ {{-- Label Section --}}
7+ <div
8+ class =" flex flex-col items-center gap-2 transition duration-200 ease-in-out will-change-transform group-hover:-translate-x-0.5 sm:flex-row sm:gap-3"
9+ >
10+ {{-- Icon --}}
11+ <x-icons .banner.dollar-decrease
12+ class =" h-5 shrink-0 dark:text-orange-200"
13+ />
14+
15+ {{-- Text --}}
16+ <div class =" text-center sm:text-left" >
17+ <style >
18+ .bf-gradient-text {
19+ background-image : linear-gradient (
20+ 90deg ,
21+ var (--color-black ) 0% ,
22+ var (--color-orange-500 ) 35% ,
23+ var (--color-black ) 70%
24+ );
25+ background-size : 200% 100% ;
26+ animation : shine 2s linear infinite ;
27+ }
28+ .dark .bf-gradient-text {
29+ background-image : linear-gradient (
30+ 90deg ,
31+ var (--color-white ) 0% ,
32+ var (--color-orange-300 ) 35% ,
33+ var (--color-white ) 70%
34+ );
35+ }
36+ @keyframes shine {
37+ from {
38+ background-position : 200% center ;
39+ }
40+ to {
41+ background-position : 0% center ;
42+ }
43+ }
44+ </style >
45+ <div
46+ class =" bf-gradient-text bg-clip-text tracking-tight text-pretty text-transparent"
47+ >
48+ <b >Black Friday:</b > <em >40% off</em > Bifrost <b >Hela</b > & <b >Thor</b > plans • Code: <b >BLACKFRIDAY40</b >
49+ </div >
50+ </div >
51+ </div >
52+
53+ {{-- Countdown Timer --}}
54+ <div
55+ x-data =" countdown('2025-12-02T00:00:00Z')"
56+ class =" flex items-center gap-2 text-xs font-medium"
57+ >
58+ <span class =" text-gray-600 dark:text-gray-400" >Ends in:</span >
59+ <div class =" flex items-center gap-1" >
60+ <number-flow
61+ x-ref =" dd"
62+ class =" font-bold tabular-nums"
63+ ></number-flow >
64+ <span class =" text-gray-500 dark:text-gray-400" >d</span >
65+ </div >
66+ <div class =" flex items-center gap-1" >
67+ <number-flow
68+ x-ref =" hh"
69+ class =" font-bold tabular-nums"
70+ ></number-flow >
71+ <span class =" text-gray-500 dark:text-gray-400" >h</span >
72+ </div >
73+ <div class =" flex items-center gap-1" >
74+ <number-flow
75+ x-ref =" mm"
76+ class =" font-bold tabular-nums"
77+ ></number-flow >
78+ <span class =" text-gray-500 dark:text-gray-400" >m</span >
79+ </div >
80+ <div class =" flex items-center gap-1" >
81+ <number-flow
82+ x-ref =" ss"
83+ class =" font-bold tabular-nums"
84+ ></number-flow >
85+ <span class =" text-gray-500 dark:text-gray-400" >s</span >
86+ </div >
87+ </div >
88+
89+ {{-- Icon --}}
90+ <div
91+ class =" hidden transition duration-200 ease-in-out will-change-transform group-hover:translate-x-0.5 sm:block"
92+ >
93+ <x-icons .right-arrow class =" size-3 shrink-0" />
94+ </div >
95+ </a >
0 commit comments