added links page

This commit is contained in:
awexxx
2021-12-12 09:50:14 -05:00
parent b5ad82fbd6
commit 285d109ec5
8 changed files with 204 additions and 145 deletions
+116
View File
@@ -0,0 +1,116 @@
html, body {
margin: 0;
height: 100%;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}
html{
background-color:black;
background-size:cover;
}
a {
color:white;
}
a:hover {
color:gray;
}
body {
background-size: 400% 400%;
padding-top:35px;
padding-bottom:35px;
height:fit-content;
min-height:100%;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
:root {
--accentColor: #E6E6E6;
--delay: .3s;
}
.description, .source{
color:white;
text-align:center;
margin: 27px auto;
margin-top:10px;
width:90%;
max-width: 500px;
}
.source{
font-size:small;
margin-top:50px;
}
.profilePicture, .profilePicture img {
position: relative;
width: 130px;
height: 130px;
display: block;
margin: 35px auto 20px;
border-radius: 50%;
}
.userName {
color: var(--accentColor);
font-size: x-large;
font-weight: bold;
line-height: 1.25;
display: block;
width: 100%;
text-align: center;
text-decoration: none;
}
.links {
max-width: 675px;
width: auto;
display: block;
margin: 27px auto;
}
.link {
position: relative;
background-color: transparent;
color: var(--accentColor);
border: solid var(--accentColor) 2px;
border-radius: 10px;
font-size: 1rem;
text-align: center;
display: block;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
padding: 10px;
text-decoration: none;
-webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
.link:hover {
background-color: var(--accentColor);
color: #000; /* Fallback for older browsers */
color: rgba(0, 0, 0, 0.5);
}
}
.link:active {
background-color: var(--accentColor);
color: #000; /* Fallback for older browsers */
color: rgba(0, 0, 0, 0.5);
}
+27
View File
@@ -0,0 +1,27 @@
// a key map of allowed keys
var allowedKeys = {
37: 'left',
38: 'up',
39: 'right',
40: 'down',
65: 'a',
66: 'b'
};
var code = ['up', 'up', 'down', 'down', 'left', 'right', 'left', 'right', 'b', 'a'];
var pos = 0;
// add keydown event listener
document.addEventListener('keydown', function(e) {
var key = allowedKeys[e.keyCode];
var requiredKey = code[pos];
if (key == requiredKey) {
pos++;
if (pos == code.length) {
location = `https://www.youtube.com/watch?v=dQw4w9WgXcQ`
pos = 0;
}
} else {
pos = 0;
}
});