-
Notifications
You must be signed in to change notification settings - Fork 5
/
info.html
89 lines (80 loc) · 2.72 KB
/
info.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<title>Teti - Info</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="./assets/titanicon.ico">
<link rel="stylesheet" href="https://unpkg.com/chota@latest">
<script type="module" src="https://cdn.jsdelivr.net/npm/zero-md@3?register"></script>
</head>
<style>
body {
--bg-color: #000;
--font-color: #f5f5f5;
--color-primary: #17c16f;
max-width: 720px;
margin: 5rem auto;
padding-bottom: 10vh;
}
#background {
background-image: url("./assets/peakpx.jpg");
background-size: cover;
background-position: 0 -70vh;
width: 100vw;
height: 200vh;
position: fixed;
z-index: -1;
top: 0;
left: 0;
filter: blur(6px) brightness(0.3);
}
#title {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 70vh;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>
<body>
<div id="background"></div>
<nav id="title">
<h1 style="font-size: 8em; margin-bottom: 0;">TETI</h1>
<p>Modern Stacker By TitanPlayz100</p>
</nav>
<hr style="margin-top: 70vh;">
<a class="button outline primary pull-right" href="index.html">Back to teti</a>
<!-- markdown renderer -->
<zero-md src="info.md" id="info">
<template>
<link rel="stylesheet" href="https://unpkg.com/chota@latest">
<style>
h2 {
margin-top: 4vh;
font-weight: bold;
}
</style>
</template>
</zero-md>
<hr>
<p class="text-right">css using <a href="https://jenil.github.io/chota/">chota</a></p>
<p class="text-right">md renderer with <a href="https://zerodevx.github.io/zero-md/">zero-md</a></p>
<a class="button outline secondary pull-right" onclick="window.scrollTo({top: 0, behavior: 'smooth'});">Top of Page</a>
</body>
<script defer>
window.addEventListener("scroll", () => {
const totalHeight = document.body.scrollHeight
const clientHeight = window.innerHeight
const totalScroll = -(window.scrollY * 100 / totalHeight)
const clientScroll = 70 - (window.scrollY * 100 / clientHeight)
document.getElementById("background").style.top = `${totalScroll}vh`
document.getElementById("title").style.height = `${clientScroll < 0 ? 0 : clientScroll}vh`
})
</script>
</html>