Skip to content

Commit f2c4e96

Browse files
committed
fix(apps): corrects fylo landing page images
1 parent 1f37a3a commit f2c4e96

File tree

8 files changed

+27
-15
lines changed

8 files changed

+27
-15
lines changed

apps/fylo-landing-page-with-two-column-layout/src/components/FirstContact.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Button from '@/components/Button.astro'
66

77
<section
88
id="first-contact"
9-
class="container flex flex-wrap-reverse items-center justify-center py-12 lg:flex-wrap lg:pb-0"
9+
class="container flex flex-wrap-reverse items-center justify-center pb-12 pt-0 lg:flex-wrap lg:pb-0"
1010
>
1111
<div class="w-full text-center lg:w-1/2 lg:text-left">
1212
<h2 class="py-2 font-raleway text-3xl font-bold [text-wrap:balance] lg:text-5xl">
@@ -32,6 +32,6 @@ import Button from '@/components/Button.astro'
3232
</div>
3333

3434
<div class="w-full pb-12 sm:w-2/3 lg:w-5/12">
35-
<Icon name="illustration-1" />
35+
<Icon name="illustration-1" class="mx-auto h-96 w-full" />
3636
</div>
3737
</section>

apps/fylo-landing-page-with-two-column-layout/src/components/Header.astro

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import Icon from 'shared/components/Icon.astro'
33
import Link from 'shared/components/Link.astro'
44
---
55

6-
<header class="container flex flex-wrap items-center justify-center py-12">
7-
<div class="w-1/2">
6+
<header class="container flex flex-wrap items-center justify-center py-0 sm:py-12">
7+
<div class="w-full sm:w-1/2">
88
<Icon name="logo" width={166} />
99
</div>
1010

11-
<nav class="invisible w-5/12 sm:visible">
12-
<ul class="flex flex-wrap justify-center text-center align-middle text-sm md:text-base">
13-
<li class="w-1/4"><Link to="#">Features</Link></li>
14-
<li class="w-1/4"><Link to="#">Team</Link></li>
15-
<li class="w-1/4"><Link to="#">Sign In</Link></li>
11+
<nav class="hidden w-5/12 sm:block">
12+
<ul class="flex flex-wrap justify-end text-center align-middle text-sm md:text-base">
13+
<li class="w-1/3 text-right md:w-1/4"><Link to="#">Features</Link></li>
14+
<li class="w-1/3 text-right md:w-1/4"><Link to="#">Team</Link></li>
15+
<li class="w-1/3 text-right md:w-1/4"><Link to="#">Sign In</Link></li>
1616
</ul>
1717
</nav>
1818
</header>

apps/fylo-landing-page-with-two-column-layout/src/components/Testimonial.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ const imageSrc = '/frontendmentor/fylo-landing-page-with-two-column-layout/image
6666
</article>
6767
</div>
6868

69-
<div class="mb-12 w-full sm:w-2/3 lg:mb-24 lg:w-5/12">
70-
<Icon name="illustration-2" />
69+
<div class="mb-12 w-full sm:w-2/3 lg:w-5/12">
70+
<Icon name="illustration-2" class="mx-auto h-96 w-full" />
7171
</div>
7272
</div>
7373
</section>
Loading
Loading
Loading
Loading

apps/fylo-landing-page-with-two-column-layout/tailwind.config.ts

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ import type { Config } from 'shared/config/tailwindcss'
33
const config: Config = {
44
content: ['./src/**/*.{astro,html}', './node_modules/shared/components/*.astro'],
55
theme: {
6+
screens: {
7+
xs: '320px',
8+
sm: '576px',
9+
md: '768px',
10+
lg: '1024px',
11+
xl: '1280px',
12+
},
13+
614
container: {
715
center: true,
816
padding: '2rem',

0 commit comments

Comments
 (0)