Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions app/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,37 @@
text-wrap: pretty;
}

/* Phones get three one-line jump links. Each section intro below repeats the door text,
and the full doors cost a screen of scroll before the first section. Touch has no
hover, so the arrow stays visible. */
@media (max-width: 47.999rem) {
.home-door {
flex-direction: row;
align-items: center;
gap: 0.75rem;
padding: 1rem 0;
}

.home-door-mark {
margin-bottom: 0;
}

.home-door-title {
flex: 1;
justify-content: space-between;
font-size: 1rem;
}

.home-door-arrow {
opacity: 1;
transform: none;
}

.home-door-text {
display: none;
}
}

@media (prefers-reduced-motion: reduce) {
.home-door::before,
.home-door-arrow {
Expand Down
6 changes: 3 additions & 3 deletions app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -432,17 +432,17 @@ function recentUpdateDescription(item: RecentUpdateCard): string {
<div class="mx-auto grid max-w-6xl gap-px px-4 sm:px-6 md:grid-cols-3">
<NuxtLink :to="trendingDoorTarget" class="home-door">
<UIcon name="i-lucide-flame" class="home-door-mark" aria-hidden="true" />
<span class="home-door-title">Trending this week<UIcon name="i-lucide-arrow-right" class="home-door-arrow" aria-hidden="true" /></span>
<span class="home-door-title">Trending skills this week<UIcon name="i-lucide-arrow-right" class="home-door-arrow" aria-hidden="true" /></span>
<span class="home-door-text">The skills devs are posting about right now. Every card names the author and links the source.</span>
</NuxtLink>
<NuxtLink to="#outcomes" class="home-door">
<UIcon name="i-lucide-route" class="home-door-mark" aria-hidden="true" />
<span class="home-door-title">Skills for your kind of work<UIcon name="i-lucide-arrow-right" class="home-door-arrow" aria-hidden="true" /></span>
<span class="home-door-title">Skills for your work<UIcon name="i-lucide-arrow-right" class="home-door-arrow" aria-hidden="true" /></span>
<span class="home-door-text">Tracks for review, testing, design, SEO and shipping. A person picked each list.</span>
</NuxtLink>
<NuxtLink to="#freshness" class="home-door">
<UIcon name="i-lucide-eye" class="home-door-mark" aria-hidden="true" />
<span class="home-door-title">Watch it change<UIcon name="i-lucide-arrow-right" class="home-door-arrow" aria-hidden="true" /></span>
<span class="home-door-title">Keep up with skill changes<UIcon name="i-lucide-arrow-right" class="home-door-arrow" aria-hidden="true" /></span>
<span class="home-door-text">Maintainers ship often. Watch the repos you rely on. One digest lists what changed.</span>
</NuxtLink>
</div>
Expand Down