1- import { FC , useEffect } from "react" ;
1+ import { FC } from "react" ;
22import { Color } from "../../styles/colors" ;
33import data from "../../data/2023.json" ;
44import styled from "styled-components" ;
@@ -8,25 +8,26 @@ import {
88 ROUTE_CODE_OF_CONDUCT ,
99 ROUTE_CONDITIONS ,
1010} from "../../constants/routes" ;
11+ import { useDocumentTitleUpdater } from "../../services/useDocumentTitleUpdate" ;
1112
1213const StyledSection = styled . section `
13- {
14+ {
1415 padding-top: 48px;
15- }
16+ }
1617
17- .top {
18- clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 50px));
19- height: 51px;
20- background-color: ${ Color . DARK_BLUE } ;
21- border-top: 1px solid ${ Color . DARK_BLUE } ;
22- }
18+ .top {
19+ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 50px));
20+ height: 51px;
21+ background-color: ${ Color . DARK_BLUE } ;
22+ border-top: 1px solid ${ Color . DARK_BLUE } ;
23+ }
2324
24- .bottom {
25- clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
26- margin-top: -50px;
27- height: 50px;
28- background-color: ${ Color . WHITE } ;
29- }
25+ .bottom {
26+ clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
27+ margin-top: -50px;
28+ height: 50px;
29+ background-color: ${ Color . WHITE } ;
30+ }
3031` ;
3132
3233const StyledWave = styled . section `
@@ -36,15 +37,15 @@ const StyledWave = styled.section`
3637` ;
3738
3839const StyledLogo = styled . img `
39- {
40+ {
4041 max-width: 30vw;
4142 flex: 2 1 auto;
4243 padding-bottom: 50px;
43- }
44- @media only screen and (max-width: ${ BIG_BREAKPOINT } px) {
45- padding-bottom: 20px;
46- max-width: 65vw;
47- }
44+ }
45+ @media only screen and (max-width: ${ BIG_BREAKPOINT } px) {
46+ padding-bottom: 20px;
47+ max-width: 65vw;
48+ }
4849` ;
4950
5051const Heading = styled . h1 `
@@ -68,17 +69,17 @@ const StyledP = styled.p`
6869` ;
6970
7071const FlexDiv = styled . div `
71- {
72+ {
7273 display: flex;
7374 width: 20%;
7475 margin: 0 auto;
7576 flex-direction: column;
7677 padding-bottom: 20px;
77- }
78- @media only screen and (max-width: ${ BIG_BREAKPOINT } px) {
79- width: 60%;
80- padding-bottom: 0.5rem;
81- }
78+ }
79+ @media only screen and (max-width: ${ BIG_BREAKPOINT } px) {
80+ width: 60%;
81+ padding-bottom: 0.5rem;
82+ }
8283` ;
8384
8485const StyledParagraph = styled . section `
@@ -96,9 +97,7 @@ const StyledParagraph = styled.section`
9697 }
9798` ;
9899const Diversity2023 : FC < React . PropsWithChildren < unknown > > = ( ) => {
99- useEffect ( ( ) => {
100- document . title = `Diversity - DevBcn ${ data . edition } ` ;
101- } ) ;
100+ useDocumentTitleUpdater ( "Diversity" , data . edition ) ;
102101
103102 return (
104103 < StyledSection className = "styled-section" >
0 commit comments