Skip to content

Commit 243f7ad

Browse files
committed
Remove gradients/replace with different title style
1 parent d57cdd3 commit 243f7ad

5 files changed

Lines changed: 50 additions & 20 deletions

File tree

static/css/core.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@
8484

8585
.hero {
8686
display: flex;
87-
flex-direction: column;
88-
height: 100px;
87+
align-items: center;
8988
justify-content: center;
90-
margin-bottom: 1em;
91-
padding: 1em 0 1em 2.25em;
89+
gap: 1rem;
90+
height: 100px;
91+
margin-bottom: 0.5em;
92+
padding: 1em 0;
9293
font-family: var(--font-anta);
9394
font-size: var(--text-2xl);
94-
background: linear-gradient(135deg, #fdfdfd 0%, #fdfdfd 20%, #01552b 100%);
9595
}
9696

97-
:root[data-theme="dark"] .hero {
98-
background: linear-gradient(135deg, #0b0b0b 0%, #0b0b0b 20%, #026134 100%);
97+
.hero img {
98+
height: 3.5rem;
9999
}
100100

101101
/* Logo styling for dark mode */

static/css/layout.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,25 @@ nav {
201201
}
202202

203203
/* Insights */
204+
.insights-container {
205+
width: 75%;
206+
margin: 0 auto;
207+
}
208+
204209
.insight-card {
205210
padding-bottom: 2em;
206211
line-height: 1.4;
207212
}
208213

214+
.insight-card a {
215+
transition: color 0.3s;
216+
}
217+
218+
.insight-card a:hover {
219+
color: var(--accent);
220+
border-bottom-color: transparent;
221+
}
222+
209223
.insight-card p {
210224
margin: 0.25em 0;
211225
}
@@ -233,7 +247,7 @@ nav {
233247

234248
/* Arenas grid */
235249
.arenas-container {
236-
padding: 1rem;
250+
padding: 0 1rem 1rem 1rem;
237251
}
238252

239253
.arenas-grid {
@@ -281,6 +295,11 @@ nav {
281295
}
282296

283297
/* Team grid */
298+
.team-container {
299+
width: 75%;
300+
margin: 0 auto;
301+
}
302+
284303
.team-grid {
285304
display: grid;
286305
grid-template-columns: repeat(4, 1fr);

templates/arenas.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
{% block content %}
44
<div class="hero">
5+
<img src="/static/images/logos/clash_g.svg" alt="Clash Green">
56
<h1>Arenas</h1>
7+
<img src="/static/images/logos/clash_r.svg" alt="Clash Red">
68
</div>
79

810
<div class="arenas-container">

templates/insights.html

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@
22

33
{% block content %}
44
<div class="hero">
5+
<img src="/static/images/logos/clash_g.svg" alt="Clash Green">
56
<h1>Insights</h1>
7+
<img src="/static/images/logos/clash_r.svg" alt="Clash Red">
68
</div>
79

8-
{% for page in pages | sort(attribute='date', reverse=True) %}
9-
<div class="insight-card">
10-
<a href="{{ url_for("page", path=page.path) }}">
11-
<p class="insight-title">{{ page.title }}</p>
12-
<p><span class="subtext">{{ page.date }}</span> &bull; {{ page.description }}</p>
13-
<p>by {{ page.authors }}</p>
14-
</a>
15-
</div>
16-
{% else %}
17-
No posts yet!
18-
{% endfor %}
10+
<div class="insights-container">
11+
{% for page in pages | sort(attribute='date', reverse=True) %}
12+
<div class="insight-card">
13+
<a href="{{ url_for("page", path=page.path) }}">
14+
<p class="insight-title">{{ page.title }}</p>
15+
<p><span class="subtext">{{ page.date }}</span> &bull; {{ page.description }}</p>
16+
<p>by {{ page.authors }}</p>
17+
</a>
18+
</div>
19+
{% else %}
20+
No posts yet!
21+
{% endfor %}
22+
</div>
1923

2024
{% endblock content %}

templates/team.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
{% block content %}
44
<div class="hero">
5+
<img src="/static/images/logos/clash_g.svg" alt="Clash Green">
56
<h1>Team</h1>
7+
<img src="/static/images/logos/clash_r.svg" alt="Clash Red">
68
</div>
79

10+
<div class="team-container">
811
<div class="team-grid">
912
{% for contributor in data.contributors %}
1013
<a href="{{ contributor.link }}" class="team-card">
@@ -23,7 +26,7 @@ <h1>Team</h1>
2326
{% endfor %}
2427
</div>
2528

26-
<div style="width:95%; margin:0 auto; display:flex; flex-direction:column;">
29+
<div style="display:flex; flex-direction:column;">
2730
<h3 style="margin: 1.5em 0 1em 0">Get in Touch</h3>
2831
<span>
2932
We're excited about future work on CodeClash!
@@ -49,5 +52,7 @@ <h3 style="margin: 2em 0 1em 0">Funding Support</h3>
4952
</a>
5053
{% endfor %}
5154
</div>
55+
</div>
56+
5257
</div>
5358
{% endblock content %}

0 commit comments

Comments
 (0)