Skip to content

Commit 03f48cd

Browse files
MaxDatenclaude
andcommitted
fix(og): add bottom fade gradient and intensify CTA glow on article OG card
Add bottom-to-top fade overlay on cover image, move CTA to wrapper level so it paints above the fade (Satori has no z-index), and add layered glow shadows to the Read More button. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent dc77e31 commit 03f48cd

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/routes/[slug]/og.jpg/OgCard.svelte

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,16 @@
5454
{#if coverImageSrc}
5555
<div class="image-frame">
5656
<img src={coverImageSrc} alt="" class="wide-cover-image" />
57-
<div class="cta-overlay">
58-
<div class="cta">Read More</div>
59-
</div>
6057
</div>
6158
{/if}
6259
</div>
60+
61+
<!-- Fade overlay for smooth cover image exit at bottom edge -->
62+
<div class="image-fade"></div>
63+
<!-- CTA last in DOM so it paints on top of the fade (Satori has no z-index) -->
64+
<div class="cta-overlay">
65+
<div class="cta">Read More</div>
66+
</div>
6367
</div>
6468

6569
<style>
@@ -197,6 +201,17 @@
197201
border-radius: 12px 12px 0 0;
198202
}
199203
204+
/* Bottom fade overlay - mirrors ProfileOgCard's right-edge fade pattern */
205+
.image-fade {
206+
display: flex;
207+
position: absolute;
208+
left: 0;
209+
right: 0;
210+
bottom: 0;
211+
height: 200px;
212+
background: linear-gradient(180deg, rgba(10, 10, 12, 0), #0a0a0c);
213+
}
214+
200215
.cta-overlay {
201216
display: flex;
202217
position: absolute;
@@ -216,7 +231,9 @@
216231
font-size: 34px;
217232
font-weight: 700;
218233
box-shadow:
219-
0 4px 12px rgba(255, 128, 0, 0.4),
234+
0 0 40px rgba(255, 128, 0, 0.6),
235+
0 0 80px rgba(255, 128, 0, 0.3),
236+
0 4px 12px rgba(255, 128, 0, 0.5),
220237
inset 0 1px 0 rgba(255, 255, 255, 0.4);
221238
}
222239
</style>

0 commit comments

Comments
 (0)