Skip to content

Commit dea5f15

Browse files
Add Browse All Posts link with arrow to immersive overlay
1 parent 1ec2d52 commit dea5f15

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/components/immersive.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,44 @@
485485
border-color: rgba(255,255,255,0.35);
486486
}
487487

488+
/* Browse All Posts link */
489+
.imm-about__browse-link {
490+
display: inline-flex;
491+
align-items: center;
492+
gap: 0.5rem;
493+
margin-top: 1rem;
494+
padding: 8px 14px;
495+
border-radius: 20px;
496+
background: rgba(255,255,255,0.06);
497+
border: 1px solid rgba(255,255,255,0.1);
498+
color: #fff;
499+
text-decoration: none;
500+
font-size: 0.9rem;
501+
font-weight: 500;
502+
transition: all 200ms ease;
503+
justify-self: center;
504+
width: fit-content;
505+
margin-left: auto;
506+
margin-right: auto;
507+
}
508+
509+
.imm-about__browse-link:hover {
510+
background: rgba(255,255,255,0.1);
511+
border-color: rgba(255,255,255,0.2);
512+
transform: translateY(-1px);
513+
color: #fff;
514+
}
515+
516+
.imm-about__arrow {
517+
width: 14px;
518+
height: 14px;
519+
transition: transform 200ms ease;
520+
}
521+
522+
.imm-about__browse-link:hover .imm-about__arrow {
523+
transform: translateX(2px);
524+
}
525+
488526
/* Subtle clamping to keep the overlay compact */
489527
@supports (-webkit-line-clamp: 3) {
490528
.imm-about__subtitle {

partials/immersive/index.hbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@
3535
</div>
3636
{{/unless}}
3737
{{/if}}
38+
39+
<a href="/archive" class="imm-about__browse-link">
40+
<span>Browse All Posts</span>
41+
<svg class="imm-about__arrow" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
42+
<path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
43+
</svg>
44+
</a>
3845
</div>
3946
</section>
4047

0 commit comments

Comments
 (0)