-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (94 loc) · 3.2 KB
/
index.html
File metadata and controls
96 lines (94 loc) · 3.2 KB
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
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Навчальна група з ФІОТ КПІ | Study group from FICT KPI">
<title>ИП-85</title>
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="./images/logo.png" type="image/png">
<script>
document.addEventListener("DOMContentLoaded", () => {
if(localStorage.theme === "dark")
document.body.classList.toggle(localStorage.getItem('theme'));
})
</script>
</head>
<body>
<header id="header">
<a class='logo' aria-label="IP-85" ref="https://github.com/ip-85"></a>
<button id="theme-switcher">Theme</button>
</header>
<div class="project">
<div class="content">
<h2>ROBIN</h2>
<p>Система управління відкрітими данними</p>
<a href="https://github.com/ip-85/robin">github.com/ip-85/robin</a>
</div>
<div class="illustration" style="background-color: #F9D248">
<img src="./images/robin.svg" alt="robin">
</div>
</div>
<!-- <div class="article" style="grid-area: 1 / 6 / 2 / 9">
<div>
<h2>Article title</h2>
<p>by Author</p>
</div>
<p>Short article description, what is it about, this part also may include <a>links</a> to another articles and projects.</p>
<a href="https://medium.com/atricle">medium.com/atricle</a>
</div> -->
<!-- <div class="article" style="grid-area: 2 / 1 / 3 / 4">
<div>
<h2>Article title</h2>
<p>by Author</p>
</div>
<p>short article description</p>
<a href="https://medium.com/atricle">medium.com/atricle</a>
</div> -->
<div class="project">
<div class="content">
<h2>pm</h2>
<p>Проектний менеджер</p>
<a href="https://github.com/ip-85/pm">github.com/ip-85/pm</a>
</div>
<div class="illustration" style="background-color: #005799">
<img src="./images/pm.svg" alt="pm">
</div>
</div>
<div class="project">
<div class="content">
<h2>System Dynamics</h2>
<p>Застосунок для проведення опитувань</p>
<a href="https://github.com/ip-85/System-Dynamics">github.com/ip-85/System-Dynamics</a>
</div>
<div class="illustration" style="background-color: #9063C7">
<img src="./images/dynamics.svg" alt="logo">
</div>
</div>
<!-- <div class="article" style="grid-area: 3 / 6 / 4 / 9">
<div>
<h2>Article title</h2>
<p>by Author</p>
</div>
<p>short article description</p>
<a href="https://medium.com/atricle">medium.com/atricle</a>
</div> -->
<script>
const themeSwitcher = document.getElementById('theme-switcher');
themeSwitcher.addEventListener('click', () => {
document.body.classList.toggle('dark');
localStorage.setItem('theme', document.body.classList);
})
let prevScrollpos = window.pageYOffset;
window.onscroll = () => {
const currentScrollPos = window.pageYOffset;
document.getElementsByTagName("header")[0].style.top =
currentScrollPos > 100 && currentScrollPos > prevScrollpos ?
"-100px" : "0";
prevScrollpos = currentScrollPos;
}
</script>
</body>
</html>