|
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"; |
4 | 4 | import data from "../../data/2024.json"; |
5 | | -import { StyledWaveContainer } from "../Speakers/Speakers.style"; |
| 5 | +import {StyledWaveContainer} from "../Speakers/Speakers.style"; |
6 | 6 | 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"; |
9 | 9 |
|
10 | 10 | 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 | | - } |
17 | 11 |
|
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 | + } |
24 | 22 |
|
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 | + } |
28 | 33 | `; |
29 | 34 |
|
30 | 35 | const Travel: FC<React.PropsWithChildren<unknown>> = () => { |
|
0 commit comments