summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/halloween-depreciated.css273
-rw-r--r--css/halloween.css464
-rw-r--r--css/main.css23
-rw-r--r--index.html1
-rw-r--r--js/background-sparkles.js16
5 files changed, 543 insertions, 234 deletions
diff --git a/css/halloween-depreciated.css b/css/halloween-depreciated.css
new file mode 100644
index 0000000..3666d22
--- /dev/null
+++ b/css/halloween-depreciated.css
@@ -0,0 +1,273 @@
+body {
+ margin: 0;
+}
+
+*,
+:after,
+:before {
+ box-sizing: border-box
+}
+
+.pull-left {
+ float: left
+}
+
+.pull-right {
+ float: right
+}
+
+.clearfix:after,
+.clearfix:before {
+ content: '';
+ display: table
+}
+
+.clearfix:after {
+ clear: both;
+ display: block
+}
+
+.halloween .head .skull:before,
+.halloween .head .skull:after,
+.halloween .eyes .eye:before,
+.halloween .body:before,
+.halloween .body:after,
+.halloween .legs:before {
+ content: '';
+ position: absolute;
+}
+
+.halloween {
+ bottom: 3%;
+ left: 2%;
+ width: 30px;
+ height: 44px;
+ position: fixed;
+ margin-top: -22px;
+ margin-left: -15px;
+ animation: move 3s infinite;
+}
+
+.halloween .head {
+ z-index: 1;
+ width: 25px;
+ height: 25px;
+ background: #444;
+ border-radius: 50%;
+ position: relative;
+}
+
+.halloween .head .skull {
+ left: 2px;
+ bottom: 2px;
+ width: 16px;
+ height: 16px;
+ color: #f9f9f9;
+ border-radius: 50%;
+ background: #f9f9f9;
+ position: absolute;
+ animation: skull 3s infinite;
+}
+
+.halloween .head .skull:before {
+ top: 9px;
+ width: 0;
+ left: 50%;
+ height: 0;
+ z-index: 1;
+ margin-left: -2px;
+ border: 2px solid transparent;
+ border-bottom: 2px solid #444;
+}
+
+.halloween .head .skull:after {
+ top: 14px;
+ left: 50%;
+ width: 1px;
+ height: 4px;
+ margin-left: -1px;
+ background: #f9f9f9;
+ box-shadow: 2px 0, -2px 0, 4px 0, -4px 0,
+ -3px -2px, -1px -2px, 1px -2px, 3px -2px
+}
+
+.halloween .eyes {
+ width: inherit;
+ height: inherit;
+ overflow: hidden;
+ border-radius: 50%;
+ position: relative;
+}
+
+.halloween .eyes .eye {
+ top: 5px;
+ width: 5px;
+ height: 5px;
+ position: absolute;
+ border-radius: 50%;
+ background: #f8cd22;
+ border: 1px solid #444;
+ border-right: 2px solid #444;
+}
+
+.halloween .eyes .eye:before {
+ top: -1px;
+ left: -1px;
+ width: 5px;
+ height: 3px;
+ background: #f9f9f9;
+ border-radius: 5px 5px 0 0;
+ animation: eyes 3s infinite;
+}
+
+.halloween .eyes .eye.eye-left {
+ left: 1px;
+}
+
+.halloween .eyes .eye.eye-right {
+ right: 1px;
+}
+
+.halloween .body {
+ top: -3px;
+ width: 24px;
+ height: 17px;
+ background: #444;
+ position: relative;
+ border-radius: 10px 10px 2px 2px;
+}
+
+.halloween .body:before,
+.halloween .body:after {
+ top: 3px;
+ width: 4px;
+ height: 12px;
+ background: #444;
+}
+
+.halloween .body:before {
+ left: -1px;
+ border-radius: 100% 0 0 2px;
+ transform: rotate(10deg);
+ animation: hand-left 3s infinite;
+}
+
+.halloween .body:after {
+ right: -1px;
+ border-radius: 0 100% 2px 0;
+ transform: rotate(-10deg);
+ animation: hand-right 3s infinite;
+}
+
+.halloween .legs {
+ top: -3px;
+ left: 50%;
+ width: 21px;
+ height: 10px;
+ overflow: hidden;
+ margin-left: -13px;
+ position: relative;
+ /* border-bottom: 1px solid rgba(0, 0, 0, .2); // This is the shadow at the bottom */
+}
+
+.halloween .legs:before {
+ top: 0;
+ left: -7px;
+ width: 60px;
+ height: 10px;
+ background-image: linear-gradient(-495deg, #444 4px, transparent 0), linear-gradient(-45deg, transparent 4px, #444 0);
+ background-size: 4px 8px;
+ background-repeat: repeat-x;
+ animation: legs 3s infinite;
+}
+
+@keyframes move {
+ 0% {
+ transform: translateX(0)
+ }
+
+ 50% {
+ transform: translateX(15px)
+ }
+
+ 100% {
+ transform: translateX(0)
+ }
+}
+
+@keyframes skull {
+ 0% {
+ transform: translate(0, 0)
+ }
+
+ 25% {
+ transform: translate(2px, 1px)
+ }
+
+ 75% {
+ transform: translate(3px, -1px)
+ }
+
+ 100% {
+ transform: translate(0, 0)
+ }
+}
+
+@keyframes eyes {
+ 0% {
+ top: -5px;
+ border-radius: 50%;
+ }
+
+ 50% {
+ top: -1px;
+ border-radius: 5px 5px 0 0;
+ }
+
+ 100% {
+ top: -5px;
+ border-radius: 50%;
+ }
+}
+
+@keyframes legs {
+ 0% {
+ left: -7px;
+ }
+
+ 50% {
+ left: -25px;
+ }
+
+ 100% {
+ left: -7px;
+ }
+}
+
+@keyframes hand-left {
+ 0% {
+ left: 1px;
+ }
+
+ 50% {
+ left: -2px;
+ }
+
+ 100% {
+ left: 1px;
+ }
+}
+
+@keyframes hand-right {
+ 0% {
+ right: 1px;
+ }
+
+ 50% {
+ right: -2px;
+ }
+
+ 100% {
+ right: 1px;
+ }
+} \ No newline at end of file
diff --git a/css/halloween.css b/css/halloween.css
index 3666d22..01ab5df 100644
--- a/css/halloween.css
+++ b/css/halloween.css
@@ -1,273 +1,275 @@
-body {
- margin: 0;
-}
-
-*,
-:after,
-:before {
- box-sizing: border-box
-}
-
-.pull-left {
- float: left
-}
-
-.pull-right {
- float: right
-}
-
-.clearfix:after,
-.clearfix:before {
- content: '';
- display: table
-}
-
-.clearfix:after {
- clear: both;
- display: block
-}
-
-.halloween .head .skull:before,
-.halloween .head .skull:after,
-.halloween .eyes .eye:before,
-.halloween .body:before,
-.halloween .body:after,
-.halloween .legs:before {
- content: '';
- position: absolute;
-}
-
-.halloween {
- bottom: 3%;
- left: 2%;
- width: 30px;
- height: 44px;
- position: fixed;
- margin-top: -22px;
- margin-left: -15px;
- animation: move 3s infinite;
-}
-
-.halloween .head {
- z-index: 1;
- width: 25px;
- height: 25px;
- background: #444;
- border-radius: 50%;
- position: relative;
-}
-
-.halloween .head .skull {
- left: 2px;
- bottom: 2px;
- width: 16px;
- height: 16px;
- color: #f9f9f9;
- border-radius: 50%;
- background: #f9f9f9;
- position: absolute;
- animation: skull 3s infinite;
-}
-
-.halloween .head .skull:before {
- top: 9px;
- width: 0;
- left: 50%;
- height: 0;
- z-index: 1;
- margin-left: -2px;
- border: 2px solid transparent;
- border-bottom: 2px solid #444;
-}
-
-.halloween .head .skull:after {
- top: 14px;
- left: 50%;
- width: 1px;
- height: 4px;
- margin-left: -1px;
- background: #f9f9f9;
- box-shadow: 2px 0, -2px 0, 4px 0, -4px 0,
- -3px -2px, -1px -2px, 1px -2px, 3px -2px
-}
-
-.halloween .eyes {
- width: inherit;
- height: inherit;
- overflow: hidden;
- border-radius: 50%;
- position: relative;
-}
-
-.halloween .eyes .eye {
- top: 5px;
- width: 5px;
- height: 5px;
- position: absolute;
- border-radius: 50%;
- background: #f8cd22;
- border: 1px solid #444;
- border-right: 2px solid #444;
-}
-
-.halloween .eyes .eye:before {
- top: -1px;
- left: -1px;
- width: 5px;
- height: 3px;
- background: #f9f9f9;
- border-radius: 5px 5px 0 0;
- animation: eyes 3s infinite;
-}
-
-.halloween .eyes .eye.eye-left {
- left: 1px;
-}
-
-.halloween .eyes .eye.eye-right {
- right: 1px;
-}
-
-.halloween .body {
- top: -3px;
- width: 24px;
- height: 17px;
- background: #444;
- position: relative;
- border-radius: 10px 10px 2px 2px;
-}
-
-.halloween .body:before,
-.halloween .body:after {
- top: 3px;
- width: 4px;
- height: 12px;
- background: #444;
-}
-
-.halloween .body:before {
- left: -1px;
- border-radius: 100% 0 0 2px;
- transform: rotate(10deg);
- animation: hand-left 3s infinite;
-}
-
-.halloween .body:after {
- right: -1px;
- border-radius: 0 100% 2px 0;
- transform: rotate(-10deg);
- animation: hand-right 3s infinite;
-}
-
-.halloween .legs {
- top: -3px;
- left: 50%;
- width: 21px;
- height: 10px;
- overflow: hidden;
- margin-left: -13px;
- position: relative;
- /* border-bottom: 1px solid rgba(0, 0, 0, .2); // This is the shadow at the bottom */
-}
-
-.halloween .legs:before {
- top: 0;
- left: -7px;
- width: 60px;
- height: 10px;
- background-image: linear-gradient(-495deg, #444 4px, transparent 0), linear-gradient(-45deg, transparent 4px, #444 0);
- background-size: 4px 8px;
- background-repeat: repeat-x;
- animation: legs 3s infinite;
-}
-
-@keyframes move {
- 0% {
- transform: translateX(0)
+@media (prefers-color-scheme: dark) {
+ body {
+ margin: 0;
}
- 50% {
- transform: translateX(15px)
+ *,
+ :after,
+ :before {
+ box-sizing: border-box
}
- 100% {
- transform: translateX(0)
+ .pull-left {
+ float: left
}
-}
-@keyframes skull {
- 0% {
- transform: translate(0, 0)
+ .pull-right {
+ float: right
}
- 25% {
- transform: translate(2px, 1px)
+ .clearfix:after,
+ .clearfix:before {
+ content: '';
+ display: table
}
- 75% {
- transform: translate(3px, -1px)
+ .clearfix:after {
+ clear: both;
+ display: block
}
- 100% {
- transform: translate(0, 0)
+ .halloween .head .skull:before,
+ .halloween .head .skull:after,
+ .halloween .eyes .eye:before,
+ .halloween .body:before,
+ .halloween .body:after,
+ .halloween .legs:before {
+ content: '';
+ position: absolute;
}
-}
-@keyframes eyes {
- 0% {
- top: -5px;
+ .halloween {
+ bottom: 3%;
+ left: 2%;
+ width: 30px;
+ height: 44px;
+ position: fixed;
+ margin-top: -22px;
+ margin-left: -15px;
+ animation: move 3s infinite;
+ }
+
+ .halloween .head {
+ z-index: 1;
+ width: 25px;
+ height: 25px;
+ background: #444;
+ border-radius: 50%;
+ position: relative;
+ }
+
+ .halloween .head .skull {
+ left: 2px;
+ bottom: 2px;
+ width: 16px;
+ height: 16px;
+ color: #f9f9f9;
border-radius: 50%;
+ background: #f9f9f9;
+ position: absolute;
+ animation: skull 3s infinite;
}
- 50% {
+ .halloween .head .skull:before {
+ top: 9px;
+ width: 0;
+ left: 50%;
+ height: 0;
+ z-index: 1;
+ margin-left: -2px;
+ border: 2px solid transparent;
+ border-bottom: 2px solid #444;
+ }
+
+ .halloween .head .skull:after {
+ top: 14px;
+ left: 50%;
+ width: 1px;
+ height: 4px;
+ margin-left: -1px;
+ background: #f9f9f9;
+ box-shadow: 2px 0, -2px 0, 4px 0, -4px 0,
+ -3px -2px, -1px -2px, 1px -2px, 3px -2px
+ }
+
+ .halloween .eyes {
+ width: inherit;
+ height: inherit;
+ overflow: hidden;
+ border-radius: 50%;
+ position: relative;
+ }
+
+ .halloween .eyes .eye {
+ top: 5px;
+ width: 5px;
+ height: 5px;
+ position: absolute;
+ border-radius: 50%;
+ background: #f8cd22;
+ border: 1px solid #444;
+ border-right: 2px solid #444;
+ }
+
+ .halloween .eyes .eye:before {
top: -1px;
+ left: -1px;
+ width: 5px;
+ height: 3px;
+ background: #f9f9f9;
border-radius: 5px 5px 0 0;
+ animation: eyes 3s infinite;
}
- 100% {
- top: -5px;
- border-radius: 50%;
+ .halloween .eyes .eye.eye-left {
+ left: 1px;
}
-}
-@keyframes legs {
- 0% {
- left: -7px;
+ .halloween .eyes .eye.eye-right {
+ right: 1px;
+ }
+
+ .halloween .body {
+ top: -3px;
+ width: 24px;
+ height: 17px;
+ background: #444;
+ position: relative;
+ border-radius: 10px 10px 2px 2px;
}
- 50% {
- left: -25px;
+ .halloween .body:before,
+ .halloween .body:after {
+ top: 3px;
+ width: 4px;
+ height: 12px;
+ background: #444;
}
- 100% {
+ .halloween .body:before {
+ left: -1px;
+ border-radius: 100% 0 0 2px;
+ transform: rotate(10deg);
+ animation: hand-left 3s infinite;
+ }
+
+ .halloween .body:after {
+ right: -1px;
+ border-radius: 0 100% 2px 0;
+ transform: rotate(-10deg);
+ animation: hand-right 3s infinite;
+ }
+
+ .halloween .legs {
+ top: -3px;
+ left: 50%;
+ width: 21px;
+ height: 10px;
+ overflow: hidden;
+ margin-left: -13px;
+ position: relative;
+ /* border-bottom: 1px solid rgba(0, 0, 0, .2); // This is the shadow at the bottom */
+ }
+
+ .halloween .legs:before {
+ top: 0;
left: -7px;
+ width: 60px;
+ height: 10px;
+ background-image: linear-gradient(-495deg, #444 4px, transparent 0), linear-gradient(-45deg, transparent 4px, #444 0);
+ background-size: 4px 8px;
+ background-repeat: repeat-x;
+ animation: legs 3s infinite;
}
-}
-@keyframes hand-left {
- 0% {
- left: 1px;
+ @keyframes move {
+ 0% {
+ transform: translateX(0)
+ }
+
+ 50% {
+ transform: translateX(15px)
+ }
+
+ 100% {
+ transform: translateX(0)
+ }
}
- 50% {
- left: -2px;
+ @keyframes skull {
+ 0% {
+ transform: translate(0, 0)
+ }
+
+ 25% {
+ transform: translate(2px, 1px)
+ }
+
+ 75% {
+ transform: translate(3px, -1px)
+ }
+
+ 100% {
+ transform: translate(0, 0)
+ }
}
- 100% {
- left: 1px;
+ @keyframes eyes {
+ 0% {
+ top: -5px;
+ border-radius: 50%;
+ }
+
+ 50% {
+ top: -1px;
+ border-radius: 5px 5px 0 0;
+ }
+
+ 100% {
+ top: -5px;
+ border-radius: 50%;
+ }
}
-}
-@keyframes hand-right {
- 0% {
- right: 1px;
+ @keyframes legs {
+ 0% {
+ left: -7px;
+ }
+
+ 50% {
+ left: -25px;
+ }
+
+ 100% {
+ left: -7px;
+ }
}
- 50% {
- right: -2px;
+ @keyframes hand-left {
+ 0% {
+ left: 1px;
+ }
+
+ 50% {
+ left: -2px;
+ }
+
+ 100% {
+ left: 1px;
+ }
}
- 100% {
- right: 1px;
+ @keyframes hand-right {
+ 0% {
+ right: 1px;
+ }
+
+ 50% {
+ right: -2px;
+ }
+
+ 100% {
+ right: 1px;
+ }
}
} \ No newline at end of file
diff --git a/css/main.css b/css/main.css
index 640962e..8d87da1 100644
--- a/css/main.css
+++ b/css/main.css
@@ -6,14 +6,22 @@ html, body {
padding: 0 0;
text-align: center;
font-size: 0;
- background-color: #fdfcf3;
+ background-color: none; /* This used to be #fdfcf3 */
}
+/* It literally took my like 15 minutes in a Discord call with Gavin and Aaron to figure out
+why this was not working. I tried like everything but this ended up solving it;
+https: //www.freecodecamp.org/forum/t/why-is-my-background-color-not-changing/251971
+So yea lol -10/04/2019 19:26*/
+
+/* // This is not really needed bc it doesn't fix the problem,
+ // just left it here for further reference.
@media (prefers-color-scheme: dark) {
- body {
- background-color: black;
+ html, body {
+ background-color: #2d2d2d !important;
}
}
+*/
body svg {
position: absolute;
@@ -176,6 +184,15 @@ body {
background: none;
}
+/* // This was supposed to be for the dark mode feature but I
+ // took it out because it looked ugly asf
+@media (prefers-color-scheme: dark) {
+ body {
+ color: #fdfcf3;
+ }
+}
+*/
+
@supports (font-variation-settings: normal) {
body {
font-family: 'Inter var', sans-serif;
diff --git a/index.html b/index.html
index a449a4e..67e1dab 100644
--- a/index.html
+++ b/index.html
@@ -12,6 +12,7 @@
<!-- CSS Links -->
<link id="stylesheet" rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" href="/css/halloween.css">
+ <!-- END CSS Links -->
<meta name="description" content="s1nical is a full stack developer.">
<meta property="og:description" content="s1nical is a full stack developer.">
<meta property="og:title" content="s1nical">
diff --git a/js/background-sparkles.js b/js/background-sparkles.js
index 50f073c..caac762 100644
--- a/js/background-sparkles.js
+++ b/js/background-sparkles.js
@@ -6,6 +6,8 @@
// SCRIPT #1 //
///////////////
+// If light mode detected, in reality, if nothing is detected lmao
+// Dark mode feature was removed lol
// Set up base pattern
var pattern = Trianglify({
height: window.innerHeight, // White: #fdfbfb, Salmon: #cc3300
@@ -17,6 +19,20 @@ var pattern = Trianglify({
cell_size: 160 // Cell size
});
+// REMOVED bc looked ugly
+// If dark mode detected
+// if (matchMedia('(prefers-color-scheme: dark)').matches) {
+// var pattern = Trianglify({
+// height: window.innerHeight, // White: #fdfbfb, Salmon: #cc3300
+// width: window.innerWidth,
+// x_colors: ['#040404', '#111111', '#111111', '#111111', '#d55454'], // Cappuccino: ['#854442', '#3c2f2f', '#fff4e6', '#be9b7b', '#4b3832']
+// y_colors: ['#f9f1f1', '#111111', '#111111', '#111111', '#f9f1f1'], // Random colour generator: "#"+((1<<24)*Math.random()|0).toString(16)
+// variance: 10, // Gives it more style
+// seed: Number.parseInt(Math.floor(Math.random() * 100)), // TODO: Live seed transitioning.
+// cell_size: 160 // Cell size
+// });
+// }
+
// // Canvas
// document.body.appendChild(pattern.canvas())