Commit 2da6144
committed
Fix CSP for Astro islands and navbar background
Astro emits inline <script type="module"> bootstrap blocks for each
client:* directive (trailer audio button, council preview button).
The strict script-src 'self' CSP blocked them, so islands never
hydrated and audio buttons did nothing. Adding 'unsafe-inline' to
script-src is the time-pressure unblock; a proper Astro CSP
integration that auto-hashes inline scripts is a follow-up.
Navbar background: .pub-navbar in public-layout.css only sets sticky
positioning, no background or blur. The sticky bar showed through to
page content on scroll, leaving nav links overlapping prose. Same
cosmic blue + blur as .pub-cta--sticky for visual consistency, added
as a scoped is:global block in marketing/src/components/Navbar.astro
so the frozen public-layout.css stays untouched.
Both fixes are already live on production via wrangler direct deploy
(d6c829a5.agora-cosmica.pages.dev). This commit brings GitHub in sync
so CF Pages auto-builds and GitHub Actions CI rebuild against matching
source.1 parent 723a96e commit 2da6144
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments