Skip to content

Commit 1c1f095

Browse files
Fix homepage, blog, bioinformatics, and personnel pages to match original
- Hero: V-shaped cutout instead of curve, white page background - Location: title above lab image, remove decorative SVG shapes - Footer cityscape: remove white cutout overlay - Blog posts: use per-post featured_image as header, remove duplicate title - Blog feed: center cards, fix title spacing - Bioinformatics: add icons to top cards and resource grid, match original layout - Add What We Do page with full content, team photos, workflow diagram - Personnel: replace incorrect staff photos with correct ones from original site - Personnel: rectangular portrait photos instead of circular crops - Nav: add Overview to Bioinformatics dropdown
1 parent 60f015f commit 1c1f095

20 files changed

Lines changed: 200 additions & 122 deletions

_data/nav.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
- title: Bioinformatics
3434
url: /bioinformatics/
3535
children:
36+
- title: Overview
37+
url: /bioinformatics/
3638
- title: Getting Started
3739
url: /bioinformatics/getting-started/
3840

_includes/page-header.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
{% assign header_img = page.header_image | default: '/assets/images/hero-bg.jpg' %}
1+
{% if page.layout == 'post' and page.featured_image %}
2+
{% assign header_img = page.featured_image %}
3+
{% else %}
4+
{% assign header_img = page.header_image | default: '/assets/images/hero-bg.jpg' %}
5+
{% endif %}
26
<div class="page-header {% if page.layout == 'home' %}hero{% endif %}" style="background-image: url('{{ header_img | relative_url }}')">
37
<div class="page-header-content">
48
<h1>{{ page.header_title | default: page.title }}</h1>
59
{% if page.subtitle %}
610
<p class="page-subtitle">{{ page.subtitle }}</p>
711
{% endif %}
12+
{% if page.layout == 'post' %}
13+
<p class="page-subtitle">Published by <strong>{{ page.author }}</strong> on {{ page.date | date: "%Y-%m-%d" }}</p>
14+
{% endif %}
815
</div>
916
{% if page.layout == 'home' %}
1017
<div class="hero-curve">
1118
<svg viewBox="0 0 1000 100" preserveAspectRatio="none">
12-
<path d="M0,0 C400,100 600,100 1000,0 L1000,100 L0,100 Z"></path>
19+
<path d="M0,0 L500,100 L1000,0 L1000,100 L0,100 Z"></path>
1320
</svg>
1421
</div>
1522
{% endif %}

_layouts/post.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
{% include page-header.html %}
66
<div class="page-content">
77
<article class="content-card post-article">
8-
<div class="post-header">
9-
<h1>{{ page.title }}</h1>
10-
<p class="post-meta">
11-
{{ page.date | date: "%B %-d, %Y" }}
12-
{% if page.author %} &middot; by {{ page.author }}{% endif %}
13-
</p>
14-
</div>
158
<div class="post-body">
169
{{ content }}
1710
</div>

_sass/_content.scss

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@
3737
}
3838

3939
.team-card {
40-
width: 180px;
40+
width: 200px;
4141
text-align: center;
4242

4343
img {
44-
width: 140px;
45-
height: 140px;
46-
border-radius: 50%;
44+
width: 200px;
45+
height: 280px;
4746
object-fit: cover;
4847
filter: grayscale(100%);
4948
transition: filter 0.3s;
@@ -56,7 +55,8 @@
5655
h4 {
5756
margin: 0.5em 0 0.1em;
5857
font-size: 0.95rem;
59-
color: $purple;
58+
color: $text-color;
59+
font-weight: 700;
6060
}
6161

6262
.team-title {
@@ -94,8 +94,14 @@
9494
text-decoration: none;
9595
}
9696

97+
.resource-icon {
98+
font-size: 2.5rem;
99+
color: $purple;
100+
margin-bottom: 0.2em;
101+
}
102+
97103
h4 {
98-
margin: 0.5em 0 0.3em;
104+
margin: 0.3em 0 0.3em;
99105
color: $purple;
100106
}
101107

@@ -106,6 +112,38 @@
106112
}
107113
}
108114

