Skip to content

Commit e03eb55

Browse files
committed
feat: make cta buttons responsive
1 parent 520e894 commit e03eb55

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/components/Hero.astro

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Carousel from "./Carousel.astro";
66

77
<section class="hero">
88
<div
9-
class="md:h-screen md:max-h-[950px] pt-[var(--navbar-height)] flex flex-col"
9+
class="md:min-h-screen lg:h-screen lg:min-h-0 md:max-h-[950px] pt-[var(--navbar-height)] flex flex-col"
1010
>
1111
<div class="w-full py-6 max-w-7xl mx-auto px-4 flex-1 grid md:grid-cols-2 gap-2 justify-center items-center">
1212
<div class="space-y-6">
@@ -18,12 +18,20 @@ import Carousel from "./Carousel.astro";
1818
business needs. Whether you need a new product, a consultation, or a
1919
training, we have the skills and the passion to help you succeed
2020
</p>
21-
<div class="flex justify-between gap-1 md:justify-start md:gap-4">
22-
<Button size="lg" >
21+
<div class="flex gap-2 sm:gap-3 md:justify-start md:gap-4">
22+
<Button class="lg:hidden">
2323
<Icon slot="icon-before" name="chat" />
24-
Let's chat
24+
Schedule a call
2525
</Button>
26-
<Button size="lg" variant="secondary" >
26+
<Button variant="secondary" class="lg:hidden" >
27+
<Icon slot="icon-after" name="forward" />
28+
View projects
29+
</Button>
30+
<Button size="lg" class="hidden lg:flex">
31+
<Icon slot="icon-before" name="chat" />
32+
Schedule a call
33+
</Button>
34+
<Button variant="secondary" size="lg" class="hidden lg:flex" >
2735
<Icon slot="icon-after" name="forward" />
2836
View projects
2937
</Button>

0 commit comments

Comments
 (0)