Skip to content

Commit 67b43a8

Browse files
committed
Update css
1 parent 5a5f625 commit 67b43a8

14 files changed

+64
-2
lines changed

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.quarto/
2+
**/*.quarto_ipynb

docs/_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ website:
1414

1515
navbar:
1616
background: primary
17-
logo: ../images/logo-black.png
17+
logo: ../images/logo-white-transparent.png
1818
logo-alt: "Precipitation Index Logo"
1919
search: true
2020
left:

docs/index.qmd

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ page-layout: full
66
---
77

88
::: {.hero-banner}
9+
::: {.hero-logo}
10+
![](../images/logo-white-transparent.png)
11+
:::
12+
13+
::: {.hero-content}
914
# Monitor Climate Extremes with Confidence
1015

1116
A minimal, efficient Python implementation of **Standardized Precipitation Index (SPI)** and **Standardized Precipitation Evapotranspiration Index (SPEI)** for monitoring **both drought and wet conditions** using run theory.
@@ -17,6 +22,8 @@ A minimal, efficient Python implementation of **Standardized Precipitation Index
1722
[Get Started](get-started/installation.qmd){.btn .btn-primary .btn-lg role="button"}
1823
[View on GitHub](https://github.com/bennyistanto/precip-index){.btn .btn-outline-light .btn-lg role="button"}
1924
:::
25+
:::
26+
2027

2128
## Key Features
2229

@@ -114,7 +121,20 @@ Goes beyond simple threshold exceedance. Implements full run theory to character
114121

115122
This package includes example data from **Bali, Indonesia** (1958-2024) using TerraClimate:
116123

117-
![SPI-12 Time Series showing drought and wet events in Bali](../images/example-spi-timeseries.png)
124+
::: {.panel-tabset}
125+
### SPI 12-month, October 2023
126+
127+
![SPI-12](../images/bali_terraclimate_spi12_202310.png)
128+
129+
### SPEI 12-month, Dry
130+
131+
![SPEI-12 Dry](../images/bali_terraclimate_spei12_1958_2020_dry.png)
132+
133+
### SPEI 12-month, Wet
134+
135+
![SPEI-12 Wet](../images/bali_terraclimate_spei12_1958_2020_wet.png)
136+
137+
:::
118138

119139
::: {.callout-note}
120140
## Try it with your data

docs/styles.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,59 @@ $danger: #DC3545;
1717
padding: 4rem 2rem;
1818
margin-bottom: 2rem;
1919
border-radius: 8px;
20+
display: flex;
21+
align-items: center;
22+
gap: 2rem;
23+
}
24+
25+
.hero-logo {
26+
flex-shrink: 0;
27+
width: auto;
28+
max-width: 200px;
29+
}
30+
31+
.hero-logo img {
32+
width: 100%;
33+
height: auto;
34+
display: block;
35+
}
36+
37+
.hero-content {
38+
flex: 1;
2039
}
2140

2241
.hero-banner h1 {
2342
font-size: 3rem;
2443
font-weight: 700;
2544
margin-bottom: 1rem;
45+
margin-top: 0;
2646
}
2747

2848
.hero-banner p {
2949
font-size: 1.25rem;
3050
margin-bottom: 2rem;
3151
}
3252

53+
/* Responsive: stack logo on top for mobile */
54+
@media (max-width: 768px) {
55+
.hero-banner {
56+
flex-direction: column;
57+
text-align: center;
58+
}
59+
60+
.hero-logo {
61+
max-width: 150px;
62+
}
63+
64+
.hero-banner h1 {
65+
font-size: 2rem;
66+
}
67+
68+
.hero-banner p {
69+
font-size: 1rem;
70+
}
71+
}
72+
3373
/* Feature cards */
3474
.feature-card {
3575
background: white;
174 KB
Loading
176 KB
Loading
56.6 KB
Loading

images/logo-black-background.png

187 KB
Loading

images/logo-black-transparent.png

180 KB
Loading

0 commit comments

Comments
 (0)