1
- import { FC , useEffect } from "react" ;
1
+ import { FC } from "react" ;
2
2
import { Color } from "../../styles/colors" ;
3
3
import data from "../../data/2023.json" ;
4
4
import styled from "styled-components" ;
@@ -8,25 +8,26 @@ import {
8
8
ROUTE_CODE_OF_CONDUCT ,
9
9
ROUTE_CONDITIONS ,
10
10
} from "../../constants/routes" ;
11
+ import { useDocumentTitleUpdater } from "../../services/useDocumentTitleUpdate" ;
11
12
12
13
const StyledSection = styled . section `
13
- {
14
+ {
14
15
padding-top: 48px;
15
- }
16
+ }
16
17
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
+ }
23
24
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
+ }
30
31
` ;
31
32
32
33
const StyledWave = styled . section `
@@ -36,15 +37,15 @@ const StyledWave = styled.section`
36
37
` ;
37
38
38
39
const StyledLogo = styled . img `
39
- {
40
+ {
40
41
max-width: 30vw;
41
42
flex: 2 1 auto;
42
43
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
+ }
48
49
` ;
49
50
50
51
const Heading = styled . h1 `
@@ -68,17 +69,17 @@ const StyledP = styled.p`
68
69
` ;
69
70
70
71
const FlexDiv = styled . div `
71
- {
72
+ {
72
73
display: flex;
73
74
width: 20%;
74
75
margin: 0 auto;
75
76
flex-direction: column;
76
77
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
+ }
82
83
` ;
83
84
84
85
const StyledParagraph = styled . section `
@@ -96,9 +97,7 @@ const StyledParagraph = styled.section`
96
97
}
97
98
` ;
98
99
const Diversity2023 : FC < React . PropsWithChildren < unknown > > = ( ) => {
99
- useEffect ( ( ) => {
100
- document . title = `Diversity - DevBcn ${ data . edition } ` ;
101
- } ) ;
100
+ useDocumentTitleUpdater ( "Diversity" , data . edition ) ;
102
101
103
102
return (
104
103
< StyledSection className = "styled-section" >
0 commit comments