-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
248 lines (220 loc) · 8.39 KB
/
Copy pathindex.html
File metadata and controls
248 lines (220 loc) · 8.39 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Michael Krause's Website</title>
<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=Noto+Sans&family=Work+Sans:wght@500&display=swap" rel="stylesheet"> <style>
body{
margin: 0;
font-family: 'Work Sans', sans-serif;
color: #acdab6;
background: #d2d2ec;
text-shadow: 1px 1px 1px rgb(130, 214, 158); /* Set your desired outline color and size */
}
section{
position: relative;
display: flex;
flex-direction: column;
align-items: center;
min-height: 200;
padding: 300px 20vw;
}
a:hover + .cursor {
background-color: #364638; /* Change to the color you want */
}
.cursor {
position: fixed;
border-radius: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
mix-blend-mode: difference;
background-color: transparent;
z-index: 1000;
border: 0px solid white;
height: 50px;s
width: 50px;
transition: all 3ms ease-out;
}
.top{
background: #7c939e;
}
.bottom{
background: #27496D;
}
.spacer {
aspect-ratio: 1920/250;
width:100%;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.blog {
position: fixed;
bottom: 1rem;
left: 0;
width: 100%;
text-align: center;
margin: 0;
a {
color: white;
}
}
.custom-shape-divider-top-1677889977 {
position: absolute;
top: 0;
left: 0;
width: 100%;
overflow-x: hidden;
line-height: 0;
}
.custom-shape-divider-top-1677897940 {
position: absolute;
top: 0;
left: 0;
width: 100%;
overflow: hidden;
line-height: 0;
}
.custom-shape-divider-bottom-1677898256 {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
overflow: hidden;
line-height: 0;
}
.custom-shape-divider-bottom-1677898350 {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
overflow: hidden;
line-height: 0;
transform: rotate(180deg);
}
.custom-shape-divider-bottom-1677898350 svg {
position: relative;
display: block;
width: calc(100% + 1.3px);
height: 104px;
}
.custom-shape-divider-bottom-1677898350 .shape-fill {
fill: #27496D;
}
a{
text-decoration: none;
color:#6da078 ;
}
.hidden_link{
color: #30941e;
}
.link{
color: #27496D;
}
svg{
width: 100%;
}
.darkText{
color:#364638
}
.gitbutton{
cursor: pointer;
width: 8%;
height: 8%;
}
</style>
</head>
<body>
<div class='cursor' id="cursor"></div>
<section class="top">
<h1>Projects</h1>
<p>
<a class="link" href="https://mikek16.github.io/sortingAlgo.html">Sorting Algorithms Visualizer</a>
</p>
</section>
<section class="light">
<div class="custom-shape-divider-top-1677897940">
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none">
<path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" class="shape-fill" fill="#7c939e"></path>
</svg>
</div>
<h1 class="darkText" id="typed-text"></h1>
<a href="http://www.github.com/Mikek16" style="display: flex; justify-content: center; align-items: center;">
<svg class="gitbutton" xmlns="http://www.w3.org/2000/svg"
aria-label="GitHub" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
onclick="handleGit()"
fill="#181717"/>
<path fill="#fff" d="M335 499c14 0 12 17 12 17H165s-2-17 12-17c13 0 16-6 16-12l-1-44c-71 16-86-34-86-34-12-30-28-37-28-37-24-16 1-16 1-16 26 2 40 26 40 26 22 39 59 28 74 22 2-17 9-28 16-35-57-6-116-28-116-126 0-28 10-51 26-69-3-6-11-32 3-67 0 0 21-7 70 26 42-12 86-12 128 0 49-33 70-26 70-26 14 35 6 61 3 67 16 18 26 41 26 69 0 98-60 120-117 126 10 8 18 24 18 48l-1 70c0 6 3 12 16 12z"/>
</svg>
</a>
<br>
<a href="https://mikek16.github.io/rbp.html">RBP</a>
<div id="middle"></div>
<div class="custom-shape-divider-bottom-1677898350">
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none">
<path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" class="shape-fill"></path>
</svg>
</div>
<div>
</div>
</section>
<section class="bottom">
<h1>About Me</h1>
<p>
Dickinson College '24<br>
Computer Science
</p>
<a href="mailto:MichaelGKrause@outlook.com">MichaelGKrause@outlook.com</a>
</section>
<script>
var i = 0;
var txt = "Michael Krause"; // Replace this with the text you want to type
var speed = 75; // Adjust this value to control the typing speed
function typeWriter() {
if (i < txt.length) {
document.getElementById("typed-text").innerHTML += txt.charAt(i);
i++;
setTimeout(typeWriter, speed);
}
}
window.onload = function() {
document.getElementById("middle").scrollIntoView({behavior: "smooth", block: "center", inline: "nearest"});
typeWriter();
}
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function handleGit() {
window.open('https://github.com/Mikek16', 'blank');
};
var cursor = document.getElementById("cursor");
document.body.addEventListener("mousemove", function (e) {
cursor.style.left = e.clientX + "px";
cursor.style.top = e.clientY + "px";
});
var links = document.querySelectorAll("a");
links.forEach(function (link) {
link.addEventListener("mouseenter", function () {
cursor.style.backgroundColor = "#364638"; /* Change to the color you want */
cursor.style.opacity = 1; // Fully opaque
cursor.style.width = "60px"; // Adjust the desired expanded size
cursor.style.height = "60px"; // Adjust the desired expanded size
cursor.style.transition = "opacity 0.2s, width 0.6s, height 0.6s"; // Adjust the duration as needed
});
link.addEventListener("mouseleave", function () {
cursor.style.opacity = 0; // Fully transparent
cursor.style.width = "0px"; // Adjust the original size
cursor.style.height = "0px"; // Adjust the original size
});
});
</script>
</body>
</html>