Skip to content

Commit 7645837

Browse files
authored
Fixed errors (#5)
1 parent 2daf21a commit 7645837

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/app/components/Hero.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import styled from "styled-components";
22
import {
3+
SmallMobileBreakpoint,
34
MobileBreakpoint,
45
MobileTitleXL,
6+
MobileTitleL,
7+
SpacingS,
58
SpacingM,
69
SpacingXXL,
710
TitleXL,
@@ -21,7 +24,7 @@ const Container = styled.div`
2124
overflow: hidden;
2225
2326
@media (max-width: ${MobileBreakpoint}) {
24-
padding: ${SpacingM};
27+
padding: ${SpacingS};
2528
}
2629
2730
&::before {
@@ -51,6 +54,10 @@ const Title = styled.h1`
5154
@media (max-width: ${MobileBreakpoint}) {
5255
font-size: ${MobileTitleXL};
5356
}
57+
58+
@media (max-width: ${SmallMobileBreakpoint}) {
59+
font-size: ${MobileTitleL};
60+
}
5461
`;
5562

5663
const ButtonContainer = styled.div`

src/app/genericComponents/EmblaCarousel.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
} from "./EmblaCarouselArrowButtons";
99
import useEmblaCarousel from "embla-carousel-react";
1010
import { ImageInformation } from "@data/interfaces";
11-
import Image from "next/image";
1211

1312
type PropType = {
1413
slides: ImageInformation[];
@@ -33,12 +32,9 @@ const EmblaCarousel: React.FC<PropType> = (props) => {
3332
{slides.map((index) => (
3433
<div className="embla__slide" key={index.index}>
3534
<div>
36-
<Image
35+
<img
3736
src={index.url}
3837
alt={index.alt}
39-
width={800}
40-
height={600}
41-
priority
4238
className="embla__slide__image"
4339
/>
4440
</div>

src/app/genericComponents/tokens.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export const QuestionBoxBackgroundColor: string = "#304697";
4242
// Responsive breakpoints
4343
export const MobilePixels: number = 640;
4444
export const MobileBreakpoint: string = MobilePixels + "px";
45+
export const SmallMobilePixels: number = 370;
46+
export const SmallMobileBreakpoint: string = SmallMobilePixels + "px";
4547
export const MaxScreenSize: string = "1200px";
4648

4749
// Spacing

0 commit comments

Comments
 (0)