Skip to content

Commit 15852ee

Browse files
committed
fix bg
1 parent 5dde2ee commit 15852ee

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

website/src/pages/index.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const structuredData = {
8484
<html lang="en">
8585
<head>
8686
<meta charset="UTF-8" />
87-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
87+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
8888
<title>{siteTitle}</title>
8989
<meta name="description" content={siteDescription} />
9090
<meta name="keywords" content={keywordMeta} />
@@ -98,6 +98,7 @@ const structuredData = {
9898
name="googlebot"
9999
content="index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1"
100100
/>
101+
<meta name="color-scheme" content="dark light" />
101102
<meta name="referrer" content="strict-origin-when-cross-origin" />
102103
<link rel="canonical" href={canonicalUrl} />
103104
<link rel="icon" type="image/png" sizes="256x256" href={iconUrl} />
@@ -124,7 +125,8 @@ const structuredData = {
124125
<meta name="twitter:description" content={socialDescription} />
125126
<meta name="twitter:image" content={ogImageUrl} />
126127
<meta name="twitter:image:alt" content="ASO CLI local dashboard keyword research view" />
127-
<meta name="theme-color" content="#0d1317" />
128+
<meta name="theme-color" content="#0d1317" media="(prefers-color-scheme: light)" />
129+
<meta name="theme-color" content="#0d1317" media="(prefers-color-scheme: dark)" />
128130
<script type="application/ld+json" set:html={JSON.stringify(structuredData)}></script>
129131
</head>
130132
<body>

website/src/styles/site.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ body {
4242
radial-gradient(circle at 8% -14%, #1d5863 0%, transparent 42%),
4343
radial-gradient(circle at 94% 0%, #253660 0%, transparent 36%),
4444
linear-gradient(160deg, #0b1216, var(--bg) 52%, #101820);
45+
background-color: var(--bg);
4546
}
4647

4748
body {
4849
position: relative;
50+
min-height: 100vh;
51+
min-height: 100dvh;
4952
}
5053

5154
a {
@@ -72,7 +75,7 @@ a {
7275
}
7376

7477
.topbar-wrap {
75-
padding: 1rem 0;
78+
padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 1rem;
7679
background: var(--hero-band);
7780
}
7881

@@ -443,6 +446,10 @@ pre code {
443446
line-height: 1.7;
444447
}
445448

449+
.band-faq {
450+
padding-bottom: calc(clamp(2.4rem, 7vw, 5rem) + env(safe-area-inset-bottom, 0px));
451+
}
452+
446453
.faq a {
447454
color: var(--accent-2);
448455
}

0 commit comments

Comments
 (0)