Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/app/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import styled from "styled-components";
import {
SmallMobileBreakpoint,
MobileBreakpoint,
MobileTitleXL,
MobileTitleL,
SpacingS,
SpacingM,
SpacingXXL,
TitleXL,
Expand All @@ -21,7 +24,7 @@ const Container = styled.div`
overflow: hidden;

@media (max-width: ${MobileBreakpoint}) {
padding: ${SpacingM};
padding: ${SpacingS};
}

&::before {
Expand Down Expand Up @@ -51,6 +54,10 @@ const Title = styled.h1`
@media (max-width: ${MobileBreakpoint}) {
font-size: ${MobileTitleXL};
}

@media (max-width: ${SmallMobileBreakpoint}) {
font-size: ${MobileTitleL};
}
`;

const ButtonContainer = styled.div`
Expand Down
6 changes: 1 addition & 5 deletions src/app/genericComponents/EmblaCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
} from "./EmblaCarouselArrowButtons";
import useEmblaCarousel from "embla-carousel-react";
import { ImageInformation } from "@data/interfaces";
import Image from "next/image";

type PropType = {
slides: ImageInformation[];
Expand All @@ -33,12 +32,9 @@ const EmblaCarousel: React.FC<PropType> = (props) => {
{slides.map((index) => (
<div className="embla__slide" key={index.index}>
<div>
<Image
<img
src={index.url}
alt={index.alt}
width={800}
height={600}
priority
className="embla__slide__image"
/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/app/genericComponents/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const QuestionBoxBackgroundColor: string = "#304697";
// Responsive breakpoints
export const MobilePixels: number = 640;
export const MobileBreakpoint: string = MobilePixels + "px";
export const SmallMobilePixels: number = 370;
export const SmallMobileBreakpoint: string = SmallMobilePixels + "px";
export const MaxScreenSize: string = "1200px";

// Spacing
Expand Down