Skip to content

Commit 0bf6b5c

Browse files
committed
[ADD] PDF: placeholder for the retainer agreement & FR Call to action
1 parent 891d691 commit 0bf6b5c

File tree

5 files changed

+28
-19
lines changed

5 files changed

+28
-19
lines changed

locales/en/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"Introducing Coderbunker in the ": "Introducing Coderbunker in the ",
1111
"North": "North",
1212
"Go back to the homepage": "Go back to the homepage",
13-
"Trusted by these partners and clients": "Trusted by these partners and clients"
13+
"Trusted by these partners and clients": "Trusted by these partners and clients",
14+
"Retain Us": "Retain Us"
1415
}

locales/fr/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"Introducing Coderbunker in the ": "Présentation de Coderbunker dans le ",
1212
"North": "Nord",
1313
"We empower freelancer community to excel in long term projects.": "Nous permettons à la communauté des pigistes d'exceller dans les projets à long terme.",
14-
"Trusted by these partners and clients": "Reconnu par ces partenaires et clients"
14+
"Trusted by these partners and clients": "Reconnu par ces partenaires et clients",
15+
"Retain Us": "Embauchez-nous"
1516
}

src/assets/pdfs/placeholder.pdf

21.8 KB
Binary file not shown.

src/components/button.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
import * as React from "react";
22
import styled from 'styled-components';
3-
import { Link, Trans } from 'gatsby-plugin-react-i18next';
3+
import { Trans } from 'gatsby-plugin-react-i18next';
4+
import PDF from '../assets/pdfs/placeholder.pdf';
45

6+
export default function CallToAction() {
7+
return (
8+
<ButtonStyle>
9+
<a href={PDF} target="_blank" rel="noreferrer" className="px-4 md:px-6 py-2 text-lg md:text-xl">
10+
<Trans>Retain Us</Trans>
11+
</a>
12+
</ButtonStyle>
13+
)
14+
}
515
const ButtonStyle = styled.div`
616
transform: skew(-16deg);
717
a {
18+
white-space: nowrap;
819
display: block;
9-
padding: 8px 24px;
1020
background-color: var(--red);
1121
color: var(--white);
1222
transition: rotate 0.3s ease;
1323
letter-spacing: 1px;
1424
&:hover {
1525
cursor: pointer;
1626
transform: rotate(-8deg);
27+
color: var(--white) !important;
1728
}
1829
}
19-
`
20-
21-
export default function ButtonRed({href}) {
22-
return (
23-
<ButtonStyle>
24-
<Link to={href} className="text-lg md:text-xl">
25-
<Trans>Retain Us</Trans>
26-
</Link>
27-
</ButtonStyle>
28-
)
29-
}
30+
`

src/components/header.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { graphql, useStaticQuery } from 'gatsby';
55
import Img from 'gatsby-image';
66
import styled from 'styled-components';
77

8+
89
import SiteBorderStyles from '../styles/SiteBorderStyles';
9-
import ButtonRed from "./button";
10+
import CallToAction from "./button";
1011
import { FiLinkedin, FiGithub } from 'react-icons/fi';
1112
import { SiAircanada } from 'react-icons/si'
1213
export default function Header() {
@@ -47,18 +48,19 @@ export default function Header() {
4748
<Link to="/">
4849
<Img
4950
fixed={data.file.childImageSharp.fixed}
51+
style={{zIndex: `1`}}
5052
alt="Coderbunker Logo" />
5153
</Link>
5254

5355

5456
<ul className="flex items-center">
5557
{/* Language Switcher */}
56-
<li className={`flex items-center px-2 md:px-4 ${isOn ? "switched-on" : "switched-off"}`}>
58+
<li className={`flex items-center pr-2 md:px-4 ${isOn ? "switched-on" : "switched-off"}`}>
5759
<button onClick={toggleSwitcher} aria-label="Language Switcher" className="p-2 relative">
5860
<SiAircanada className="text-2xl md:text-3xl"/>
5961
</button>
6062
{languages.map((lng) => (
61-
<div key={lng} className={`text-lg md:text-xl p-2 ${isOn ? "block" : "hidden"}`}>
63+
<div key={lng} className={`text-lg md:text-xl px-1 py-2 sm:p-2 ${isOn ? "block" : "hidden"}`}>
6264
<Link to={originalPath} language={lng}>
6365
{lng.toUpperCase()}
6466
</Link>
@@ -67,7 +69,7 @@ export default function Header() {
6769
</li>
6870

6971
<li>
70-
<ButtonRed href="/page-2/" />
72+
<CallToAction />
7173
</li>
7274
</ul>
7375
</div>
@@ -85,6 +87,7 @@ Header.defaultProps = {
8587
}
8688

8789
const HeaderStyles = styled.header`
90+
color: var(--darkgrey);
8891
border-bottom: 1px solid var(--lightgrey);
8992
padding: 1rem 0;
9093
position: fixed;
@@ -99,6 +102,9 @@ const HeaderStyles = styled.header`
99102
margin-left: auto;
100103
}
101104
}
105+
a:hover, button:hover {
106+
color: var(--black);
107+
}
102108
.switched-on {
103109
background-color: var(--peach);
104110
color: black;

0 commit comments

Comments
 (0)