Skip to content

Commit 4bdb704

Browse files
committedAug 17, 2024
fix(Mobile): fix responsiveness bugs
1 parent 8555716 commit 4bdb704

File tree

8 files changed

+41
-11
lines changed

8 files changed

+41
-11
lines changed
 

‎src/components/Logo/Logo.module.scss

+3
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
.logoImage {
1010
width: auto;
1111
height: auto;
12+
.img {
13+
height: $space;
14+
}
1215
}
1316
}

‎src/components/Logo/logo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Logo = () => {
66
return (
77
<CustomLink href="/home" className={styles.logo}>
88
<div className={styles.logoImage}>
9-
<Image src="/images/logos/Logo-BL.svg" alt="Logo" width={53} height={41} />
9+
<Image className={styles.img} src="/images/logos/Logo-BL.svg" alt="Logo" width={53} height={41} />
1010
</div>
1111
</CustomLink>
1212
);

‎src/components/Sections/Footer/Footer.js

+15
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,21 @@ const Footer = ({ minimal = false }) => {
5757
</ul>
5858
</li>
5959
)}
60+
{!minimal && (
61+
<li>
62+
<div className={styles.footerMenuTitle}>
63+
<strong>Legal</strong>
64+
</div>
65+
<ul className={styles.footerMenuItems}>
66+
<li>
67+
<CustomLink href={'https://lang-familie.de/impressum/'}>Imprint</CustomLink>
68+
</li>
69+
<li>
70+
<CustomLink href={'https://lang-familie.de/datenschutzerklaerung/'}>Privacy Policy</CustomLink>
71+
</li>
72+
</ul>
73+
</li>
74+
)}
6075
</ul>
6176
</Container>
6277
</Section>

‎src/components/Sections/Footer/Footer.module.scss

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
display: flex;
3030
justify-content: flex-start;
3131
flex-wrap: wrap;
32+
gap: $space;
3233
margin: 0 -2em;
3334

3435
@media (min-width: 480px) {

‎src/components/Sections/Heros/Hero/Hero.module.scss

+13-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
flex-direction: column-reverse;
1111
gap: $space;
1212
align-items: center;
13-
min-height: 95vh;
13+
min-height: 100dvh;
1414
max-width: unset;
1515

1616
.socialLinks {
@@ -22,7 +22,7 @@
2222
flex-direction: column;
2323
align-items: start;
2424
gap: $space-small;
25-
padding-bottom: 15vh;
25+
padding-bottom: 20vh;
2626

2727
hr {
2828
width: 4rem;
@@ -35,11 +35,12 @@
3535
}
3636
p {
3737
font-size: clamp(0.7em, calc(0.1em + 4vw), 1.5em);
38-
max-width: 100%;
38+
max-width: 90%;
3939
}
4040
.btn {
41-
margin-top: $space-small;
41+
margin-top: 2rem;
4242
align-self: start;
43+
font-size: $font-size-passive;
4344
}
4445
}
4546
.image {
@@ -56,6 +57,11 @@
5657
@include up-to-tablet {
5758
.hero {
5859
.content {
60+
.textBox {
61+
.btn {
62+
font-size: $font-size-btn;
63+
}
64+
}
5965
.image {
6066
display: block;
6167
width: 45%;
@@ -97,6 +103,9 @@
97103
p {
98104
max-width: 60%;
99105
}
106+
.btn {
107+
font-size: $font-size-btn;
108+
}
100109
}
101110
}
102111
}

‎src/styles/pages/Home.module.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
width: 100%;
2929
background: $color-bg-transparent;
3030
backdrop-filter: blur(10em);
31-
min-height: 100dvh;
31+
min-height: 50dvh;
3232

3333
.aboutContent {
3434
position: relative;
@@ -46,6 +46,7 @@
4646
max-width: 100%;
4747
height: auto;
4848
object-fit: contain;
49+
pointer-events: none;
4950
}
5051
}
5152

@@ -98,6 +99,7 @@
9899
display: flex;
99100
flex-direction: column;
100101
align-items: center;
102+
min-height: 50dvh;
101103

102104
.showWork {
103105
margin: auto;

‎src/styles/settings/_display.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ $border-width-small: 0.05em;
77
$border-width-medium: 0.15em;
88

99
$space-mini: 0.5em;
10-
$space-small: 1em;
11-
$space-medium: 2em;
12-
$space: calc(2rem + 4vw);
10+
$space-small: clamp(0.5em, 2vw, 1em);
11+
$space-medium: clamp(0.8em, 5vw, 2em);
12+
$space: clamp(0.8em, 1em + 3vw, 6em);
1313

1414
$container-width: calc(60rem + 4vw);
1515
$content-width: 85rem;

‎src/styles/settings/_typography.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ $font-family-default:
1818
monospace;
1919

2020
/* ================ FONT SIZE ================ */
21-
$font-size-h1: clamp(0.8em, 0.1em + 13vw, 6em);
21+
$font-size-h1: clamp(0.5em, 12vw, 6em);
2222
$font-size-h2: clamp(0.4em, 0.1em + 5vw, 1.5em);
2323
$font-size-h3: clamp(0.4em, 0.5em + 9vw, 2em);
2424
$font-size-h4: clamp(0.4em, 7vw, 1.3em);
2525
$font-size-h5: clamp(0.4em, 7vw, 1.2em);
2626

2727
$font-size-p: clamp(0.7em, calc(0.5em + 3vw), 1.2em);
28-
$font-size-btn: clamp(0.7em, calc(0.5em + 3vw), 1.1em);
28+
$font-size-btn: clamp(0.7em, calc(0.6em + 3vw), 1.1em);
2929

3030
$font-size-passive: clamp(0.6em, calc(0.1em + 3vw), 0.9em);

0 commit comments

Comments
 (0)