Skip to content

Commit 5de9f7d

Browse files
committed
🔧 Make landing page look okish in light mode
1 parent a5be519 commit 5de9f7d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/components/Hero.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if (image) {
9191
.image {
9292
width: 100%;
9393
aspect-ratio: 1 / 1;
94-
margin-top: -30%;
94+
margin-top: -25%;
9595
margin-bottom: -30%;
9696
background: url(../assets/planet.webp) center center;
9797
background-size: contain;

src/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hero:
77
image:
88
file: ../../assets/planet.webp
99
actions:
10-
- text: Get started
10+
- text: Read the Documentation
1111
link: /getting-started/intro/
1212
icon: right-arrow
1313
- text: Download from GitHub

src/styles/custom.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@
4141
}
4242

4343
:root[data-theme='light'] header {
44-
background-color: #ffffffc5;
44+
background-image: linear-gradient(to left rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0));
4545
}
4646

4747
[data-has-hero] body {
4848
background-image: url('../assets/bg.webp');
4949
background-size: cover;
5050
background-position: 50% 50%;
5151

52+
/* Increase the brightness of the dim text in the footer of the landing page. */
53+
--sl-color-gray-1: #aaa;
54+
--sl-color-gray-2: #bbb;
55+
--sl-color-gray-3: #888;
56+
--sl-color-white: #fff;
5257
}

0 commit comments

Comments
 (0)