Skip to content

Commit 32bed6d

Browse files
more progress on mobile
1 parent 1cf02a7 commit 32bed6d

2 files changed

Lines changed: 29 additions & 18 deletions

File tree

application/static/css/style.css

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
}
1717

1818
:root {
19-
--wave-height: 7rem;
19+
--wave-height: 6.5rem;
2020

2121
@media screen and (min-width: 1280px) {
22-
--wave-height: 15rem;
22+
--wave-height: 8rem;
23+
}
24+
25+
@media screen and (min-width: 1440px) {
26+
--wave-height: 13rem;
2327
}
2428
}
2529

@@ -67,20 +71,6 @@ nav {
6771
}
6872
}
6973

70-
h1 {
71-
margin: 0;
72-
padding: 0;
73-
font-size: 1.6rem;
74-
font-family: custom-bold;
75-
color: inherit;
76-
}
77-
78-
@media screen and (min-width: 760px) {
79-
h1 {
80-
font-size: 2.5rem;
81-
}
82-
}
83-
8474
ul,
8575
li {
8676
padding: 0;
@@ -137,6 +127,20 @@ p {
137127
z-index: 2;
138128
}
139129

130+
h1 {
131+
margin: 0;
132+
padding: 0;
133+
font-size: 1.2rem;
134+
font-family: custom-bold;
135+
color: inherit;
136+
}
137+
138+
@media screen and (min-width: 760px) {
139+
h1 {
140+
font-size: 2.5rem;
141+
}
142+
}
143+
140144
p {
141145
max-width: 72ch;
142146
font-size: 1rem;
@@ -157,6 +161,7 @@ p {
157161
flex-direction: row;
158162
justify-content: center;
159163
align-items: center;
164+
flex-wrap: wrap;
160165
gap: 1rem;
161166
}
162167

@@ -296,7 +301,13 @@ p {
296301
line-height: 1.6;
297302
color: rgb(255, 253, 250);
298303
background-color: #00b9f28c;
299-
background: radial-gradient(circle, #ff6000 30%, #fb874e 24%, #00b9f200 31%);
304+
background: radial-gradient(circle, #ff6000 40%, #fb874e 24%, #00b9f200 31%);
305+
}
306+
307+
@media screen and (min-width: 1280px) {
308+
.intro {
309+
background: radial-gradient(circle, #ff6000 30%, #fb874e 24%, #00b9f200 31%);
310+
}
300311
}
301312

302313
.overlay {

application/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
12 months of data-set. Represents a temperature for each day."
4242
href="/api/v2/tobs"
4343
>
44-
<button id="tobs" type="button">Temperature observation data</button>
44+
<button id="tobs" type="button">Tobs data</button>
4545
</a>
4646
</li>
4747
</ul>

0 commit comments

Comments
 (0)