Skip to content

Commit 8bb894d

Browse files
committed
landing updated
1 parent 66d455c commit 8bb894d

2 files changed

Lines changed: 46 additions & 18 deletions

File tree

src/_data/home.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "The Data Diversity Lab",
33
"subTitle": "",
4-
"description": "Ecology, evolution, software development, and data science.",
4+
"description": "Biodiversity · Data Science · Software",
55
"buttons": [
66
{
77
"title": "Lab Members",

src/index.html

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@
1515
<section id="hero">
1616
<div class="hero-content">
1717
<div class="heroText">
18-
<div class="hero-animate hero-animate-1">
19-
<h1 id="home-h" class="cs-title">{{ home.title }}</h1>
20-
<h3 class="cs-title">{{ home.subTitle }}</h3>
21-
</div>
22-
<p class="hero-animate hero-animate-2">
23-
{{ home.description }}
24-
</p>
25-
<div class="button-container hero-animate hero-animate-3">
18+
<div class="button-container hero-animate hero-animate-1">
2619
{%- for button in home.buttons -%}
2720
{%- if button.title != "Subscribe" -%}
2821
<a class="button-solid" href="{{ button.link }}" rel="noopener">
@@ -31,7 +24,13 @@ <h3 class="cs-title">{{ home.subTitle }}</h3>
3124
{%- endif -%}
3225
{% endfor %}
3326
</div>
34-
<div class="subscribe-row hero-animate hero-animate-3">
27+
<div class="hero-animate hero-animate-2">
28+
<h1 id="home-h" class="cs-title">{{ home.title }}</h1>
29+
</div>
30+
<p class="hero-description hero-animate hero-animate-3">
31+
{{ home.description }}
32+
</p>
33+
<div class="subscribe-row hero-animate hero-animate-4">
3534
{%- for button in home.buttons -%}
3635
{%- if button.title == "Subscribe" -%}
3736
<a class="button-subscribe" href="{{ button.link }}" rel="noopener" target="_blank">
@@ -70,12 +69,6 @@ <h3 class="cs-title">{{ home.subTitle }}</h3>
7069
</div>
7170
</div>
7271
</div>
73-
<a href="#service-cards" class="scroll-indicator" aria-label="Scroll to content">
74-
<div class="scroll-mouse">
75-
<div class="scroll-dot"></div>
76-
</div>
77-
<span class="scroll-label">scroll</span>
78-
</a>
7972

8073
<div class="cs-picture-caption timer-slider">
8174
<div class="cs-picture-caption timer-slider">
@@ -220,12 +213,47 @@ <h4 class="cs-title">{{ new.data.Name }}</h4>
220213
-->
221214

222215
<style>
216+
/* ---- Hero layout overrides ---- */
217+
#hero .heroText {
218+
gap: 0.5rem; /* tight gap between all elements */
219+
}
220+
#hero .button-container {
221+
margin-bottom: 0.75rem; /* small breathing room before title */
222+
gap: 0.35rem 0.45rem;
223+
justify-content: flex-start;
224+
}
225+
#hero .button-container .button-solid {
226+
font-size: 0.6rem;
227+
padding: 0.32rem 0.8rem;
228+
letter-spacing: 0.13em;
229+
opacity: 0.75;
230+
border-color: rgba(255,255,255,0.3);
231+
}
232+
#hero .button-container .button-solid:hover {
233+
opacity: 1;
234+
}
235+
#hero h1.cs-title {
236+
margin: 0;
237+
line-height: 1.05;
238+
}
239+
p.hero-description {
240+
font-size: 0.8rem;
241+
letter-spacing: 0.18em;
242+
text-transform: uppercase;
243+
color: rgba(255,255,255,0.55);
244+
margin: 0.2rem 0 0 0;
245+
font-family: 'Figtree', sans-serif;
246+
font-weight: 500;
247+
}
248+
#hero .subscribe-row {
249+
margin-top: 0.6rem;
250+
}
251+
223252
/* ---- Scroll Indicator ---- */
224253
.scroll-indicator {
225254
position: absolute;
226255
bottom: 2.5rem;
227-
left: 50%;
228-
transform: translateX(-50%);
256+
right: 2.5rem;
229257
display: flex;
230258
flex-direction: column;
231259
align-items: center;

0 commit comments

Comments
 (0)