Skip to content

Commit a80efd6

Browse files
DavertMikclaude
andcommitted
style: slim down landing announcement bar
Remove the [NEW] badge, reduce vertical padding, and use a smaller font for the purple dashed announcement strip. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9b63689 commit a80efd6

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

src/components/Announcement.astro

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { announcement } from '../config/announcement';
88
announcement.enabled && (
99
<div class="cc-announce-row">
1010
<a href={announcement.link} class="cc-announce">
11-
{announcement.tag && <span class="cc-announce-tag">[{announcement.tag}]</span>}
1211
<span class="cc-announce-text">{announcement.text}</span>
1312
</a>
1413
</div>
@@ -29,11 +28,11 @@ import { announcement } from '../config/announcement';
2928
align-items: center;
3029
justify-content: flex-start;
3130
gap: 0.5rem;
32-
padding: 1rem;
31+
padding: 0.5rem 1rem;
3332
border-radius: 5px;
3433
border: 2px dashed color-mix(in srgb, var(--cc-announce) 34%, transparent);
3534
background: color-mix(in srgb, var(--cc-announce) 3%, transparent);
36-
font-size: 0.775rem;
35+
font-size: 0.7rem;
3736
font-weight: bold;
3837
line-height: 1.3;
3938
color: var(--cc-announce);
@@ -44,12 +43,6 @@ import { announcement } from '../config/announcement';
4443
border-color: color-mix(in srgb, var(--cc-announce) 55%, transparent);
4544
background: color-mix(in srgb, var(--cc-announce) 7%, transparent);
4645
}
47-
.cc-announce-tag {
48-
flex-shrink: 0;
49-
font-weight: 700;
50-
letter-spacing: 0.04em;
51-
color: var(--cc-announce);
52-
}
5346
.cc-announce-text {
5447
position: absolute;
5548
left: 50%;

0 commit comments

Comments
 (0)