|
1 | 1 | <script> |
2 | | - import { Icon } from '@steeze-ui/svelte-icon'; |
3 | | - import { VideoCamera, Star } from '@steeze-ui/heroicons'; |
| 2 | + import { ContentType } from '$lib/types'; |
| 3 | + import ReviewCard from './ReviewCard.svelte'; |
4 | 4 | </script> |
5 | 5 |
|
6 | 6 | <section class="relative pt-20"> |
7 | 7 | <div class="bg-surface-300 h-96"> |
8 | | - <div class="flex gap-8 absolute top-0 -left-20"> |
9 | | - <div class="bcu-card max-w-sm -rotate-2"> |
10 | | - <div class="p-4 space-y-4"> |
11 | | - <article> |
12 | | - <p>The CSS Animations course is phenomenal. Very beginner-friendly!</p> |
13 | | - </article> |
14 | | - <footer class="flex justify-between"> |
15 | | - <a href="/course/css-animations">CSS Animations</a> |
16 | | - <Icon src={VideoCamera} theme="mini" class="w-6" /> |
17 | | - </footer> |
18 | | - </div> |
19 | | - </div> |
20 | | - <div class="bcu-card max-w-sm rotate-2"> |
21 | | - <div class="p-4 space-y-4"> |
22 | | - <div class="flex"> |
23 | | - <Icon src={Star} theme="mini" class="w-6" /> |
24 | | - <Icon src={Star} theme="mini" class="w-6" /> |
25 | | - <Icon src={Star} theme="mini" class="w-6" /> |
26 | | - <Icon src={Star} theme="mini" class="w-6" /> |
27 | | - <Icon src={Star} theme="mini" class="w-6" /> |
28 | | - </div> |
29 | | - <article> |
30 | | - <p>The CSS Animations course is phenomenal. Very beginner-friendly!</p> |
31 | | - </article> |
32 | | - <footer class="flex justify-between"> |
33 | | - <a href="/course/css-animations">CSS Animations</a> |
34 | | - <Icon src={VideoCamera} theme="mini" class="w-6" /> |
35 | | - </footer> |
36 | | - </div> |
| 8 | + <div class="absolute top-0 left-0 w-full"> |
| 9 | + <div class="snap-x scroll-px-4 snap-mandatory scroll-smooth flex gap-4 overflow-x-auto py-10"> |
| 10 | + <ReviewCard |
| 11 | + position="left" |
| 12 | + stars={5} |
| 13 | + description="The CSS Animations course is phenomenal. Very beginner-friendly!" |
| 14 | + link={{ href: '/course/css-animations', name: 'CSS Animations' }} |
| 15 | + icon={ContentType.course} |
| 16 | + /> |
| 17 | + <ReviewCard |
| 18 | + position="right" |
| 19 | + stars={5} |
| 20 | + description="I LOVED the podcast episode with Rich Harris! Very well-informed discussion about the web!" |
| 21 | + link={{ |
| 22 | + href: '/podcast/2-17-building-the-future-of-svelte-at-vercel', |
| 23 | + name: 'Building the Future of Svelte at Vercel' |
| 24 | + }} |
| 25 | + icon={ContentType.podcast} |
| 26 | + /> |
| 27 | + <ReviewCard |
| 28 | + position="left" |
| 29 | + stars={5} |
| 30 | + description="The Ultimate Svelte Guide course is one of the best out there!" |
| 31 | + link={{ |
| 32 | + href: '/course/svelte', |
| 33 | + name: 'Learn Svelte: The Ultimate Guide' |
| 34 | + }} |
| 35 | + icon={ContentType.course} |
| 36 | + /> |
| 37 | + <ReviewCard |
| 38 | + position="right" |
| 39 | + stars={5} |
| 40 | + description="Fireship is the best, congratulations on the interview 🎉🎉" |
| 41 | + link={{ |
| 42 | + href: 'http://localhost:5173/podcast/0-9-jeff-delaney-of-fireship-io', |
| 43 | + name: 'Fireship.io' |
| 44 | + }} |
| 45 | + icon={ContentType.podcast} |
| 46 | + /> |
| 47 | + <ReviewCard |
| 48 | + position="left" |
| 49 | + stars={5} |
| 50 | + description="Dude! This video series is the cleanest, simplest, best paced, that I've found on Svelte so far." |
| 51 | + link={{ |
| 52 | + href: '/course/sveltekit-firebase/lesson/2_5-inputs-bindings-and-reactivity', |
| 53 | + name: 'Svelte Input Bindings' |
| 54 | + }} |
| 55 | + icon={ContentType.course} |
| 56 | + /> |
37 | 57 | </div> |
38 | 58 | </div> |
39 | 59 | </div> |
|
0 commit comments