-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
185 lines (175 loc) · 7.55 KB
/
index.html
File metadata and controls
185 lines (175 loc) · 7.55 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yak Shaving Devs - An Open Source Developer Collective</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css" />
<style>
.coloured {
color: var(--pico-color);
}
#logo {
height: 80px;
}
</style>
</head>
<body>
<nav class="container">
<ul>
<li><img src="/img/yakshavingdevs-light-theme-logo.svg" id="logo"></li>
</ul>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#projects">Projects</a></li>
<li>
<a href="https://github.com/yakshavingdevs" class="coloured">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-github">
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg>
</a>
</li>
<li>
<details class="dropdown" id="theme-select">
<summary>
Theme
</summary>
<ul>
<li>
<label>
<input type="radio" name="theme-select" value="light" hidden />
Light
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-sun">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</label>
</li>
<li>
<label>
<input type="radio" name="theme-select" value="dark" hidden />
Dark
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-moon">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</label>
</li>
<li>
<label>
<input type="radio" name="theme-select" value="system" hidden />
System
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-monitor">
<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect>
<line x1="8" y1="21" x2="16" y2="21"></line>
<line x1="12" y1="17" x2="12" y2="21"></line>
</svg>
</label>
</li>
</ul>
</details>
</li>
</ul>
</nav>
<main class="container">
<section id="home" class="grid">
<img src="/img/poster.jpg" alt="A computer geek trimming hair off of a yak's body" title="The Yak Shaving Devs">
<div style="display: flex; flex-direction: column; justify-content: center;">
<h1>
Procrastinate with open source contributions
</h1>
<p>
People of the developer realm! Hear ye! Hear ye! Join us today in working on awesome open source projects as a
<a href="https://en.wiktionary.org/wiki/yak_shaving">yak shaving</a> activity to ultimately join "The Order Of
Linus".
</p>
<a href="https://github.com/yakshavingdevs" role="button">Contribute Now</a>
</div>
</section>
<section id="projects">
<h2>Projects</h2>
<div class="grid">
<div>
<article>
<header>Datadance</header>
Transforming JSON data using JSON output specification
<footer>
<a href="https://datadance.app">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-globe">
<circle cx="12" cy="12" r="10"></circle>
<line x1="2" y1="12" x2="22" y2="12"></line>
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z">
</path>
</svg>
</a>
</footer>
</article>
</div>
<div>
<article>
<header>Shadba Nirukti</header>
A WordPress plugin for Shabda Nirukti
<footer>
<a href="https://shabdanirukti.in">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-globe">
<circle cx="12" cy="12" r="10"></circle>
<line x1="2" y1="12" x2="22" y2="12"></line>
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z">
</path>
</svg>
</a>
</footer>
</article>
</div>
</div>
</section>
</main>
<script>
(function () {
function getCurrentThemeSelection() {
if (localStorage.getItem('themeSelection')) {
return localStorage.getItem('themeSelection');
}
return 'system';
}
function getCurrentTheme() {
var themeSelection = getCurrentThemeSelection();
var systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
var currentTheme = (themeSelection === 'system') ? systemTheme : themeSelection;
return currentTheme;
}
var $themeSelect = document.getElementById("theme-select");
$themeSelect.value = getCurrentThemeSelection();
document.documentElement.setAttribute("data-theme", getCurrentTheme());
var $logo = document.getElementById("logo");
$logo.src = `/img/yakshavingdevs-${getCurrentTheme()}-theme-logo.svg`;
document.getElementById("theme-select").addEventListener('change', function (event) {
localStorage.setItem('themeSelection', event.target.value);
document.documentElement.setAttribute("data-theme", getCurrentTheme());
$logo.src = `/img/yakshavingdevs-${getCurrentTheme()}-theme-logo.svg`;
});
})();
</script>
</body>
</html>