Skip to content

Commit 5867eb4

Browse files
committed
responsive text sizing & more width break points
1 parent d056131 commit 5867eb4

File tree

4 files changed

+34
-10
lines changed

4 files changed

+34
-10
lines changed

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/components/footer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const Footer = () => (
1111
}
1212
}) => (
1313
<Row>
14-
<h5>
14+
<footer>
1515
Diff Ltd <Em>|</Em> {address} <Em>|</Em> #{companyNumber}
16-
</h5>
16+
</footer>
1717
</Row>
1818
)}
1919
/>

Diff for: src/components/layout.css

+24
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,27 @@ body {
55
margin: 0;
66
background: lavender;
77
}
8+
9+
footer {
10+
font-size: 0.8rem;
11+
font-weight: bold;
12+
margin: 1.67rem;
13+
}
14+
15+
@media (max-width: 600px) {
16+
html {
17+
font-size: 14px;
18+
}
19+
}
20+
21+
@media (max-width: 430px) {
22+
html {
23+
font-size: 11px;
24+
}
25+
}
26+
27+
@media (max-width: 319px) {
28+
html {
29+
font-size: 8px;
30+
}
31+
}

Diff for: src/pages/index.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const Index = () => (
2222
<Content>
2323
<h1 style={{ marginTop: 0, marginBottom: "0.4rem" }}>{header}</h1>
2424
<h2 style={{ marginTop: 0, marginBottom: "0.8rem" }}>{byline}</h2>
25-
<strong>
25+
<h3 style={{ marginTop: 0, marginBottom: "0.4rem" }}>
2626
<a href={`mailto:${contactEmail}`}>{contactEmail}</a>
27-
</strong>
27+
</h3>
2828
</Content>
2929
</Row>
3030
</Layout>
@@ -64,13 +64,13 @@ const Row = styled.div`
6464

6565
const FluidImg = styled.img`
6666
width: 550px;
67-
@media (max-width: 800px) {
68-
width: 500px;
69-
}
7067
@media (max-width: 600px) {
71-
width: 450px;
68+
width: 350px;
69+
}
70+
@media (max-width: 430px) {
71+
width: 300px;
7272
}
73-
@media (max-width: 400px) {
73+
@media (max-width: 319px) {
7474
width: 250px;
7575
}
7676
`;

0 commit comments

Comments
 (0)