Skip to content

Commit 9cffb8a

Browse files
committed
fix: home page responsiveness
1 parent 715d65d commit 9cffb8a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Web/Homepage/x-home-section.view.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<x-component name="x-home-section">
2-
<section class="my-[10vh] flex justify-center flex-col tracking-tighter px-6">
3-
<div class="grid grid-cols-2 gap-x-12 items-center">
2+
<section class="mb-20 lg:my-[10vh] flex justify-center flex-col tracking-tighter px-6">
3+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-x-12 items-center">
44
<!-- Left -->
5-
<div>
5+
<div class="p-2 lg:p-0">
66
<div class="max-w-xl text-sans">
7-
<span class="text-2xl md:text-4xl xl:text-5xl font-semibold leading-none flex flex-col text-display">
7+
<span class="text-xl md:text-4xl xl:text-5xl font-semibold leading-none flex flex-col text-display">
88
{{ $heading }}
99
</span>
10-
<p :foreach="$paragraphs as $paragraph" class="mt-1 md:mt-2 xl:mt-4 text-xl xl:text-2xl text-(--ui-text-muted)">
10+
<p :foreach="$paragraphs as $paragraph" class="mt-3 md:mt-2 xl:mt-4 text-lg xl:text-2xl text-(--ui-text-muted)">
1111
{{ $paragraph }}
1212
</p>
1313
</div>
@@ -20,7 +20,7 @@
2020
</div>
2121
<!-- Right -->
2222
<div class="flex flex-col gap-2 p-2 text-sm bg-(--ui-bg)/20 backdrop-blur rounded-xl">
23-
<div :foreach="$snippets as $snippet" class="bg-(--ui-bg)/50 border border-(--ui-border) rounded-md p-4 [&>pre]:h-full [&>pre]:overflow-x-auto">
23+
<div :foreach="$snippets as $snippet" class="bg-(--ui-bg)/50 border border-(--ui-border) rounded-md p-4 [&_pre]:h-full [&_pre]:overflow-x-auto">
2424
{!! $codeBlocks[$snippet] !!}
2525
</div>
2626
</div>

0 commit comments

Comments
 (0)