115+
// Bioinformatics team grid (What We Do page)
116+
.bio-team-grid {
117+
display: flex;
118+
justify-content: center;
119+
gap: 3em;
120+
flex-wrap: wrap;
121+
margin: 1.5em 0;
122+
}
123+
124+
.bio-team-member {
125+
text-align: center;
126+
width: 180px;
127+
128+
img {
129+
width: 150px;
130+
height: 150px;
131+
object-fit: contain;
132+
}
133+
134+
h4 {
135+
margin: 0.5em 0 0.1em;
136+
font-size: 0.95rem;
137+
color: $text-color;
138+
}
139+
140+
p {
141+
font-size: 0.8rem;
142+
color: $text-muted;
143+
margin: 0;
144+
}
145+
}
146+
109147
// Equipment sections
110148
.equipment-section {
111149
margin-bottom: 2.5em;
@@ -228,7 +266,7 @@
228266
.top-cards-dark {
229267
background: $topbar-bg;
230268
border-radius: $border-radius;
231-
padding: 1em;
269+
padding: 1.5em;
232270
margin-bottom: 1.5em;
233271
}
234272

@@ -253,15 +291,22 @@
253291
text-decoration: none;
254292
}
255293

294+
.top-card-icon {
295+
font-size: 2.5rem;
296+
margin-bottom: 0.3em;
297+
}
298+
256299
h3 {
257-
margin-top: 0.5em;
300+
margin-top: 0.3em;
301+
margin-bottom: 0.3em;
258302
}
259303

260304
p {
261305
font-size: 0.9rem;
262306
}
263307

264308
.top-cards-dark & {
309+
.top-card-icon { color: $purple; }
265310
h3 { color: $text-light; }
266311
p { color: rgba(255, 255, 255, 0.7); }
267312
}

_sass/_homepage.scss

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@
7575
font-family: $font-alt;
7676
font-size: 3rem;
7777
font-weight: 700;
78-
line-height: 2.8em;
78+
line-height: 1.2;
7979
color: #424242;
8080
text-align: center;
81-
margin: 0;
81+
margin: 0 0 1em;
8282
}
8383

8484
// Blog cards on homepage
8585
.home-blog-grid {
8686
display: flex;
87+
justify-content: center;
8788
gap: 30px;
88-
margin-top: -25px;
8989

9090
@media (max-width: 800px) {
9191
flex-direction: column;
@@ -165,44 +165,12 @@
165165
z-index: 1;
166166
}
167167

168-
.location-banner-shape-top {
169-
position: relative;
170-
z-index: 2;
171-
172-
svg {
173-
display: block;
174-
width: 149%;
175-
height: 33px;
176-
}
177-
}
178-
179-
.location-banner-shape-bottom {
180-
position: relative;
181-
z-index: 2;
182-
183-
svg {
184-
display: block;
185-
width: 100%;
186-
height: 45px;
187-
}
188-
}
189-
190168
.location-banner-content {
191169
position: relative;
192170
z-index: 3;
193171
max-width: 1062px;
194172
margin: 0 auto;
195-
padding: 0 20px;
196-
197-
h2 {
198-
font-family: $font-alt;
199-
font-size: 3rem;
200-
font-weight: 700;
201-
color: #fff;
202-
text-align: center;
203-
line-height: 2.8em;
204-
margin: 0;
205-
}
173+
padding: 40px 20px;
206174

207175
h3 {
208176
font-family: $font-alt;
@@ -276,31 +244,18 @@
276244
position: relative;
277245
background-size: cover;
278246
background-position: bottom center;
279-
margin-top: -14px;
280247
margin-bottom: -5px;
281248
}
282249

283250
.bottom-banner-overlay {
284251
position: absolute;
285252
inset: 0;
286-
background: rgba(0, 0, 0, 0.16);
287-
opacity: 0.9;
253+
background: rgba(0, 0, 0, 0.3);
288254
z-index: 1;
289255
}
290256

291-
.bottom-banner-shape-top {
292-
position: relative;
293-
z-index: 2;
294-
295-
svg {
296-
display: block;
297-
width: 200%;
298-
height: 150px;
299-
}
300-
}
301-
302257
.bottom-banner-spacer {
303-
height: 200px;
258+
height: 250px;
304259
position: relative;
305260
z-index: 2;
306261
}

_sass/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $accent: #e91e63;
33
$purple: #6f42b7;
44
$topbar-bg: #363537;
55
$footer-bg: #323437;
6-
$page-bg: #E5E5E5;
6+
$page-bg: #ffffff;
77
$card-bg: #fff;
88
$text-color: #000;
99
$text-light: #fff;
225 KB
Loading
160 KB
Loading
180 KB
Loading
51.9 KB
Loading

0 commit comments

Comments
 (0)