-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (105 loc) · 4.46 KB
/
index.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="logo.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap"
rel="stylesheet"
/>
<meta property="og:url" content="https://ander.pages.dev/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Ander's Personal Website" />
<meta
property="og:description"
content="My personal website where you can find basic information on me, and some of my coding projects."
/>
<meta
property="og:image"
content="https://ander.pages.dev/images/banner.jpg"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="ander.pages.dev" />
<meta property="twitter:url" content="https://ander.pages.dev/" />
<meta name="twitter:title" content="Ander's Personal Website" />
<meta
name="twitter:description"
content="My personal website where you can find basic information on me, and some of my coding projects."
/>
<meta
name="twitter:image"
content="https://ander.pages.dev/images/banner.jpg"
/>
<meta
name="description"
content="My personal website where you can find basic information on me, and some of my coding projects."
/>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ander</title>
</head>
<body class="dark">
<div id="header">
<a href="#" title="Back To Top">ander</a>
<button class="header-button" id="theme-button" title="Toggle Theme">
<svg
id="moon-icon"
class="hidden"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
fill="currentColor"
>
<path
d="M10 7C10 10.866 13.134 14 17 14C18.9584 14 20.729 13.1957 21.9995 11.8995C22 11.933 22 11.9665 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.0335 2 12.067 2 12.1005 2.00049C10.8043 3.27098 10 5.04157 10 7ZM4 12C4 16.4183 7.58172 20 12 20C15.0583 20 17.7158 18.2839 19.062 15.7621C18.3945 15.9187 17.7035 16 17 16C12.0294 16 8 11.9706 8 7C8 6.29648 8.08133 5.60547 8.2379 4.938C5.71611 6.28423 4 8.9417 4 12Z"
></path>
</svg>
<svg
id="sun-icon"
class="hidden"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
fill="currentColor"
>
<path
d="M12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM11 1H13V4H11V1ZM11 20H13V23H11V20ZM3.51472 4.92893L4.92893 3.51472L7.05025 5.63604L5.63604 7.05025L3.51472 4.92893ZM16.9497 18.364L18.364 16.9497L20.4853 19.0711L19.0711 20.4853L16.9497 18.364ZM19.0711 3.51472L20.4853 4.92893L18.364 7.05025L16.9497 5.63604L19.0711 3.51472ZM5.63604 16.9497L7.05025 18.364L4.92893 20.4853L3.51472 19.0711L5.63604 16.9497ZM23 11V13H20V11H23ZM4 11V13H1V11H4Z"
></path>
</svg>
</button>
<button class="header-button" id="sidebar-button">
<svg
id="arrow-icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
fill="currentColor"
>
<path
d="M10.071 4.92902L11.4852 6.34323L6.82834 11.0001L16.0002 11.0002L16.0002 13.0002L6.82839 13.0001L11.4852 17.6569L10.071 19.0712L2.99994 12.0001L10.071 4.92902ZM18.0001 19V5.00003H20.0001V19H18.0001Z"
></path>
</svg>
</button>
</div>
<script src="script.js"></script>
</body>
<script>
const setThemeOnLoad = () => {
const currentTheme = localStorage.getItem("theme");
const moonIcon = document.getElementById("moon-icon");
const sunIcon = document.getElementById("sun-icon");
if (currentTheme === "light") {
document.body.classList.remove("dark");
sunIcon.classList.remove("hidden");
} else {
moonIcon.classList.remove("hidden");
}
};
setThemeOnLoad();
</script>
</html>