Skip to content

Commit 8fa789a

Browse files
committed
refactor: update section styles
- Simplified section classes by removing redundant 'overflow-hidden' and 'bg-black' styles for better layout consistency.
1 parent bc7af60 commit 8fa789a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/algora_web/live/home_live.ex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ defmodule AlgoraWeb.HomeLive do
114114
<Header.header />
115115
<% end %>
116116
117-
<main>
118-
<section class="relative isolate overflow-hidden min-h-[100svh] bg-gradient-to-b from-background to-black">
117+
<main class="bg-black relative overflow-hidden">
118+
<section class="relative isolate min-h-[100svh] bg-gradient-to-b from-background to-black">
119119
<.pattern />
120120
<div class="mx-auto max-w-7xl pt-24 pb-12 xl:pt-20">
121121
<div class="mx-auto lg:mx-0 lg:flex lg:max-w-none lg:items-center">
@@ -171,7 +171,7 @@ defmodule AlgoraWeb.HomeLive do
171171
</div>
172172
</div>
173173
174-
<div class="relative isolate overflow-hidden py-[35vw] sm:py-[25vw]">
174+
<div class="relative isolate py-[35vw] sm:py-[25vw]">
175175
<div class="z-20 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform">
176176
<div class="scale-[300%] sm:scale-[150%] opacity-50">
177177
<div class="[transform:perspective(4101px)_rotateX(51deg)_rotateY(-13deg)_rotateZ(40deg)]">
@@ -408,7 +408,7 @@ defmodule AlgoraWeb.HomeLive do
408408
</div>
409409
</section>
410410
411-
<section class="relative isolate overflow-hidden bg-black py-16 sm:py-40">
411+
<section class="relative isolate py-16 sm:py-40">
412412
<div class="mx-auto max-w-7xl px-6 lg:px-8">
413413
<img
414414
src={~p"/images/logos/yc.svg"}
@@ -467,7 +467,7 @@ defmodule AlgoraWeb.HomeLive do
467467
</div>
468468
</section>
469469
470-
<section class="relative isolate overflow-hidden bg-black py-16 sm:py-40">
470+
<section class="relative isolate py-16 sm:py-40">
471471
<div class="mx-auto max-w-7xl px-6 lg:px-8">
472472
<h2 class="font-display text-3xl font-semibold tracking-tight text-foreground sm:text-6xl text-center mb-2 sm:mb-4">
473473
Build product faster
@@ -685,7 +685,7 @@ defmodule AlgoraWeb.HomeLive do
685685
</div>
686686
</section>
687687
688-
<section class="relative isolate overflow-hidden bg-black py-16 sm:py-40">
688+
<section class="relative isolate py-16 sm:py-40">
689689
<div class="mx-auto max-w-7xl px-6 lg:px-8">
690690
<h2 class="font-display text-4xl font-semibold tracking-tight text-foreground sm:text-6xl text-center mb-2 sm:mb-4">
691691
Hire by building product
@@ -762,7 +762,7 @@ defmodule AlgoraWeb.HomeLive do
762762
</div>
763763
</section>
764764
765-
<section class="relative isolate overflow-hidden bg-black py-16 sm:py-40">
765+
<section class="relative isolate py-16 sm:py-40">
766766
<div class="mx-auto max-w-7xl px-6 lg:px-8">
767767
<div class="mx-auto mt-16 max-w-6xl gap-8 text-sm leading-6 sm:mt-32">
768768
<.link
@@ -843,7 +843,7 @@ defmodule AlgoraWeb.HomeLive do
843843
</div>
844844
</section>
845845
846-
<section class="relative isolate overflow-hidden bg-black py-16 sm:py-40">
846+
<section class="relative isolate py-16 sm:py-40">
847847
<div class="mx-auto px-6 lg:px-8">
848848
<div class="relative z-10 pb-4 xl:py-16">
849849
<div class="mx-auto max-w-7xl sm:text-center">
@@ -901,7 +901,7 @@ defmodule AlgoraWeb.HomeLive do
901901
</div>
902902
</section>
903903
904-
<section class="relative isolate overflow-hidden bg-black py-16 sm:py-40">
904+
<section class="relative isolate py-16 sm:py-40">
905905
<div class="mx-auto 2xl:max-w-[90rem] px-6 lg:px-8">
906906
<h2 class="font-display text-3xl font-semibold tracking-tight text-foreground sm:text-6xl text-center mb-2 sm:mb-4">
907907
Did you know?
@@ -982,7 +982,7 @@ defmodule AlgoraWeb.HomeLive do
982982
</div>
983983
</section>
984984
985-
<section class="relative isolate bg-black py-16 sm:py-40">
985+
<section class="relative isolate py-16 sm:py-40">
986986
<div class="mx-auto max-w-7xl px-6 lg:px-8">
987987
<h2 class="mb-8 text-3xl font-bold text-card-foreground text-center">
988988
<span class="text-muted-foreground">The open source</span>

0 commit comments

Comments
 (0)