parastoo-dashboards/dashboards/header-banner.html

292 lines
No EOL
9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>بنر نواری هدر بلک‌فرایدی اکیپا</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@500;700;800&display=swap" rel="stylesheet">
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #1a181b;
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
padding: 40px 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
/* Container for Header Banner */
.ekeepa-top-banner-wrapper {
width: 100%;
max-width: 1400px;
margin: 0 auto;
}
.ekeepa-header-banner {
position: relative;
width: 100%;
height: 50px;
background-color: #2c2a2d;
border-radius: 8px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
user-select: none;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
/* Bottom Neon Gradient Line */
.ekeepa-header-banner::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, #35bab1, #6c5dad, #f69543, #35bab1);
background-size: 300% 100%;
animation: neonGlowMove 6s linear infinite;
box-shadow: 0 0 8px rgba(53, 186, 177, 0.6);
}
@keyframes neonGlowMove {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* Frame Base Styling */
.banner-frame {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 0 16px;
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(6px);
transition: none;
}
/* Frame 1: Hook */
.frame-1 {
animation: frameOneAnim 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
/* Frame 2: Lines coverage */
.frame-2 {
animation: frameTwoAnim 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
/* Frame 3: CTA */
.frame-3 {
animation: frameThreeAnim 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
/* Keyframes 10s Cycle */
@keyframes frameOneAnim {
0% { opacity: 0; visibility: hidden; transform: translateY(6px); }
3% { opacity: 1; visibility: visible; transform: translateY(0); }
29% { opacity: 1; visibility: visible; transform: translateY(0); }
32% { opacity: 0; visibility: hidden; transform: translateY(-6px); }
100% { opacity: 0; visibility: hidden; }
}
@keyframes frameTwoAnim {
0%, 32% { opacity: 0; visibility: hidden; transform: translateY(6px); }
35% { opacity: 1; visibility: visible; transform: translateY(0); }
62% { opacity: 1; visibility: visible; transform: translateY(0); }
65% { opacity: 0; visibility: hidden; transform: translateY(-6px); }
100% { opacity: 0; visibility: hidden; }
}
@keyframes frameThreeAnim {
0%, 65% { opacity: 0; visibility: hidden; transform: scale(0.96); }
68% { opacity: 1; visibility: visible; transform: scale(1); }
96% { opacity: 1; visibility: visible; transform: scale(1); }
99%, 100% { opacity: 0; visibility: hidden; transform: scale(0.96); }
}
/* Typography & Visual Elements */
.banner-text {
color: #ffffff;
font-size: 15px;
font-weight: 700;
white-space: nowrap;
letter-spacing: -0.2px;
}
/* Pill Badges & Accents */
.black-friday-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
font-size: 11px;
font-weight: 800;
border-radius: 4px;
background: rgba(246, 149, 67, 0.15);
border: 1px solid #f69543;
color: #f69543;
box-shadow: 0 0 8px rgba(246, 149, 67, 0.3);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Mini Line Icons */
.icon-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
}
.icon-art {
background: rgba(53, 186, 177, 0.15);
border: 1px solid rgba(53, 186, 177, 0.6);
box-shadow: 0 0 6px rgba(53, 186, 177, 0.3);
}
.icon-horror {
background: rgba(108, 93, 173, 0.2);
border: 1px solid rgba(108, 93, 173, 0.6);
box-shadow: 0 0 6px rgba(108, 93, 173, 0.3);
}
/* CTA Pill Button (Frame 3) */
.cta-pill-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 16px;
background: rgba(246, 149, 67, 0.12);
border: 1.5px solid #f69543;
border-radius: 20px;
box-shadow: 0 0 12px rgba(246, 149, 67, 0.35);
animation: ctaPulse 1.8s ease-in-out infinite;
}
@keyframes ctaPulse {
0%, 100% {
box-shadow: 0 0 8px rgba(246, 149, 67, 0.35);
border-color: #f69543;
}
50% {
box-shadow: 0 0 16px rgba(53, 186, 177, 0.6);
border-color: #35bab1;
}
}
.cta-arrow {
display: inline-flex;
transition: transform 0.2s ease;
animation: arrowBob 1.2s ease-in-out infinite;
}
@keyframes arrowBob {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(-3px); }
}
/* Mobile Responsive */
@media (max-width: 768px) {
.ekeepa-header-banner {
height: 46px;
border-radius: 0;
}
.banner-text {
font-size: 13px;
}
.black-friday-badge {
font-size: 10px;
padding: 1px 6px;
}
.icon-badge {
width: 20px;
height: 20px;
}
.cta-pill-btn {
padding: 4px 12px;
}
}
@media (max-width: 480px) {
.banner-text {
font-size: 11.5px;
}
.black-friday-badge {
display: none; /* Hide badge on very small screens to avoid overflow */
}
}
</style>
</head>
<body>
<div class="ekeepa-top-banner-wrapper">
<!-- Clickable Header Banner Component -->
<a href="https://ekeepa.ir/campaign/black-friday" class="ekeepa-header-banner" aria-label="جشنواره بلک فرایدی اکیپا">
<!-- فریم اول: هوک بلک‌فرایدی (ثانیه ۰ تا ۳.۳) -->
<div class="banner-frame frame-1">
<span class="black-friday-badge">BLACK FRIDAY</span>
<span class="banner-text">این شما و این تخفیف‌های بلک‌فرایدی!</span>
</div>
<!-- فریم دوم: پوشش لاین‌ها (ثانیه ۳.۳ تا ۶.۶) -->
<div class="banner-frame frame-2">
<span class="icon-badge icon-art" title="کارگاه‌های هنر و آرامش">
<!-- Palette SVG -->
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="#35bab1" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="13.5" cy="6.5" r=".5" fill="#35bab1"/>
<circle cx="17.5" cy="10.5" r=".5" fill="#35bab1"/>
<circle cx="8.5" cy="7.5" r=".5" fill="#35bab1"/>
<circle cx="6.5" cy="12.5" r=".5" fill="#35bab1"/>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.563-2.512 5.563-5.563C22 6.5 17.5 2 12 2z"/>
</svg>
</span>
<span class="banner-text">همه تفریح‌های اکیپا با تخفیف استثنایی!</span>
<span class="icon-badge icon-horror" title="اتاق فرار و سینما وحشت">
<!-- Ghost / Horror Mask SVG -->
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="#6c5dad" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 10h.01M15 10h.01"/>
<path d="M10 16c.5-1 1.5-1 2-1s1.5 0 2 1"/>
<path d="M12 2a8 8 0 0 0-8 8v11l3-2 3 2 2-2 3 2 3-2v-11a8 8 0 0 0-8-8z"/>
</svg>
</span>
</div>
<!-- فریم سوم: فراخوان اقدام CTA (ثانیه ۶.۶ تا ۱۰) -->
<div class="banner-frame frame-3">
<div class="cta-pill-btn">
<span class="banner-text">همین حالا تفریحت رو انتخاب کن!</span>
<span class="cta-arrow">
<!-- Left Arrow SVG -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="#f69543" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<line x1="19" y1="12" x2="5" y2="12"></line>
<polyline points="12 19 5 12 12 5"></polyline>
</svg>
</span>
</div>
</div>
</a>
</div>
</body>
</html>