File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import styled from "styled-components" ;
22import {
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
5663const ButtonContainer = styled . div `
Original file line number Diff line number Diff line change 88} from "./EmblaCarouselArrowButtons" ;
99import useEmblaCarousel from "embla-carousel-react" ;
1010import { ImageInformation } from "@data/interfaces" ;
11- import Image from "next/image" ;
1211
1312type 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 >
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ export const QuestionBoxBackgroundColor: string = "#304697";
4242// Responsive breakpoints
4343export const MobilePixels : number = 640 ;
4444export const MobileBreakpoint : string = MobilePixels + "px" ;
45+ export const SmallMobilePixels : number = 370 ;
46+ export const SmallMobileBreakpoint : string = SmallMobilePixels + "px" ;
4547export const MaxScreenSize : string = "1200px" ;
4648
4749// Spacing
You can’t perform that action at this time.
0 commit comments