Skip to content

Commit cad4110

Browse files
committed
feat(roadmap): always show RoadmapInfoAlert on all screen sizes
Remove the "hidden md:block" classes from RoadmapInfoAlert components to ensure the informational alerts about challenges and extensions are visible on all screen sizes. Also, update RoadmapInfoAlert to forward HTML attributes to the underlying Alert component for better flexibility. These changes improve user awareness of roadmap concepts regardless of device or viewport.
1 parent 6eb70d4 commit cad4110

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/components/roadmap-info-alert.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Alert @color="blue" class="p-5">
1+
<Alert @color="blue" class="p-5" ...attributes>
22
<div class="prose prose-sm dark:prose-invert prose-blue prose-compact">
33
<h4>
44
<div class="flex items-center gap-1">

app/templates/roadmap/course-extension-ideas.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div class="flex flex-col md:flex-row-reverse gap-3">
22
<div class="w-full md:w-60 flex-shrink-0">
33
<div class="md:sticky md:top-4 flex flex-col gap-3">
4-
54
<LatestReleasesCard @courseExtensionIdeas={{@model.courseExtensionIdeas}} @courseIdeas={{@model.courseIdeas}} />
65
</div>
76
</div>
87
<div class="flex-grow flex flex-col gap-3">
9-
<RoadmapInfoAlert @heading="What are challenge extensions?" class="hidden md:block">
8+
<RoadmapInfoAlert @heading="What are challenge extensions?">
109
Challenge extensions are groups of extra stages that extend challenges. Vote and help us decide which ones to build.
1110
</RoadmapInfoAlert>
11+
1212
<div class="flex items-center mb-6">
1313
<CourseDropdown
1414
@courses={{this.orderedCourses}}

app/templates/roadmap/course-ideas.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</div>
77
</div>
88
<div class="flex-grow flex flex-col gap-3">
9-
<RoadmapInfoAlert @heading="What are challenges?" class="hidden md:block">
9+
<RoadmapInfoAlert @heading="What are challenges?">
1010
Challenges are step-by-step coding exercises where you build projects from scratch. Vote and help us decide which challenges to build.
1111
</RoadmapInfoAlert>
1212

0 commit comments

Comments
 (0)