Skip to content

Commit 87a4cf9

Browse files
committed
feat: refine layout and styling in home live module
- Adjusted maximum width settings for various sections to improve responsiveness. - Enhanced grid layout for input fields to better accommodate different screen sizes. - Updated image styling to ensure proper aspect ratio and visibility across devices.
1 parent 968bb54 commit 87a4cf9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/algora_web/live/home_live.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ defmodule AlgoraWeb.HomeLive do
804804
</section>
805805
806806
<section class="relative isolate overflow-hidden bg-black py-16 sm:py-40">
807-
<div class="mx-auto max-w-8xl px-6 lg:px-8">
807+
<div class="mx-auto 2xl:max-w-7xl px-6 lg:px-8">
808808
<h2 class="font-display text-3xl font-semibold tracking-tight text-foreground sm:text-6xl text-center mb-4">
809809
Did you know?
810810
</h2>
@@ -813,7 +813,7 @@ defmodule AlgoraWeb.HomeLive do
813813
</p>
814814
815815
<div class="flex flex-col lg:flex-row gap-8">
816-
<div class="w-full lg:w-[65%] relative rounded-2xl bg-black/25 p-4 sm:p-8 lg:p-12 ring-1 ring-blue-500/20 transition-colors backdrop-blur-sm">
816+
<div class="w-full lg:max-w-6xl relative rounded-2xl bg-black/25 p-4 sm:p-8 lg:p-12 ring-1 ring-blue-500/20 transition-colors backdrop-blur-sm">
817817
<div class="grid grid-cols-1 items-center lg:grid-cols-7 gap-8 h-full">
818818
<div class="lg:col-span-3 text-base leading-6">
819819
<h3 class="text-2xl sm:text-3xl font-semibold text-foreground">
@@ -840,7 +840,7 @@ defmodule AlgoraWeb.HomeLive do
840840
phx-submit="create_tip"
841841
class="lg:col-span-4 space-y-4 sm:space-y-6"
842842
>
843-
<div class="grid grid-cols-1 sm:grid-cols-2 gap-y-4 sm:gap-y-6 gap-x-3">
843+
<div class="grid grid-cols-1 xl:grid-cols-2 gap-y-4 sm:gap-y-6 gap-x-3">
844844
<.input
845845
label="GitHub Username"
846846
field={@tip_form[:github_handle]}
@@ -872,11 +872,11 @@ defmodule AlgoraWeb.HomeLive do
872872
</div>
873873
</div>
874874
875-
<div class="hidden sm:block w-full lg:w-[35%]">
875+
<div>
876876
<img
877877
src={~p"/images/screenshots/tip-remotion.png"}
878878
alt="Tip contributor"
879-
class="w-full rounded-2xl shadow-xl ring-1 ring-white/10 p-8 sm:p-12 bg-[#0d1017]"
879+
class="w-full h-full object-contain rounded-2xl shadow-xl ring-1 ring-white/10 p-8 sm:p-12 bg-[#0d1017]"
880880
loading="lazy"
881881
/>
882882
</div>

0 commit comments

Comments
 (0)