Skip to content

Commit 6a5140e

Browse files
committed
style: layout corrections on the travel page
1 parent ae35695 commit 6a5140e

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

src/views/Travel/Travel.tsx

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
1-
import { FC, useEffect } from "react";
2-
import { Venue } from "./Venue";
3-
import { ToBarcelona } from "./ToBarcelona";
1+
import React, {FC, useEffect} from "react";
2+
import {Venue} from "./Venue";
3+
import {ToBarcelona} from "./ToBarcelona";
44
import data from "../../data/2024.json";
5-
import { StyledWaveContainer } from "../Speakers/Speakers.style";
5+
import {StyledWaveContainer} from "../Speakers/Speakers.style";
66
import styled from "styled-components";
7-
import { Color } from "../../styles/colors";
8-
import { Accommodation } from "./Accommodation";
7+
import {Color} from "../../styles/colors";
8+
import {Accommodation} from "./Accommodation";
99

1010
const StyledTravel = styled.div`
11-
.top {
12-
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 50px));
13-
height: 51px;
14-
background-color: ${Color.LIGHT_BLUE};
15-
border-top: 1px solid ${Color.LIGHT_BLUE};
16-
}
1711
18-
.bottom {
19-
clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
20-
margin-top: -50px;
21-
height: 50px;
22-
background-color: ${Color.DARK_BLUE};
23-
}
12+
max-width: 85rem;
13+
margin-left: auto;
14+
margin-right: auto;
15+
16+
.top {
17+
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 50px));
18+
height: 51px;
19+
background-color: ${Color.LIGHT_BLUE};
20+
border-top: 1px solid ${Color.LIGHT_BLUE};
21+
}
2422
25-
.to-barcelona {
26-
background-color: ${Color.DARK_BLUE};
27-
}
23+
.bottom {
24+
clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
25+
margin-top: -50px;
26+
height: 50px;
27+
background-color: ${Color.DARK_BLUE};
28+
}
29+
30+
.to-barcelona {
31+
background-color: ${Color.DARK_BLUE};
32+
}
2833
`;
2934

3035
const Travel: FC<React.PropsWithChildren<unknown>> = () => {

src/views/Travel/Venue.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
import React, { FC, Suspense } from "react";
1+
import React, {FC, Suspense} from "react";
22
import venue from "../../assets/images/la-farga.png";
33
import GoogleMapReact from "google-map-react";
44
import "./map.css";
55
import FGC from "../../assets/images/fgc.png";
66
import styled from "styled-components";
77
import TitleSection from "../../components/SectionTitle/TitleSection";
8-
import { Color } from "../../styles/colors";
8+
import {Color} from "../../styles/colors";
99
import {
10-
BIG_BREAKPOINT,
11-
MAX_WIDTH,
12-
MOBILE_BREAKPOINT,
10+
BIG_BREAKPOINT,
11+
MAX_WIDTH,
12+
MOBILE_BREAKPOINT,
1313
} from "../../constants/BreakPoints";
1414
import LessThanBlue from "../../assets/images/MoreThanBlueWhiteIcon.svg";
1515
import MoreThanBlue from "../../assets/images/LessThanBlueWhiteIcon.svg";
16-
import { useWindowSize } from "react-use";
16+
import {useWindowSize} from "react-use";
1717
import LocationIcon from "../../assets/images/LocationIcon.svg";
1818
import Logo from "../../assets/images/logo.svg";
19-
import { StyledLoadingImage } from "../../components/Loading/Loading";
19+
import {StyledLoadingImage} from "../../components/Loading/Loading";
2020

2121
const StyledVenue = styled.div`
22-
{
23-
padding: 100px 10rem 50px;
22+
23+
padding: 0.5rem 2rem 0.5rem;
2424
text-align: left;
2525
max-width: ${MAX_WIDTH}px;
2626
margin: 0 auto;
2727
2828
@media (max-width: ${BIG_BREAKPOINT}px) {
2929
padding: 100px 1rem 50px;
3030
}
31-
}
31+
3232
3333
.image {
3434
img.venue {

0 commit comments

Comments
 (0)