Skip to content

Commit 2ac0d47

Browse files
committed
make demo landing elements take up the whole screen
1 parent 6c9c296 commit 2ac0d47

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

demo/index.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
55
<style>
66
html {
7-
font-size: calc(0.5vw + 0.9rem);
7+
font-size: calc(0.1vw + 1.2rem);
88
}
99

1010
body {
@@ -15,10 +15,11 @@
1515
}
1616

1717
header {
18+
align-items: center;
1819
display: flex;
1920
flex-direction: column;
20-
align-items: center;
21-
padding: 2rem 0;
21+
height: 20vh;
22+
padding: 5vh 0 0;
2223
user-select: none;
2324
-moz-user-select: none;
2425
}
@@ -45,11 +46,15 @@
4546
}
4647

4748
.example {
48-
padding: 2.5rem 2rem;
49+
align-items: center;
50+
display: flex;
51+
height: 50vh;
52+
padding: 5vh 2rem;
4953
}
5054

5155
.how-it-works {
5256
cursor: pointer;
57+
height: 10vh;
5358
transform: rotate(-2deg) translateY(-1px);
5459
user-select: none;
5560
}
@@ -72,6 +77,7 @@
7277
.container .title {
7378
color: #aaa;
7479
font-weight: 700;
80+
margin: 1rem 0 0.5rem;
7581
max-width: 1000px;
7682
text-transform: uppercase;
7783
user-select: none;
@@ -82,7 +88,7 @@
8288
border: 1px solid #eee;
8389
border-radius: 0.5rem;
8490
display: flex;
85-
margin: 1.5rem 0;
91+
margin: 1rem 0;
8692
max-width: 1000px;
8793
width: 100%;
8894
}
@@ -147,6 +153,5 @@
147153
</main>
148154
<script src="./example.ts"></script>
149155
<script src="./content.ts"></script>
150-
<!-- TODO fix unexpanded landing alignment -->
151156
</body>
152157
</html>

demo/internal/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// If debug is initially set to false it will not be toggleable.
2-
let debug = true && location.hostname === "localhost";
2+
let debug = false && location.hostname === "localhost";
33
export const isDebug = () => debug;
44

55
const debugListeners: ((debug: boolean) => void)[] = [];

0 commit comments

Comments
 (0)