Skip to content

Commit 989bd23

Browse files
committed
style: simplify modal_video component structure for improved readability and consistency across video sections
1 parent 01b8a42 commit 989bd23

File tree

1 file changed

+24
-30
lines changed

1 file changed

+24
-30
lines changed

lib/algora_web/live/home_live.ex

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -581,16 +581,14 @@ defmodule AlgoraWeb.HomeLive do
581581
<div class="mx-auto mt-16 max-w-6xl gap-8 text-sm leading-6 sm:mt-32">
582582
<div class="grid items-center gap-x-16 gap-y-8 lg:grid-cols-12">
583583
<div class="lg:col-span-6 order-first lg:order-last">
584-
<div class="relative flex aspect-video w-full items-center justify-center overflow-hidden rounded-xl lg:rounded-2xl bg-gray-800">
585-
<.modal_video
586-
class="rounded-r-xl lg:rounded-r-2xl"
587-
src="https://www.youtube.com/embed/FXQVD02rfg8"
588-
start={8}
589-
title="How Nick got a job with Open Source Software"
590-
poster="https://img.youtube.com/vi/FXQVD02rfg8/maxresdefault.jpg"
591-
alt="Eric Allam"
592-
/>
593-
</div>
584+
<.modal_video
585+
class="rounded-xl lg:rounded-2xl"
586+
src="https://www.youtube.com/embed/FXQVD02rfg8"
587+
start={8}
588+
title="How Nick got a job with Open Source Software"
589+
poster="https://img.youtube.com/vi/FXQVD02rfg8/maxresdefault.jpg"
590+
alt="Eric Allam"
591+
/>
594592
</div>
595593
<div class="lg:col-span-6 order-last lg:order-first">
596594
<h3 class="text-3xl font-display font-bold leading-[3rem]">
@@ -614,16 +612,14 @@ defmodule AlgoraWeb.HomeLive do
614612
<div class="mx-auto mt-16 max-w-6xl gap-8 text-sm leading-6 sm:mt-32">
615613
<div class="grid items-center gap-x-16 gap-y-8 lg:grid-cols-11">
616614
<div class="lg:col-span-5">
617-
<div class="relative flex aspect-video w-full items-center justify-center overflow-hidden rounded-xl lg:rounded-2xl bg-gray-800">
618-
<.modal_video
619-
class="rounded-r-xl lg:rounded-r-2xl"
620-
src="https://www.youtube.com/embed/3wZGDuoPajk"
621-
start={13}
622-
title="OSS Bounties & Hiring engineers on Algora.io | Founder Testimonial"
623-
poster="https://img.youtube.com/vi/3wZGDuoPajk/maxresdefault.jpg"
624-
alt="Tushar Mathur"
625-
/>
626-
</div>
615+
<.modal_video
616+
class="rounded-xl lg:rounded-2xl"
617+
src="https://www.youtube.com/embed/3wZGDuoPajk"
618+
start={13}
619+
title="OSS Bounties & Hiring engineers on Algora.io | Founder Testimonial"
620+
poster="https://img.youtube.com/vi/3wZGDuoPajk/maxresdefault.jpg"
621+
alt="Tushar Mathur"
622+
/>
627623
</div>
628624
<div class="lg:col-span-6">
629625
<h3 class="text-3xl font-display font-bold leading-[3rem]">
@@ -693,19 +689,17 @@ defmodule AlgoraWeb.HomeLive do
693689
</div>
694690
<div class="pt-12 flex flex-row gap-x-16 gap-y-8">
695691
<div class="w-[24%]">
696-
<div class="relative flex aspect-[9/16] w-full items-center justify-center overflow-hidden rounded-xl lg:rounded-2xl bg-gray-800">
697-
<.modal_video
698-
class="aspect-[9/16] rounded-r-xl lg:rounded-r-2xl"
699-
src="https://www.youtube.com/embed/j4fLNIJCywk"
700-
title="High school student solves #opensource bounties"
701-
poster="https://img.youtube.com/vi/j4fLNIJCywk/maxresdefault.jpg"
702-
alt="Gergő Móricz"
703-
/>
704-
</div>
692+
<.modal_video
693+
class="aspect-[9/16] rounded-xl lg:rounded-2xl"
694+
src="https://www.youtube.com/embed/j4fLNIJCywk"
695+
title="High school student solves #opensource bounties"
696+
poster="https://img.youtube.com/vi/j4fLNIJCywk/maxresdefault.jpg"
697+
alt="Gergő Móricz"
698+
/>
705699
</div>
706700
<div class="w-[76%]">
707701
<.modal_video
708-
class="rounded-r-xl lg:rounded-r-2xl"
702+
class="rounded-xl lg:rounded-2xl"
709703
src="https://www.youtube.com/embed/HhTT-GX5tjQ"
710704
start={293}
711705
title="🧑🏻‍💻 Building your bounty hunter reputation & Mendable contributions 💸"

0 commit comments

Comments
 (0)