Skip to content

Commit 0cb23bc

Browse files
committed
feat(navigation): enable Diversity menu item and update Diversity page styling and sponsor details
1 parent 85f133d commit 0cb23bc

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

src/components/Navigation/NavigationData.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
ROUTE_ABOUT_US,
33
ROUTE_CFP,
44
ROUTE_CODE_OF_CONDUCT,
5+
ROUTE_DIVERSITY,
56
ROUTE_HOME,
67
ROUTE_JOB_OFFERS,
78
ROUTE_SCHEDULE,
@@ -33,7 +34,7 @@ export const navigationItems2025: NavigationItem[] = [
3334
];
3435

3536
export const subMenuItems2025: NavigationItem[] = [
36-
//{ id: "DIVERSITY", link: ROUTE_DIVERSITY },
37+
{ id: "DIVERSITY", link: ROUTE_DIVERSITY },
3738
{ id: "Cfp Committee", link: ROUTE_CFP },
3839
//{ id: "Accommodation", link: ROUTE_ACCOMMODATION },
3940
//{ id: "Attendee information", link: ROUTE_ATTENDEE },

src/views/Diversity/Diversity.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("Diversity component", () => {
4141
</React.Suspense>,
4242
{ wrapper: BrowserRouter },
4343
);
44-
const ocadoLogo = screen.getByAltText("Ocado");
44+
const ocadoLogo = screen.getByAltText("NUBANK");
4545

4646
expect(ocadoLogo).toBeInTheDocument();
4747
});

src/views/Diversity/Diversity.tsx

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
import React, { FC } from "react";
2-
import { Color } from "../../styles/colors";
3-
import data from "../../data/2024.json";
2+
import { Color } from "@styles/colors";
3+
import data from "@data/2024.json";
44
import { styled } from "styled-components";
5-
import { BIG_BREAKPOINT } from "../../constants/BreakPoints";
5+
import { BIG_BREAKPOINT } from "@constants/BreakPoints";
66
import { Link } from "react-router";
7-
import {
8-
ROUTE_CODE_OF_CONDUCT,
9-
ROUTE_CONDITIONS,
10-
} from "../../constants/routes";
11-
import { useDocumentTitleUpdater } from "../../hooks/useDocumentTitleUpdate";
7+
import { ROUTE_CODE_OF_CONDUCT, ROUTE_CONDITIONS } from "@constants/routes";
8+
import { useDocumentTitleUpdater } from "@hooks/useDocumentTitleUpdate";
129

1310
const StyledSection = styled.section`
14-
{
1511
padding-top: 48px;
16-
}
1712
1813
.top {
1914
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 50px));
@@ -37,26 +32,28 @@ const StyledWave = styled.section`
3732
`;
3833

3934
const StyledLogo = styled.img`
40-
{
4135
max-width: 30vw;
4236
flex: 2 1 auto;
4337
padding-bottom: 50px;
44-
}
38+
4539
@media only screen and (max-width: ${BIG_BREAKPOINT}px) {
4640
padding-bottom: 20px;
4741
max-width: 65vw;
4842
}
4943
`;
5044

5145
const Heading = styled.h1`
46+
margin-top: 2rem;
47+
font-family: "Square 721 Regular", sans-serif;
5248
color: ${Color.WHITE};
5349
font-size: 2.5em;
5450
`;
5551

5652
const StyledP = styled.p`
5753
text-align: justify;
5854
color: ${Color.DARK_BLUE};
59-
margin: 15px 3%;
55+
margin: 2rem auto;
56+
max-width: 70vw;
6057
6158
@media (max-width: ${BIG_BREAKPOINT}px) {
6259
margin: 15px 10%;
@@ -82,7 +79,8 @@ const FlexDiv = styled.div`
8279
const StyledParagraph = styled.section`
8380
text-align: left;
8481
color: ${Color.DARK_BLUE};
85-
margin: 15px 3%;
82+
margin: 1rem auto;
83+
max-width: 70vw;
8684
8785
h2 {
8886
padding-bottom: 15px;
@@ -125,18 +123,18 @@ const Diversity: FC<React.PropsWithChildren<unknown>> = () => {
125123

126124
<StyledP>
127125
We must thank{" "}
128-
<a href="https://careers.ocadogroup.com/where-we-are/europe/development-centre-barcelona?utm_source=event&utm_medium=other&utm_campaign=ot_event_bcn_devbcn_website">
129-
Ocado
130-
</a>{" "}
126+
<strong>
127+
<a href="https://nubank.com.br/">NUBANK</a>
128+
</strong>{" "}
131129
for making this possible!
132130
</StyledP>
133131
<FlexDiv>
134132
<a
135-
href="https://careers.ocadogroup.com/where-we-are/europe/development-centre-barcelona?utm_source=event&utm_medium=other&utm_campaign=ot_event_bcn_devbcn_website"
133+
href="https://nubank.com.br/"
136134
target="_blank"
137135
rel="noreferrer noopener"
138136
>
139-
<StyledLogo alt="Ocado" src="images/sponsors/ocado.png" />
137+
<StyledLogo alt="NUBANK" src="/images/sponsors/datomic.svg" />
140138
</a>
141139
</FlexDiv>
142140
<>
@@ -170,7 +168,7 @@ const Diversity: FC<React.PropsWithChildren<unknown>> = () => {
170168
<a
171169
rel="noreferrer"
172170
target="_blank"
173-
href="https://docs.google.com/forms/d/e/1FAIpQLSdyRqQkh2iRD_QxzAwodIM1cXmO_Q4hNGojXnFli-crob2QUQ/viewform"
171+
href="https://docs.google.com/forms/d/e/1FAIpQLSdvMulz0x6epQUZl7rQr0JsrOp0eRtY1IYwp2sXPCqlAH9WzA/viewform?usp=sharing&ouid=111571095373139083277"
174172
>
175173
application form
176174
</a>{" "}

0 commit comments

Comments
 (0)