Skip to content

Commit 781a2d4

Browse files
committed
feat(ui): add blurred gradient backgrounds to course and track pages
Introduce fixed blurred gradient overlays to the course overview and track pages to enhance visual appeal and maintain design consistency. Remove the previously commented out gradient from the catalog page as it is no longer used. Also update the track page’s dark mode background and border colors to darker shades for improved contrast and visual coherence with the new gradients.
1 parent 2273095 commit 781a2d4

File tree

3 files changed

+46
-11
lines changed

3 files changed

+46
-11
lines changed

app/templates/catalog.hbs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@
1919
<div class="absolute top-24 left-24 rounded-full h-60 w-full bg-purple-600"></div>
2020
</div>
2121
</div>
22-
23-
{{! Center blurred gradient }}
24-
{{!-- <div class="w-1/2 h-60 absolute top-0 left-1/4 right-1/4 opacity-50 animate-spin-slow filter blur-[100px]">
25-
<div class="relative">
26-
<div class="rounded-full h-60 w-full bg-blue-600"></div>
27-
<div class="absolute bottom-24 -left-24 rounded-full h-60 w-full bg-purple-700"></div>
28-
<div class="absolute top-24 left-24 rounded-full h-60 w-full bg-purple-600"></div>
29-
</div>
30-
</div> --}}
3122
</div>
3223
</div>
3324

app/templates/course-overview.hbs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
{{page-title this.model.course.name}}
22

3+
<div class="fixed inset-0 flex items-stretch justify-stretch pointer-events-none">
4+
<div class="w-full relative overflow-hidden rounded-sm">
5+
{{! Left blurred gradient }}
6+
<div class="w-1/2 h-60 absolute -bottom-32 -left-1/4 opacity-50 animate-spin-slow filter blur-[100px]">
7+
<div class="relative">
8+
<div class="rounded-full h-60 w-full bg-purple-800"></div>
9+
<div class="absolute bottom-24 -left-24 rounded-full h-60 w-full bg-red-800"></div>
10+
<div class="absolute top-24 left-24 rounded-full h-60 w-full bg-purple-600"></div>
11+
</div>
12+
</div>
13+
14+
{{! Right blurred gradient }}
15+
<div class="w-1/2 h-60 absolute -bottom-40 -right-1/4 opacity-50 animate-spin-slow filter blur-[100px]">
16+
<div class="relative">
17+
<div class="rounded-full h-60 w-full bg-blue-600"></div>
18+
<div class="absolute bottom-24 -left-24 rounded-full h-60 w-full bg-blue-700"></div>
19+
<div class="absolute top-24 left-24 rounded-full h-60 w-full bg-purple-600"></div>
20+
</div>
21+
</div>
22+
</div>
23+
</div>
24+
325
<div class="container mx-auto lg:max-w-(--breakpoint-lg) pt-6 md:pt-10 pb-10 px-3 md:px-6">
426
<CourseOverviewPage::Header @course={{this.model.course}} @language={{this.model.language}} class="mb-6 md:mb-10" />
527

app/templates/track.hbs

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
11
{{page-title @model.language.name}}
22

3+
<div class="fixed inset-0 flex items-stretch justify-stretch pointer-events-none">
4+
<div class="w-full relative overflow-hidden rounded-sm">
5+
{{! Left blurred gradient }}
6+
<div class="w-1/2 h-60 absolute -bottom-32 -left-1/4 opacity-50 animate-spin-slow filter blur-[100px]">
7+
<div class="relative">
8+
<div class="rounded-full h-60 w-full bg-purple-800"></div>
9+
<div class="absolute bottom-24 -left-24 rounded-full h-60 w-full bg-red-800"></div>
10+
<div class="absolute top-24 left-24 rounded-full h-60 w-full bg-purple-600"></div>
11+
</div>
12+
</div>
13+
14+
{{! Right blurred gradient }}
15+
<div class="w-1/2 h-60 absolute -bottom-40 -right-1/4 opacity-50 animate-spin-slow filter blur-[100px]">
16+
<div class="relative">
17+
<div class="rounded-full h-60 w-full bg-blue-600"></div>
18+
<div class="absolute bottom-24 -left-24 rounded-full h-60 w-full bg-blue-700"></div>
19+
<div class="absolute top-24 left-24 rounded-full h-60 w-full bg-purple-600"></div>
20+
</div>
21+
</div>
22+
</div>
23+
</div>
24+
325
<div class="container mx-auto lg:max-w-(--breakpoint-lg) px-3 md:px-6 py-6 md:py-10">
426
<TrackPage::Header @language={{@model.language}} @courses={{this.sortedCourses}} />
527
</div>
628

729
<div class="h-px bg-gray-200 dark:bg-white/5 w-full"></div>
830

9-
<div class="bg-white dark:bg-gray-925">
31+
<div class="bg-white dark:bg-gray-950">
1032
<div class="container mx-auto lg:max-w-(--breakpoint-lg) px-3 md:px-6 py-6 md:py-10">
1133
<div class="flex items-start">
1234
<div class="grow">
@@ -18,7 +40,7 @@
1840
/>
1941
{{/if}}
2042

21-
<div class="border-b border-gray-200 dark:border-gray-700 pb-1 mb-4 flex">
43+
<div class="border-b border-gray-200 dark:border-gray-900 pb-1 mb-4 flex">
2244
<div class="text-2xl font-semibold text-gray-900 dark:text-gray-200">
2345
{{@model.language.name}}
2446
Challenges

0 commit comments

Comments
 (0)