Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit ec52839

Browse files
committed
fix: scale website correctly on mobile devices
1 parent dcf2ae3 commit ec52839

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/index.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Submit from "../components/sections/Submit.astro";
99
<html lang="en">
1010
<head>
1111
<meta charset="UTF-8" />
12-
<meta name="viewport" content="width=device-width" />
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1313
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1414
<meta name="generator" content={Astro.generator} />
1515
<meta name="description" content="Make a shader. We'll ship you the poster. Free GPUs for the most dedicated.">
@@ -71,6 +71,7 @@ import Submit from "../components/sections/Submit.astro";
7171

7272
body {
7373
font-family: Nothing, monospace;
74+
position: fixed;
7475

7576
& > section {
7677
position: absolute;
@@ -79,6 +80,8 @@ import Submit from "../components/sections/Submit.astro";
7980

8081
& > #shader {
8182
position: fixed;
83+
width: 100vw;
84+
height: 100vh;
8285
}
8386

8487
& > section:nth-of-type(1) { top: 0vh; }

0 commit comments

Comments
 (0)