Skip to content

Commit

Permalink
Merge pull request #197 from sthlmio/feature/viktor-cv
Browse files Browse the repository at this point in the history
Adjustments to cv. Adjustments to projects component. Print css
  • Loading branch information
viktorkalajo authored Nov 15, 2024
2 parents d78d1cb + 072c7c7 commit 6f4707a
Show file tree
Hide file tree
Showing 7 changed files with 467 additions and 167 deletions.
44 changes: 44 additions & 0 deletions components/downloadPdfButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export const DownloadPdfButton = ({ href }) => {
return (
<>
<a className="downloadPdf" href={href} download>
Download as PDF
</a>
{/*language=SCSS*/}
<style jsx>{`
.downloadPdf {
display: inline-block;
text-transform: uppercase;
background: #3e46cf;
color: #fff;
border: 0;
outline: none;
padding: 20px 40px;
cursor: pointer;
font-size: 18px;
font-family: 'Overpass', sans-serif;
font-weight: 300;
-webkit-appearance: none;
-webkit-border-radius: 0px;
margin: 20px 0;
text-decoration: none;
&:hover {
background: #4c52c1;
}
&:hover,
&:visited {
color: #fff;
}
}
@media print {
.downloadPdf {
display: none;
}
}
`}</style>
</>
)
}
63 changes: 54 additions & 9 deletions components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,39 @@ export function Header({ children }) {
font-style: normal;
font-weight: 900;
src: local(''),
url('/static/fonts/overpass-v7-latin-900.woff2') format('woff2'),
url('/static/fonts/overpass-v7-latin-900.woff') format('woff');
url('/static/fonts/overpass-v7-latin-900.woff2') format('woff2'),
url('/static/fonts/overpass-v7-latin-900.woff') format('woff');
}
@font-face {
font-family: 'Overpass Mono';
font-style: normal;
font-weight: 300;
src: local(''),
url('/static/fonts/overpass-mono-v10-latin-300.woff2') format('woff2'),
url('/static/fonts/overpass-mono-v10-latin-300.woff') format('woff');
url('/static/fonts/overpass-mono-v10-latin-300.woff2')
format('woff2'),
url('/static/fonts/overpass-mono-v10-latin-300.woff') format('woff');
}
@font-face {
font-family: 'Overpass Mono';
font-style: normal;
font-weight: 400;
src: local(''),
url('/static/fonts/overpass-mono-v10-latin-regular.woff2') format('woff2'),
url('/static/fonts/overpass-mono-v10-latin-regular.woff') format('woff');
url('/static/fonts/overpass-mono-v10-latin-regular.woff2')
format('woff2'),
url('/static/fonts/overpass-mono-v10-latin-regular.woff')
format('woff');
}
@font-face {
font-family: 'Overpass Mono';
font-style: normal;
font-weight: 700;
src: local(''),
url('/static/fonts/overpass-mono-v10-latin-700.woff2') format('woff2'),
url('/static/fonts/overpass-mono-v10-latin-700.woff') format('woff');
url('/static/fonts/overpass-mono-v10-latin-700.woff2')
format('woff2'),
url('/static/fonts/overpass-mono-v10-latin-700.woff') format('woff');
}
body {
Expand Down Expand Up @@ -112,6 +116,11 @@ export function Header({ children }) {
max-width: 100%;
}
ul,
ol {
padding-inline-start: 20px;
}
li {
font-family: 'Overpass Mono', sans-serif;
}
Expand Down Expand Up @@ -147,6 +156,42 @@ export function Header({ children }) {
h4 {
font-size: 20px;
}
ul,
ol {
padding-inline-start: 40px;
}
}
@media print {
p.text,
li {
font-size: 12px;
}
p {
font-size: 15px;
}
h1 {
font-size: 50px;
}
h2 {
font-size: 29px;
}
h3 {
font-size: 20px;
}
h4 {
font-size: 13px;
}
a {
text-decoration: none;
}
}
`}</style>
</>
Expand Down
65 changes: 38 additions & 27 deletions components/project.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,55 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import React from 'react'
import PropTypes from 'prop-types'
import { Tags } from './tags'

export const Project = ({ from, to, role, title, children, tags }) => (
<article>
<h4>{title}</h4>
<p className="text">
{role}, {from} - {to}
</p>
<article className="project">
<h3>
{title}
<span className="role">
{role ? `${role}, ` : ''}
{from} - {to}
</span>
</h3>
{children}
<ul className="tags">
{tags.map(tag => (
<li key={tag}>{tag}</li>
))}
</ul>
<Tags tags={tags} />
{/*language=SCSS*/}
<style jsx>
{`
.tags {
list-style-type: none;
padding: 0;
.project {
display: block;
}
.tags li {
float: left;
background: #f5f5f5;
padding: 5px 10px;
margin-right: 10px;
margin-bottom: 5px;
font-weight: 600;
font-size: 14px;
text-transform: uppercase;
.role {
font-family: 'Overpass Mono';
display: block;
font-size: 16px;
line-height: 1.2em;
margin-top: 0.3em;
font-weight: 400;
}
h3 {
font-size: 16px;
}
@media screen and (min-width: 500px) {
h3 {
font-size: 20px;
}
.role {
font-size: 18px;
}
}
`}
</style>
</article>
);
)

Project.propTypes = {
from: PropTypes.string,
to: PropTypes.string,
role: PropTypes.string,
title: PropTypes.node,
tags: PropTypes.arrayOf(PropTypes.string)
};
tags: PropTypes.arrayOf(PropTypes.string),
}
65 changes: 65 additions & 0 deletions components/tags.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'

export const Tags = ({ tags }) => (
<>
<ul className="tags">
{tags.map((tag) => (
<li key={tag}>{tag}</li>
))}
</ul>
{/*language=SCSS*/}
<style jsx>
{`
.tags {
list-style-type: none;
padding: 0;
display: flex;
flex-wrap: wrap;
}
.tags li {
background: #f5f5f5;
padding: 5px 10px;
margin-right: 10px;
margin-bottom: 5px;
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
}
@media screen and (min-width: 500px) {
font-size: 14px;
}
@media print {
.tags li {
background: none;
padding: 0;
font-weight: normal;
padding: 0;
margin-right: 0;
margin-bottom: 0;
line-height: 1.6em;
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
&:after {
content: '|';
margin: 0 5px;
display: inline-block;
}
&:last-child:after {
display: none;
}
}
}
`}
</style>
</>
)

Tags.propTypes = {
tags: PropTypes.arrayOf(PropTypes.string),
}
26 changes: 13 additions & 13 deletions pages/johan-baath.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ export default function JohanBaath() {
<br />
<br />
Working with the following teams:
<ul>
<li>
Performance - Ensuring peak performance for the native apps.
</li>
<li>
Release - Responsible for tooling around releasing Spotify on
all app stores.
</li>
<li>Foundation - iOS developer experience and tooling.</li>
<li>
Machine Learning UX - Building tools for Spotify's ML engineers.
</li>
</ul>
</p>
<ul>
<li>
Performance - Ensuring peak performance for the native apps.
</li>
<li>
Release - Responsible for tooling around releasing Spotify on all
app stores.
</li>
<li>Foundation - iOS developer experience and tooling.</li>
<li>
Machine Learning UX - Building tools for Spotify's ML engineers.
</li>
</ul>
<h4>
<a href="https://cabonline.com/">Cabonline Technologies</a>
</h4>
Expand Down
Loading

0 comments on commit 6f4707a

Please sign in to comment.