Skip to content

Commit 06c8c92

Browse files
committed
better css isolation for homepage
1 parent 65ed396 commit 06c8c92

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

_layouts/default.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,32 @@
2020
<style>
2121
body {
2222
font-family: sans-serif;
23+
margin: 0;
24+
background-color: #f9f9f9;
25+
}
26+
27+
section.mainPage {
2328
display: flex;
2429
flex-direction: column;
2530
align-items: center;
2631
justify-content: center;
2732
min-height: 100vh;
28-
margin: 0;
29-
padding: 2rem;
30-
background-color: #f9f9f9;
3133
}
3234

3335
img.logo {
3436
max-width: 150px;
3537
margin-bottom: 1rem;
38+
margin: 0 auto;
39+
display: block;
3640
}
3741

38-
h1 {
42+
h1.siteTitle {
3943
font-size: 2.5em;
4044
font-weight: bold;
45+
text-align: center;
4146
}
4247

43-
p {
48+
section.mainPage > p {
4449
font-size: 1.2em;
4550
max-width: 600px;
4651
text-align: center;

index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
layout: default
33
title: Open Rowing Community
44
---
5-
<img class="logo" src="logo.svg" />
6-
<h1>{{ page.title }}</h1>
7-
<p>
8-
<a href="https://pub.dev/publishers/openrowing.com/packages"><img alt="Static Badge" src="https://img.shields.io/badge/pub.dev-openrowing.com-blue"></a><br>
9-
We're building open, community-first software for the sport of rowing. 🚣‍♀️</p>
10-
<p></p>
11-
<p><a href="https://codeberg.org/OpenRowingCommunity">Explore our Code →</a></p>
12-
<p><a href="https://matrix.to/#/#openrowing:matrix.org">Chat with Us →</a></p>
5+
<section class="mainPage">
6+
<img class="logo" src="logo.svg" />
7+
<h1 class="siteTitle">{{ page.title }}</h1>
8+
<p>
9+
<a href="https://pub.dev/publishers/openrowing.com/packages"><img alt="Static Badge" src="https://img.shields.io/badge/pub.dev-openrowing.com-blue"></a><br>
10+
We're building open, community-first software for the sport of rowing. 🚣‍♀️</p>
11+
<p></p>
12+
<p><a href="https://codeberg.org/OpenRowingCommunity">Explore our Code →</a></p>
13+
<p><a href="https://matrix.to/#/#openrowing:matrix.org">Chat with Us →</a></p>
1314

15+
</section>

0 commit comments

Comments
 (0)