Skip to content

Commit bc691ac

Browse files
author
vika03
committed
wip
1 parent dcc5006 commit bc691ac

File tree

3 files changed

+44
-11
lines changed

3 files changed

+44
-11
lines changed

components/downloadPdfButton.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
export const DownloadPdfButton = ({ href }) => {
2+
return (
3+
<>
4+
<a className="downloadPdf" href={href} download>
5+
Download as PDF
6+
</a>
7+
{/*language=SCSS*/}
8+
<style jsx>{`
9+
.downloadPdf {
10+
display: inline-block;
11+
text-transform: uppercase;
12+
background: #3e46cf;
13+
color: #fff;
14+
border: 0;
15+
outline: none;
16+
padding: 20px 50px;
17+
cursor: pointer;
18+
font-size: 18px;
19+
font-family: 'Overpass', sans-serif;
20+
font-weight: 300;
21+
-webkit-appearance: none;
22+
-webkit-border-radius: 0px;
23+
margin: 20px 0;
24+
25+
&:hover,
26+
&:visited {
27+
color: #fff;
28+
}
29+
}
30+
`}</style>
31+
</>
32+
)
33+
}

pages/viktor-kalajo.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Header } from '../components/header'
22
import { Project } from '../components/project'
3+
import { DownloadPdfButton } from '../components/downloadPdfButton'
34

45
const ViktorKalajo = () => (
56
<>
@@ -43,7 +44,7 @@ const ViktorKalajo = () => (
4344
<h2>Highlighted projects</h2>
4445
<Project
4546
title="SVT Astrid"
46-
role="Fullstack"
47+
role="Full-stack"
4748
from="Q1 2020"
4849
to="present"
4950
tags={[
@@ -80,7 +81,7 @@ const ViktorKalajo = () => (
8081
<p>
8182
One of the major technical challenges was enabling real-time
8283
collaboration among editors on articles and feeds. We solved this by
83-
implementing an event-driven architecture, which supported seamless
84+
implementing an event-driven architecture, which supports seamless
8485
and concurrent editing.
8586
</p>
8687
<p>
@@ -91,7 +92,7 @@ const ViktorKalajo = () => (
9192
</Project>
9293
<Project
9394
title="SVT Direktcenter"
94-
role="Fullstack"
95+
role="Full-stack"
9596
from="Q1 2019"
9697
to="Q1 2020"
9798
tags={[
@@ -207,6 +208,9 @@ const ViktorKalajo = () => (
207208
.
208209
</p>
209210
</div>
211+
<div className="downloadPdfWrapper">
212+
<DownloadPdfButton href="/static/pdf/viktor-kalajo-cv.pdf" />
213+
</div>
210214
</div>
211215
{/*language=SCSS*/}
212216
<style jsx>{`
@@ -230,14 +234,6 @@ const ViktorKalajo = () => (
230234
padding: 20px;
231235
}
232236
233-
.content div {
234-
display: flex;
235-
height: 100%;
236-
flex-direction: column;
237-
align-items: center;
238-
justify-content: center;
239-
}
240-
241237
a,
242238
a:active,
243239
a:visited {
@@ -267,6 +263,10 @@ const ViktorKalajo = () => (
267263
font-weight: 600;
268264
}
269265
}
266+
267+
.downloadPdfWrapper {
268+
justify-content: flex-start;
269+
}
270270
`}</style>
271271
<style jsx global>{`
272272
h1 {
32.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)