|
| 1 | +{{-- Course Card - NativePHP Masterclass --}} |
| 2 | +<a |
| 3 | + href="{{ route('course') }}" |
| 4 | + class="group relative block h-full overflow-hidden rounded-2xl bg-gradient-to-br from-emerald-500/20 via-teal-500/10 to-cyan-500/20 p-0.5 ring-1 ring-zinc-200/50 transition duration-300 hover:ring-emerald-400/50 dark:ring-emerald-500/30" |
| 5 | + x-init=" |
| 6 | + () => { |
| 7 | + motion.inView($el, (element) => { |
| 8 | + gsap.fromTo( |
| 9 | + $el, |
| 10 | + { y: 20, autoAlpha: 0 }, |
| 11 | + { |
| 12 | + y: 0, |
| 13 | + autoAlpha: 1, |
| 14 | + duration: 0.6, |
| 15 | + delay: 0.2, |
| 16 | + ease: 'power2.out', |
| 17 | + }, |
| 18 | + ) |
| 19 | + }) |
| 20 | + } |
| 21 | + " |
| 22 | +> |
| 23 | + <div class="relative flex h-full flex-col overflow-hidden rounded-xl bg-gradient-to-br from-[#F9F9F9] via-white to-[#F9F9F9] p-5 md:p-6 dark:from-slate-950 dark:via-slate-900 dark:to-slate-950"> |
| 24 | + {{-- Animated glow --}} |
| 25 | + <div |
| 26 | + x-init=" |
| 27 | + () => { |
| 28 | + gsap.to($el, { |
| 29 | + x: 20, |
| 30 | + y: -10, |
| 31 | + duration: 4, |
| 32 | + repeat: -1, |
| 33 | + yoyo: true, |
| 34 | + ease: 'sine.inOut', |
| 35 | + }) |
| 36 | + } |
| 37 | + " |
| 38 | + class="pointer-events-none absolute -right-10 -top-10 size-32 rounded-full bg-emerald-500/20 blur-[40px] transition duration-500 group-hover:bg-emerald-500/30" |
| 39 | + aria-hidden="true" |
| 40 | + ></div> |
| 41 | + |
| 42 | + {{-- Badge --}} |
| 43 | + <div class="mb-3 inline-flex w-fit items-center gap-1.5 rounded-full bg-emerald-500/20 px-2.5 py-1 text-xs font-medium text-emerald-600 dark:text-emerald-300"> |
| 44 | + <span class="relative flex size-2"> |
| 45 | + <span class="absolute inline-flex size-full animate-ping rounded-full bg-emerald-400 opacity-75"></span> |
| 46 | + <span class="relative inline-flex size-2 rounded-full bg-emerald-500"></span> |
| 47 | + </span> |
| 48 | + Early Bird |
| 49 | + </div> |
| 50 | + |
| 51 | + {{-- Title --}} |
| 52 | + <h3 class="text-xl font-bold text-gray-800 md:text-2xl dark:text-white"> |
| 53 | + The Masterclass |
| 54 | + </h3> |
| 55 | + |
| 56 | + {{-- Tagline --}} |
| 57 | + <p class="mt-1 text-sm text-emerald-600/80 dark:text-emerald-200/80"> |
| 58 | + Zero to published app. |
| 59 | + </p> |
| 60 | + |
| 61 | + {{-- Description --}} |
| 62 | + <p class="mt-3 flex-1 text-sm leading-relaxed text-gray-600 dark:text-slate-400"> |
| 63 | + Learn to build native mobile and desktop apps using PHP and Laravel. |
| 64 | + </p> |
| 65 | + |
| 66 | + {{-- Features list --}} |
| 67 | + <ul class="mt-3 space-y-1.5 text-xs text-gray-600 dark:text-slate-400"> |
| 68 | + <li class="flex items-center gap-2"> |
| 69 | + <svg class="size-3 text-emerald-500 dark:text-emerald-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> |
| 70 | + <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/> |
| 71 | + </svg> |
| 72 | + Mobile & Desktop |
| 73 | + </li> |
| 74 | + <li class="flex items-center gap-2"> |
| 75 | + <svg class="size-3 text-emerald-500 dark:text-emerald-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> |
| 76 | + <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/> |
| 77 | + </svg> |
| 78 | + Use your existing PHP skills |
| 79 | + </li> |
| 80 | + <li class="flex items-center gap-2"> |
| 81 | + <svg class="size-3 text-emerald-500 dark:text-emerald-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> |
| 82 | + <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/> |
| 83 | + </svg> |
| 84 | + Zero to published app |
| 85 | + </li> |
| 86 | + </ul> |
| 87 | + |
| 88 | + {{-- CTA --}} |
| 89 | + <div class="mt-4 flex items-center gap-2 text-sm font-medium text-emerald-600 transition duration-300 group-hover:text-emerald-500 dark:text-emerald-400 dark:group-hover:text-emerald-300"> |
| 90 | + <span>Start learning</span> |
| 91 | + <svg |
| 92 | + class="size-4 transition duration-300 group-hover:translate-x-1" |
| 93 | + fill="none" |
| 94 | + viewBox="0 0 24 24" |
| 95 | + stroke="currentColor" |
| 96 | + stroke-width="2" |
| 97 | + > |
| 98 | + <path stroke-linecap="round" stroke-linejoin="round" d="M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3" /> |
| 99 | + </svg> |
| 100 | + </div> |
| 101 | + </div> |
| 102 | +</a> |
0 commit comments