Skip to content

Commit d6b9b6a

Browse files
committed
added design
1 parent 6f40096 commit d6b9b6a

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

src/css/main.scss

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
h1 {
1616
font-family: "Guardian Titlepiece";
17-
font-size: 32px;
18-
line-height: 36px;
17+
font-size: 40px;
18+
line-height: 38px;
1919

2020
@include mq($from: wide) {
2121
font-size: 62px;
@@ -25,6 +25,7 @@ h1 {
2525

2626
h2 {
2727
font-family: "Guardian Headline Full";
28+
line-height: 1.2;
2829
}
2930

3031
p {
@@ -67,18 +68,21 @@ p {
6768

6869
.fact-page-box {
6970
border: 1px solid #121212;
70-
width: 280px;
71+
width: 100%;
7172
margin-left: auto;
7273
right: -200px;
7374
display: inline-block;
7475
float: right;
7576
margin-left: 20px;
76-
margin-bottom: 60px;
77+
margin-bottom: 20px;
7778
margin-right: 0px;
7879
background-color: #fff;
80+
background-color: #ffe500;
7981

8082
@include mq($from: desktop) {
8183
margin-right: -190px;
84+
width: 280px;
85+
margin-bottom: 60px;
8286
}
8387

8488
h1 {
@@ -87,11 +91,22 @@ p {
8791
padding: 0;
8892
margin: 0;
8993
margin-top: 6px;
90-
margin-left: 10px;
94+
margin-left: 20px;
9195
margin-bottom: 10px;
96+
margin-right: 20px;
97+
98+
@include mq($from: desktop) {
99+
margin-left: 10px;
100+
}
92101
}
93102
p {
94-
margin-left: 10px;
103+
margin-left: 20px;
104+
margin-right: 10px;
105+
margin-bottom: 20px;
106+
107+
@include mq($from: desktop) {
108+
margin-left: 10px;
109+
}
95110
}
96111
}
97112

@@ -128,14 +143,15 @@ p {
128143
}
129144

130145
h2 {
131-
max-width: 180px;
132146
line-height: 1.2;
133147
color: #ffbac8;
134148

135149
@include mq($from: wide) {
136150
position: absolute;
137151
left: -210px;
138152
margin-top: 6px;
153+
max-width: 180px;
154+
139155
}
140156
}
141157
}
@@ -214,7 +230,7 @@ p {
214230
}
215231

216232
.fact-page-main-image {
217-
width: 200px;
233+
width: 150px;
218234
overflow: hidden;
219235
border: 1px solid #121212;
220236
position: relative;
@@ -226,6 +242,7 @@ p {
226242
@include mq($from: tablet) {
227243
top: -5px;
228244
margin-bottom: 0;
245+
width: 200px;
229246
}
230247

231248
@include mq($from: wide) {

src/templates/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2>What is Covid-19 - the illness that started in Wuhan?</h2>
3838
<a class="storie-link" href="https://www.theguardian.com/world/2020/mar/03/what-is-coronavirus-symptoms-covid-19-wuhan-china">Read our full story</a>
3939
</div>
4040
<div class="fact-page-box">
41-
<h1>What should I do if I feel unwell?</h1>
41+
<h1>What should I do if I feel I have symptoms?</h1>
4242
<p>In the UK Stay indoors and avoid contact with people. Call NHS 111 to inform of your recent travel.</p>
4343
</div>
4444
<div class="fact-page-stories">

0 commit comments

Comments
 (0)