Skip to content

Commit 3a84a68

Browse files
simonhampclaude
andauthored
Add tutor details, video embed, and instructors section to course page (#362)
- Embed YouTube teaser video after the hero section with minimal chrome - Add "Meet Your Instructors" section featuring Shruti Balasa as tutor with bio, and Simon Hamp and Shane Rosenthal as co-creators - Include Shruti's profile image Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6d6c738 commit 3a84a68

File tree

3 files changed

+135
-1
lines changed

3 files changed

+135
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/img/shruti.jpg

290 KB
Loading

resources/views/course.blade.php

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,41 @@ class="text-sm font-medium text-gray-500 transition hover:text-gray-700 dark:tex
149149
</div>
150150
</section>
151151

152+
{{-- Video --}}
153+
<section class="mt-16">
154+
<div
155+
x-init="
156+
() => {
157+
motion.inView($el, (element) => {
158+
motion.animate(
159+
$el,
160+
{
161+
opacity: [0, 1],
162+
scale: [0.95, 1],
163+
},
164+
{
165+
duration: 0.7,
166+
ease: motion.easeOut,
167+
},
168+
)
169+
})
170+
}
171+
"
172+
class="mx-auto max-w-3xl overflow-hidden rounded-2xl shadow-xl"
173+
>
174+
<div class="relative w-full" style="padding-bottom: 56.25%">
175+
<iframe
176+
class="absolute inset-0 size-full"
177+
src="https://www.youtube-nocookie.com/embed/HO9zbS2dM7M?rel=0&modestbranding=1"
178+
title="The NativePHP Masterclass"
179+
frameborder="0"
180+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
181+
allowfullscreen
182+
></iframe>
183+
</div>
184+
</div>
185+
</section>
186+
152187
{{-- What You'll Learn --}}
153188
<section
154189
class="mt-24"
@@ -517,6 +552,105 @@ class="size-6"
517552
</div>
518553
</section>
519554

555+
{{-- Meet Your Instructors --}}
556+
<section
557+
class="mt-24"
558+
aria-labelledby="instructors-heading"
559+
>
560+
<header class="text-center">
561+
<h2
562+
id="instructors-heading"
563+
x-init="
564+
() => {
565+
motion.inView($el, (element) => {
566+
motion.animate(
567+
$el,
568+
{
569+
opacity: [0, 1],
570+
y: [-10, 0],
571+
},
572+
{
573+
duration: 0.7,
574+
ease: motion.easeOut,
575+
},
576+
)
577+
})
578+
}
579+
"
580+
class="text-3xl font-semibold"
581+
>
582+
Meet Your Instructors
583+
</h2>
584+
<p class="mx-auto mt-3 max-w-2xl text-gray-600 dark:text-gray-400">
585+
Learn from experienced developers and educators who built NativePHP
586+
</p>
587+
</header>
588+
589+
<div
590+
x-init="
591+
() => {
592+
motion.inView($el, (element) => {
593+
motion.animate(
594+
Array.from($el.children),
595+
{
596+
y: [30, 0],
597+
opacity: [0, 1],
598+
},
599+
{
600+
duration: 0.7,
601+
ease: motion.backOut,
602+
delay: motion.stagger(0.15),
603+
},
604+
)
605+
})
606+
}
607+
"
608+
class="mx-auto mt-10 max-w-3xl space-y-8"
609+
>
610+
{{-- Shruti --}}
611+
<div class="rounded-2xl bg-gradient-to-br from-emerald-50 to-teal-50 p-8 ring-1 ring-emerald-200 dark:from-emerald-950/30 dark:to-teal-950/30 dark:ring-emerald-800/50 sm:flex sm:items-start sm:gap-8">
612+
<img
613+
src="/img/shruti.jpg"
614+
alt="Shruti Balasa"
615+
class="mx-auto size-28 shrink-0 rounded-full object-cover sm:mx-0"
616+
/>
617+
<div class="mt-4 text-center sm:mt-0 sm:text-left">
618+
<h3 class="text-xl font-semibold">Shruti Balasa</h3>
619+
<p class="text-sm font-medium text-emerald-600 dark:text-emerald-400">Your Tutor</p>
620+
<p class="mt-3 text-sm text-gray-600 dark:text-gray-400">
621+
Shruti is a regular contributor to Laracasts, a veteran public speaker, and one of the best tech educators around. She brings clarity and warmth to even the most complex topics, making sure you never feel lost.
622+
</p>
623+
</div>
624+
</div>
625+
626+
{{-- Simon & Shane --}}
627+
<p class="text-center text-sm font-medium text-gray-500 dark:text-gray-400">You'll also see...</p>
628+
<div class="grid gap-6 sm:grid-cols-2">
629+
{{-- Simon --}}
630+
<div class="rounded-2xl bg-gray-100 p-6 text-center dark:bg-mirage">
631+
<img
632+
src="/img/team/simonhamp.jpg"
633+
alt="Simon Hamp"
634+
class="mx-auto size-20 rounded-full object-cover"
635+
/>
636+
<h3 class="mt-4 text-lg font-semibold">Simon Hamp</h3>
637+
<p class="text-sm text-gray-500 dark:text-gray-400">Co-creator of NativePHP</p>
638+
</div>
639+
640+
{{-- Shane --}}
641+
<div class="rounded-2xl bg-gray-100 p-6 text-center dark:bg-mirage">
642+
<img
643+
src="/img/team/shanerosenthal.jpg"
644+
alt="Shane Rosenthal"
645+
class="mx-auto size-20 rounded-full object-cover"
646+
/>
647+
<h3 class="mt-4 text-lg font-semibold">Shane Rosenthal</h3>
648+
<p class="text-sm text-gray-500 dark:text-gray-400">Co-creator of NativePHP</p>
649+
</div>
650+
</div>
651+
</div>
652+
</section>
653+
520654
{{-- Pricing --}}
521655
<section
522656
id="pricing"

0 commit comments

Comments
 (0)