diff --git a/assets/scss/thevoid.scss b/assets/scss/thevoid.scss new file mode 100644 index 0000000..1e2173e --- /dev/null +++ b/assets/scss/thevoid.scss @@ -0,0 +1,429 @@ +@import "variables.scss"; + +body { + background-color: #1c1e26; + font-family: $font-code; +} + +h1, h2, h3, h4, h5, h6 { + text-align: left; + font-family: $font-code; +} + +h1::after { + content: "(writing)"; + font-size: 1rem; + margin-left: 0.5em; + position: relative; + bottom: -0.5em; + color: $primary-color; +} + +nav .container { + justify-content: flex-start; + + a { + padding-left: 0; + margin-right: 1em; + } +} + +.header-divider { + visibility: hidden; +} + +hr { + height: auto; + border: none; + + &::after { + content: "* * *"; + color: $primary-color; + font-size: 2rem; + display: block; + text-align: center; + } +} + +/* Code for the CSS glitch effect. Originally from: https://codepen.io/mattgrosswork/pen/VwprebG */ + +.glitch { + position: relative; + + span { + animation: paths 5s step-end infinite; + font-weight: bold; + } + + &::before, &::after { + content: attr(data-text); + position: absolute; + width: 110%; + z-index: -1; + } + + &::before { + top: 10px; + left: 15px; + color: #e0287d; + + animation: paths 5s step-end infinite, opacity 5s step-end infinite, + font 8s step-end infinite, movement 10s step-end infinite; + } + + &::after { + top: 5px; + left: -10px; + color: #1bc7fb; + + animation: paths 5s step-end infinite, opacity 5s step-end infinite, + font 7s step-end infinite, movement 8s step-end infinite; + } +} + +@keyframes paths { + 0% { + clip-path: polygon( + 0% 43%, + 83% 43%, + 83% 22%, + 23% 22%, + 23% 24%, + 91% 24%, + 91% 26%, + 18% 26%, + 18% 83%, + 29% 83%, + 29% 17%, + 41% 17%, + 41% 39%, + 18% 39%, + 18% 82%, + 54% 82%, + 54% 88%, + 19% 88%, + 19% 4%, + 39% 4%, + 39% 14%, + 76% 14%, + 76% 52%, + 23% 52%, + 23% 35%, + 19% 35%, + 19% 8%, + 36% 8%, + 36% 31%, + 73% 31%, + 73% 16%, + 1% 16%, + 1% 56%, + 50% 56%, + 50% 8% + ); + } + + 5% { + clip-path: polygon( + 0% 29%, + 44% 29%, + 44% 83%, + 94% 83%, + 94% 56%, + 11% 56%, + 11% 64%, + 94% 64%, + 94% 70%, + 88% 70%, + 88% 32%, + 18% 32%, + 18% 96%, + 10% 96%, + 10% 62%, + 9% 62%, + 9% 84%, + 68% 84%, + 68% 50%, + 52% 50%, + 52% 55%, + 35% 55%, + 35% 87%, + 25% 87%, + 25% 39%, + 15% 39%, + 15% 88%, + 52% 88% + ); + } + + 30% { + clip-path: polygon( + 0% 53%, + 93% 53%, + 93% 62%, + 68% 62%, + 68% 37%, + 97% 37%, + 97% 89%, + 13% 89%, + 13% 45%, + 51% 45%, + 51% 88%, + 17% 88%, + 17% 54%, + 81% 54%, + 81% 75%, + 79% 75%, + 79% 76%, + 38% 76%, + 38% 28%, + 61% 28%, + 61% 12%, + 55% 12%, + 55% 62%, + 68% 62%, + 68% 51%, + 0% 51%, + 0% 92%, + 63% 92%, + 63% 4%, + 65% 4% + ); + } + + 45% { + clip-path: polygon( + 0% 33%, + 2% 33%, + 2% 69%, + 58% 69%, + 58% 94%, + 55% 94%, + 55% 25%, + 33% 25%, + 33% 85%, + 16% 85%, + 16% 19%, + 5% 19%, + 5% 20%, + 79% 20%, + 79% 96%, + 93% 96%, + 93% 50%, + 5% 50%, + 5% 74%, + 55% 74%, + 55% 57%, + 96% 57%, + 96% 59%, + 87% 59%, + 87% 65%, + 82% 65%, + 82% 39%, + 63% 39%, + 63% 92%, + 4% 92%, + 4% 36%, + 24% 36%, + 24% 70%, + 1% 70%, + 1% 43%, + 15% 43%, + 15% 28%, + 23% 28%, + 23% 71%, + 90% 71%, + 90% 86%, + 97% 86%, + 97% 1%, + 60% 1%, + 60% 67%, + 71% 67%, + 71% 91%, + 17% 91%, + 17% 14%, + 39% 14%, + 39% 30%, + 58% 30%, + 58% 11%, + 52% 11%, + 52% 83%, + 68% 83% + ); + } + + 76% { + clip-path: polygon( + 0% 26%, + 15% 26%, + 15% 73%, + 72% 73%, + 72% 70%, + 77% 70%, + 77% 75%, + 8% 75%, + 8% 42%, + 4% 42%, + 4% 61%, + 17% 61%, + 17% 12%, + 26% 12%, + 26% 63%, + 73% 63%, + 73% 43%, + 90% 43%, + 90% 67%, + 50% 67%, + 50% 41%, + 42% 41%, + 42% 46%, + 50% 46%, + 50% 84%, + 96% 84%, + 96% 78%, + 49% 78%, + 49% 25%, + 63% 25%, + 63% 14% + ); + } + + 90% { + clip-path: polygon( + 0% 41%, + 13% 41%, + 13% 6%, + 87% 6%, + 87% 93%, + 10% 93%, + 10% 13%, + 89% 13%, + 89% 6%, + 3% 6%, + 3% 8%, + 16% 8%, + 16% 79%, + 0% 79%, + 0% 99%, + 92% 99%, + 92% 90%, + 5% 90%, + 5% 60%, + 0% 60%, + 0% 48%, + 89% 48%, + 89% 13%, + 80% 13%, + 80% 43%, + 95% 43%, + 95% 19%, + 80% 19%, + 80% 85%, + 38% 85%, + 38% 62% + ); + } + + 1%, + 7%, + 33%, + 47%, + 78%, + 93% { + clip-path: none; + } +} + +@keyframes movement { + 0% { + top: 0px; + left: -20px; + } + + 15% { + top: 10px; + left: 10px; + } + + 60% { + top: 5px; + left: -10px; + } + + 75% { + top: -5px; + left: 20px; + } + + 100% { + top: 10px; + left: 5px; + } +} + +@keyframes opacity { + 0% { + opacity: 0.1; + } + + 5% { + opacity: 0.7; + } + + 30% { + opacity: 0.4; + } + + 45% { + opacity: 0.6; + } + + 76% { + opacity: 0.4; + } + + 90% { + opacity: 0.8; + } + + 1%, + 7%, + 33%, + 47%, + 78%, + 93% { + opacity: 0; + } +} + + +@keyframes font { + 0% { + font-weight: 100; + color: #e0287d; + filter: blur(3px); + } + + 20% { + font-weight: 500; + color: #fff; + filter: blur(0); + } + + 50% { + font-weight: 300; + color: #1bc7fb; + filter: blur(2px); + } + + 60% { + font-weight: 700; + color: #fff; + filter: blur(0); + } + + 90% { + font-weight: 500; + color: #e0287d; + filter: blur(6px); + } +} diff --git a/content/writing/thevoid.md b/content/writing/thevoid.md new file mode 100644 index 0000000..00a9c87 --- /dev/null +++ b/content/writing/thevoid.md @@ -0,0 +1,54 @@ +--- +title: "Untitled Short Story" +date: 2024-08-01T20:31:18-07:00 +draft: true +type: thevoid +--- + +The {{< thevoid "Everpresent Void" >}} was first discovered at a children's birthday party. + +Among the laughter, shouting, and alluring warbling of an arcade, a party was preparing to take their seats at a well-worn table. The food was primarily french fries, mediocre cheese pizza, and hamburgers; the sort of diet that would be frowned upon at home, and as a result was now highly coveted. The main event, however, turned out to be the self-serve soda machine. It provided unlimited amounts of sugary beverages at the slightest provocation, which was evidenced by the sticky layer of dried drinks that covered the table. + +It was an unusual sight: such machines were still somewhat rare in those days. Soon, the children were drunk on Coca-Cola and power. Cups were filled, emptied, spilled, dropped on the floor, and used as musical instruments all while the group crowded around the soda dispenser. The birthday girl, displaying the same ingenuity that usually let her command the attention of her peers, soon found a new dimension along which the machine could be abused. One cup needed not contain a single drink. + +This new discovery reignited the drinking frenzy. Sensible combinations soon gave way to outrageous mixes. Drinks were paired up, tripled, quadrupled. Soon, everyone was rushing to mix every flavor together, and stories were told of a chemical reaction that would occur when they were combined with precise proportions. No such reaction came. + +True to their age, the children were not satisfied with this conclusion. They continued their search for the missing ingredient. Having exhausted the products of the soda machine, they had to broaden their horizons. Ketchup and mustard were the first additions to their repertoire. The boys made shows of tasting and being revolted by their mustard-root-cola, while the girls squealed with disapproval and laughter. Having still failed to perform their act of alchemy, the kids braved yet further frontiers, dropping leftover pieces of cheese and torn fragments of napkins into their cup-cauldrons. + +Then, it worked. + +When one of the children looked back at his cup, having been distracted by another's exaggerated gagging, he found it to contain a uniformily black fluid. This intrigued the boy; he went to prod it with his fork, but it never reached the side of the cup. Startled, he dropped the utensil, and watched it sink out of sight. This too was intriguing: the fork was noticeably longer than the container. + +The others soon crowded around him to examine what was later understood to be the first instance of the {{< thevoid "Everpresent Void" >}}. They dropped straws, arcade tickets, cheap toys (purchased with arcade tickets), and coins into the cup, all of which disappeared without a sound. The boy found himself to be the new center of attention, and took great pleasure in recounting his latest recipe. Soon, the {{< thevoid "Void" >}} was replicated in the cups of everyone in the party. + +--- + +During the first week after that incident, teachers and janitors had a particularly difficult time. Various quantities of the {{< thevoid "Void" >}} were smuggled into schools. When the staff caught on to peculiarly black water bottles, smugglers switched to more creative techniques involving Ziploc bags and photographic film tubes. Like crystals around an impurity, crowded islands formed at lunch tables with {{< thevoid "Void" >}} at their centers. The featureless and endless substance drew all attention away from civil wars, derivatives, and Steinbeck novels. + +Only, the {{< thevoid "Void" >}} was not entirely featureless and endless. As kids spent entire lunch breaks gazing into the darkness of the fluid, some thought they saw something. At first, the thought was explained away; anything starts to appear odd after you’ve looked at it for too long. Yet as more took on the arduous task of sitting perfectly still and staring into space, it became clear that this was no mere trick of the mind. + +With time, a light show emerged from the emptiness of the {{< thevoid "Void" >}}. It was not unlike pressing down on one’s eyes: colorful particles swirled in the darkness forming spirals and fractals. These would gradually change colors, appearing at times red-and-beige, at times blue-and-green, and everything in-between. + +The display was polarizing. Swaths of children, though initially enthralled by the mysterious properties of the {{< thevoid "Void" >}}, were not sufficiently re-captured by some flashing colors. In the latter parts of the week, they would leave lunch halls early to study, practice, or socialize. There were, they thought, better, more normal things to do. A minority, however, only grew more obsessed with their philosopher's stones. + + + + +--- + +{{< todo >}} +Unused text below here. +{{< /todo >}} + + + + + + + + + + +Another property of the {{< thevoid "Void" >}} was discovered shortly thereafter, when a particularly brave adventurer attempted to get a closer look at the patterns by dipping his head in an entire bowl of the stuff. Almost immediately, he recoiled, shouting. Just above his eyebrow were four small wounds, arranged in a neat line. They had been left by the fork from the arcade. + + diff --git a/layouts/shortcodes/thevoid.html b/layouts/shortcodes/thevoid.html new file mode 100644 index 0000000..98e51da --- /dev/null +++ b/layouts/shortcodes/thevoid.html @@ -0,0 +1,2 @@ +{{ .Get 0 }} +{{- /* Remove trailing white space */ -}} diff --git a/layouts/thevoid/baseof.html b/layouts/thevoid/baseof.html new file mode 100644 index 0000000..c738e57 --- /dev/null +++ b/layouts/thevoid/baseof.html @@ -0,0 +1,15 @@ +{{- /* Note: changing the baseof template because the title, tags, etc. of a regular post are still valid. */ -}} + + + {{- partial "head.html" . -}} + + {{ $voidcss := resources.Get "scss/thevoid.scss" | resources.ToCSS | resources.Minify }} + + {{- partial "header.html" . -}} +

+
+ {{- block "main" . }}{{- end }} +
+ {{- block "after" . }}{{- end }} + +