File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,6 +296,7 @@ export default defineConfig({
296296 ] ,
297297 components : {
298298 Hero : "./src/components/Hero.astro" ,
299+ Banner : "./src/components/Banner.astro" ,
299300 Head : "./src/components/Head.astro" ,
300301 Header : "./src/components/Header.astro" ,
301302 Footer : "./src/components/Footer.astro" ,
Original file line number Diff line number Diff line change 1+ <a class =" v2-banner" href =" https://opencode.ai/v2" >
2+ <span class =" badge" >New</span >
3+ <span class =" text" >OpenCode v2 is now available</span >
4+ <span class =" arrow" aria-hidden =" true" >→ </span >
5+ </a >
6+
7+ <style >
8+ .v2-banner {
9+ display: flex;
10+ align-items: center;
11+ justify-content: center;
12+ gap: 12px;
13+ padding: 12px 24px;
14+ background: var(--color-background-interactive);
15+ color: var(--color-text-strong) !important;
16+ border-bottom: 1px solid var(--color-border-weak);
17+ text-decoration: none;
18+ font-size: 14px;
19+ line-height: 1;
20+ transition: background 0.15s ease;
21+ }
22+
23+ .v2-banner:hover {
24+ background: var(--color-background-interactive-weaker);
25+ }
26+
27+ .badge {
28+ padding: 4px 8px;
29+ background: var(--color-background-strong);
30+ color: var(--color-text-inverted);
31+ font-size: 12px;
32+ font-weight: 500;
33+ text-transform: uppercase;
34+ letter-spacing: 0.02em;
35+ border-radius: 2px;
36+ }
37+
38+ .text {
39+ font-weight: 500;
40+ }
41+
42+ .arrow {
43+ color: var(--color-text);
44+ transition: transform 0.15s ease;
45+ }
46+
47+ .v2-banner:hover .arrow {
48+ transform: translateX(4px);
49+ }
50+
51+ @media (max-width: 30rem) {
52+ .v2-banner {
53+ padding: 10px 16px;
54+ gap: 8px;
55+ }
56+
57+ .badge {
58+ display: none;
59+ }
60+ }
61+ </style >
You can’t perform that action at this time.
0 commit comments