Skip to content

Commit 1498b00

Browse files
added docs link, added sunset-like radial gradient to header bg, removed some header text, and tweaks to styling
1 parent 50d99fe commit 1498b00

3 files changed

Lines changed: 54 additions & 34 deletions

File tree

application/static/css/style.css

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ body {
4040
h1 {
4141
margin: 0;
4242
padding: 0;
43-
font-size: 1.2rem;
43+
font-size: 1.6rem;
4444
font-family: custom-bold;
4545
color: inherit;
4646
}
4747

4848
@media screen and (min-width: 760px) {
4949
h1 {
50-
font-size: 1.85rem;
50+
font-size: 2.5rem;
5151
}
5252
}
5353

@@ -70,7 +70,6 @@ ul {
7070
padding: 0;
7171
overflow-x: hidden;
7272
border-bottom: 4px solid #0f6c79;
73-
box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
7473
}
7574

7675
@media screen and (min-width: 760px) {
@@ -189,28 +188,35 @@ p {
189188
}
190189
}
191190

192-
#analysis-preview {
191+
#preview-container {
192+
z-index: 3;
193+
position: absolute;
194+
top: 0;
195+
left: 0;
196+
display: flex;
197+
flex-direction: row;
198+
justify-content: flex-end;
199+
align-items: center;
200+
gap: 1rem;
201+
width: 100%;
202+
height: 8rem;
203+
margin: 0;
204+
padding: 1rem;
205+
box-sizing: border-box;
206+
overflow: hidden;
207+
}
208+
209+
#analysis-preview, #docs-preview {
193210
--border-radius: 4px;
194211

195-
z-index: 99;
196-
position: absolute;
197-
top: 1%;
198-
right: 1%;
199-
height: 9%;
200-
min-height: 70px;
212+
position: relative;
213+
height: 100%;
201214
aspect-ratio: 16/9;
202215
border-radius: var(--border-radius);
203216
box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px,
204217
rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px,
205218
rgba(0, 0, 0, 0.07) 0px 16px 16px;
206219

207-
@media screen and (min-width: 760px) {
208-
& {
209-
height: 10%;
210-
min-height: 80px;
211-
}
212-
}
213-
214220
& a {
215221
z-index: 3;
216222
}
@@ -219,7 +225,7 @@ p {
219225
opacity: 0;
220226
}
221227

222-
#text-container {
228+
.text-container {
223229
z-index: 3;
224230
position: absolute;
225231
top: 0;
@@ -249,7 +255,7 @@ p {
249255
opacity: 0.4;
250256
}
251257

252-
#preview {
258+
.preview {
253259
height: 100%;
254260
width: 100%;
255261
object-fit: cover;
@@ -266,11 +272,14 @@ p {
266272
min-height: 135px;
267273
height: 75%;
268274
width: 100%;
275+
padding: 2rem;
276+
box-sizing: border-box;
269277
overflow: hidden;
270278
text-align: center;
271279
line-height: 1.6;
272280
color: rgb(255, 253, 250);
273-
background-color: rgb(255, 253, 250);
281+
background-color: #c5c5c5;
282+
background: radial-gradient(circle,#FF6000 24%,#FD9353 24% ,black 200%);
274283
}
275284

276285
@media screen and (min-width: 760px) {
397 KB
Loading

application/templates/index.html

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta charset="UTF-8">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<meta name="description" content="A REST API for Hawaii climate data with returns in JSON format.">
89
<title>
910
Hawaii Climate Data API
1011
</title>
@@ -14,16 +15,29 @@
1415
</head>
1516

1617
<body>
17-
<div id="analysis-preview">
18-
<div id="text-container">
19-
<a href="/analysis" title="Analysis of Hawaii climate data in the form of a Jupyter Notebook.">
20-
<button type="button">
21-
Analysis
22-
</button>
23-
</a>
24-
<div class="overlay"></div>
18+
<div id="preview-container">
19+
<div id="analysis-preview">
20+
<div class="text-container">
21+
<a href="/analysis" title="Analysis of Hawaii climate data in the form of a Jupyter Notebook.">
22+
<button type="button">
23+
Analysis
24+
</button>
25+
</a>
26+
<div class="overlay"></div>
27+
</div>
28+
<img class="preview" src="../static/images/climate_analysis_preview.png" alt="climate analysis preview" />
29+
</div>
30+
<div id="docs-preview">
31+
<div class="text-container">
32+
<a href="https://github.com/theodoremoreland/HawaiiClimateDataAPI" target="_blank" title="Documentation for the Hawaii Climate Data API.">
33+
<button type="button">
34+
Docs
35+
</button>
36+
</a>
37+
<div class="overlay"></div>
38+
</div>
39+
<img class="preview" src="../static/images/docs_preview.png" alt="API documentation preview" />
2540
</div>
26-
<img id="preview" src="../static/images/climate_analysis_preview.png" alt="climate analysis preview" />
2741
</div>
2842
<ul>
2943
<li>
@@ -56,11 +70,8 @@
5670
</ul>
5771
<div class="intro">
5872
<h1>Hawaii Climate Data API</h1>
59-
<p>A REST API with returns in JSON format. Supply date or date range to
60-
<i>"/api/v2/aggregate/{start-date}/{end-date}"</i> to aggregate data by date (from 2010-01-01 to
61-
2017-08-23).
62-
For example: <a id="dynamic-example"
63-
href="/api/v2/aggregate/2016-04-16/2017-04-16">/api/v2/aggregate/2016-04-16/2017-04-16</a>
73+
<p>
74+
A REST API with returns in JSON format.
6475
</p>
6576
<div class="ocean">
6677
<div class="wave"></div>

0 commit comments

Comments
 (0)