forked from aep-dev/site-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReleaseBanner.astro
More file actions
62 lines (55 loc) · 1.22 KB
/
Copy pathReleaseBanner.astro
File metadata and controls
62 lines (55 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
// TODO: Make this banner configurable through a config file or CMS
// Consider adding fields for:
// - Banner text
// - Link URL
// - Enable/disable flag
// - Expiration date
// - Background color/theme
---
<div class="release-banner">
<a href="https://aep.dev/blog/aep-2026-release/" target="_blank" rel="noopener noreferrer">
🎉 aep-2026 has officially been released 🎉
</a>
</div>
<style>
.release-banner {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: var(--sl-shadow-md);
margin-bottom: 2rem;
padding: 1rem 2rem;
text-align: center;
border-radius: 0.5rem;
animation: fadeIn 0.5s ease-in;
}
.release-banner a {
color: white;
text-decoration: none;
font-size: 1.25rem;
font-weight: 600;
display: block;
transition: opacity 0.2s ease;
}
.release-banner a:hover {
opacity: 0.9;
text-decoration: underline;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.release-banner a {
font-size: 1rem;
}
.release-banner {
padding: 0.75rem 1rem;
}
}
</style>