Skip to content

Commit 3ba3ac0

Browse files
author
laksjfalksjf
committed
Adjusted text scaling
Text is a bit bigger now and fits better to the size of the viewport.
1 parent ad156fe commit 3ba3ac0

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

src/containers/Credits.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ const { secondary } = colors;
77

88
const CreditsBase = styled.section`
99
background: ${secondary};
10-
padding: 20vh 15vw;
10+
padding: 15vh 15vw;
11+
columns: 3;
12+
p {
13+
margin: 0em 0;
14+
padding: 0;
15+
.subtitle {
16+
margin-bottom: 1em;
17+
}
18+
}
1119
`;
1220

1321
const Meta = ({title, content}) => {
@@ -35,6 +43,7 @@ const Meta = ({title, content}) => {
3543
const Credits = ({ client, year, medium, contributors, recourses, copyright }) => {
3644
return (
3745
<CreditsBase>
46+
3847
<Meta
3948
title="Client"
4049
content="Reinier de Graaf ziekehuis"

src/containers/Header.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const { secondary } = colors;
99
const HeaderBase = styled.header`
1010
background: url(${props => props.backgroundImage});
1111
background-size: cover;
12+
background-position: center;
1213
height: 100vh;
1314
padding: 5vh ${containerWidth.xs};
1415
display: flex;
@@ -31,9 +32,12 @@ const HeaderBase = styled.header`
3132
const HeaderInformation = styled.div`
3233
display: flex;
3334
align-items: center;
35+
& > * {
36+
width: 50%;
37+
}
3438
`;
3539

36-
const Header = ({title, subtitle, img, children}) => {
40+
const Header = ({title, subtitle, tagline, img, children}) => {
3741
return (
3842
<HeaderBase backgroundImage={img}>
3943
<HeaderInformation>
@@ -42,6 +46,7 @@ const Header = ({title, subtitle, img, children}) => {
4246
<h1>{title}</h1>
4347
</div>
4448
<div>
49+
<p class="introduction">{tagline}</p>
4550
{children}
4651
</div>
4752
</HeaderInformation>

src/pages/case/dawny.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ const Case = () => (
2929
<Header
3030
title="Levens redden met datavisualisatie"
3131
subtitle="Reinier De Graaf Gasthuis"
32+
tagline="Wij hebben een systeem gebouwd waarmee dokters de gezondheid van ouderen langdurig kunnen meten en analyseren om proactief ongevallen te voorkomen"
3233
img={usecase}
3334
>
34-
<p class='big'> Wij hebben een systeem gebouwd waarmee dokters de gezondheid van ouderen langdurig kunnen analyseren om ongevallen voortijdig te voorkomen.</p>
3535
</Header>
3636
<TextAndImage img={lockup} alt="Nonin apparaat met app">
3737
<h2>Inroducing Dawny</h2>
38-
<p class='big'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
38+
<p class='introduction'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
3939
</TextAndImage>
4040
<Container>
4141
<Row>
4242
<Col md={6}>
4343
<h2>De uitdaging</h2>
44-
<p class='big'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
44+
<p class='introduction'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
4545
</Col>
4646
</Row>
4747
</Container>

src/styles/textScaler.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const base = {
1717
};
1818

1919
const headerSize = {
20-
desktop: calcHeaderSize(base.scale.desktop, 1 * 1.125),
20+
desktop: calcHeaderSize(base.scale.desktop, 1 * 1.5),
2121
mobile: calcHeaderSize(base.scale.mobile, 1 * 1.125),
2222
};
2323

@@ -38,17 +38,17 @@ const textScaler = css`
3838
}
3939
/* ${headerSize.mobile} */
4040
@media (${mediaQueries.md}) {
41-
font-size: calc(${base.fontSize} * 1.2);
41+
font-size: calc(${base.fontSize} * 1.4);
4242
line-height: calc(${base.lineHeight.paragraph});
4343
};
4444
@media (${mediaQueries.lg}) {
45-
font-size: calc(${base.fontSize}*1.3);
45+
font-size: calc(${base.fontSize}*1.5);
4646
};
4747
@media (${mediaQueries.xl}) {
48-
font-size: calc(${base.fontSize}*1.4);
48+
font-size: calc(${base.fontSize}*1.6);
4949
};
5050
@media (${mediaQueries.xl}) and (${mediaQueries.xxl}) {
51-
font-size: calc(${base.fontSize}*1.5);
51+
font-size: calc(${base.fontSize}*1.66);
5252
};
5353
}
5454

src/styles/theme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ const bytecode = {
123123
marginRight: '1.66m',
124124
},
125125
introduction: {
126-
size: '1.9rem',
127-
height: '1.2em',
126+
size: '2rem',
127+
height: '1.33em',
128128
spacing: '0.01em',
129129
font: paragraph,
130130
weight: regular,

0 commit comments

Comments
 (0)