diff --git a/src/badges/archlinux.png b/src/badges/archlinux.png new file mode 100644 index 0000000..670d69c Binary files /dev/null and b/src/badges/archlinux.png differ diff --git a/src/badges/firefox2.gif b/src/badges/firefox2.gif new file mode 100644 index 0000000..14a24df Binary files /dev/null and b/src/badges/firefox2.gif differ diff --git a/src/badges/gentoo.png b/src/badges/gentoo.png new file mode 100644 index 0000000..07ae247 Binary files /dev/null and b/src/badges/gentoo.png differ diff --git a/src/favicon.ico b/src/favicon.ico new file mode 100644 index 0000000..25a1a86 Binary files /dev/null and b/src/favicon.ico differ diff --git a/src/font/cherrybombone/CherryBombOne-Regular.woff2 b/src/font/cherrybombone/CherryBombOne-Regular.woff2 new file mode 100644 index 0000000..5f55026 Binary files /dev/null and b/src/font/cherrybombone/CherryBombOne-Regular.woff2 differ diff --git a/src/font/plex/IBMPlexMono-Bold.woff2 b/src/font/plex/IBMPlexMono-Bold.woff2 new file mode 100644 index 0000000..9821ed3 Binary files /dev/null and b/src/font/plex/IBMPlexMono-Bold.woff2 differ diff --git a/src/font/plex/IBMPlexMono-BoldItalic.woff2 b/src/font/plex/IBMPlexMono-BoldItalic.woff2 new file mode 100644 index 0000000..d033d12 Binary files /dev/null and b/src/font/plex/IBMPlexMono-BoldItalic.woff2 differ diff --git a/src/font/plex/IBMPlexMono-ExtraLight.woff2 b/src/font/plex/IBMPlexMono-ExtraLight.woff2 new file mode 100644 index 0000000..a0ccc79 Binary files /dev/null and b/src/font/plex/IBMPlexMono-ExtraLight.woff2 differ diff --git a/src/font/plex/IBMPlexMono-ExtraLightItalic.woff2 b/src/font/plex/IBMPlexMono-ExtraLightItalic.woff2 new file mode 100644 index 0000000..1d597e9 Binary files /dev/null and b/src/font/plex/IBMPlexMono-ExtraLightItalic.woff2 differ diff --git a/src/font/plex/IBMPlexMono-Italic.woff2 b/src/font/plex/IBMPlexMono-Italic.woff2 new file mode 100644 index 0000000..3ba4780 Binary files /dev/null and b/src/font/plex/IBMPlexMono-Italic.woff2 differ diff --git a/src/font/plex/IBMPlexMono-Medium.woff2 b/src/font/plex/IBMPlexMono-Medium.woff2 new file mode 100644 index 0000000..637df26 Binary files /dev/null and b/src/font/plex/IBMPlexMono-Medium.woff2 differ diff --git a/src/font/plex/IBMPlexMono-MediumItalic.woff2 b/src/font/plex/IBMPlexMono-MediumItalic.woff2 new file mode 100644 index 0000000..742e72a Binary files /dev/null and b/src/font/plex/IBMPlexMono-MediumItalic.woff2 differ diff --git a/src/font/plex/IBMPlexMono-Regular.woff2 b/src/font/plex/IBMPlexMono-Regular.woff2 new file mode 100644 index 0000000..84c87e0 Binary files /dev/null and b/src/font/plex/IBMPlexMono-Regular.woff2 differ diff --git a/src/font/plex/IBMPlexMono-SemiBold.woff2 b/src/font/plex/IBMPlexMono-SemiBold.woff2 new file mode 100644 index 0000000..5b03e0d Binary files /dev/null and b/src/font/plex/IBMPlexMono-SemiBold.woff2 differ diff --git a/src/font/plex/IBMPlexMono-SemiBoldItalic.woff2 b/src/font/plex/IBMPlexMono-SemiBoldItalic.woff2 new file mode 100644 index 0000000..9e3b69e Binary files /dev/null and b/src/font/plex/IBMPlexMono-SemiBoldItalic.woff2 differ diff --git a/src/font/plex/IBMPlexMono-Text.woff2 b/src/font/plex/IBMPlexMono-Text.woff2 new file mode 100644 index 0000000..810a4f6 Binary files /dev/null and b/src/font/plex/IBMPlexMono-Text.woff2 differ diff --git a/src/font/plex/IBMPlexMono-TextItalic.woff2 b/src/font/plex/IBMPlexMono-TextItalic.woff2 new file mode 100644 index 0000000..c531b56 Binary files /dev/null and b/src/font/plex/IBMPlexMono-TextItalic.woff2 differ diff --git a/src/font/plex/IBMPlexMono-Thin.woff2 b/src/font/plex/IBMPlexMono-Thin.woff2 new file mode 100644 index 0000000..53dd17c Binary files /dev/null and b/src/font/plex/IBMPlexMono-Thin.woff2 differ diff --git a/src/font/plex/IBMPlexMono-ThinItalic.woff2 b/src/font/plex/IBMPlexMono-ThinItalic.woff2 new file mode 100644 index 0000000..267ef06 Binary files /dev/null and b/src/font/plex/IBMPlexMono-ThinItalic.woff2 differ diff --git a/src/font/plex/license.txt b/src/font/plex/license.txt new file mode 100644 index 0000000..f72f765 --- /dev/null +++ b/src/font/plex/license.txt @@ -0,0 +1,92 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..e771854 --- /dev/null +++ b/src/index.html @@ -0,0 +1,100 @@ + + + + + Sugary's website :3 + + + + + + + + + + + + +
+ + +

Haii!~ Welcome to my lil place! :3

+
+
+
 /l、
+(゚、 。 7
+ l  ~ヽ
+    じしf_,)ノ

+ I'm just a silly catgirl named Sugary X3
+ This is my smol website ♡ + + +

Contact me

+
+

Discord: Sugaryy_#9400

+

Matrix: @sugaryy_:nova.gay

+ + +

About me

+
+ I'm a transfem catgirl from Poland!
+ I mostly do programming as a hobby :3
+ I go by she/her :3

+ Github +
+ Gitea +
+ Youtube +
+ Twitch +
+ + +

Projects

+
+ FemboyOS
+ + +

Links

+
+ + Main website +
+ + +

Cool people!

+
+ + Xwashere +
+ Chief +
+ Yukijoou +
+ Aven +
+ Ady +
+ m4kulatura +
+ Nova +
+ Snoopie +
+
+
+ + + + + + \ No newline at end of file diff --git a/src/oneko.gif b/src/oneko.gif new file mode 100644 index 0000000..a009c2c Binary files /dev/null and b/src/oneko.gif differ diff --git a/src/oneko.js b/src/oneko.js new file mode 100644 index 0000000..260c549 --- /dev/null +++ b/src/oneko.js @@ -0,0 +1,209 @@ +// oneko.js: https://github.com/adryd325/oneko.js + +(function oneko() { + const nekoEl = document.createElement("div"); + let nekoPosX = 32; + let nekoPosY = 32; + let mousePosX = 0; + let mousePosY = 0; + const isReduced = window.matchMedia(`(prefers-reduced-motion: reduce)`) === true || window.matchMedia(`(prefers-reduced-motion: reduce)`).matches === true; + if (isReduced) { + return; + } + + let frameCount = 0; + let idleTime = 0; + let idleAnimation = null; + let idleAnimationFrame = 0; + const nekoSpeed = 10; + const spriteSets = { + idle: [[-3, -3]], + alert: [[-7, -3]], + scratchSelf: [ + [-5, 0], + [-6, 0], + [-7, 0], + ], + scratchWallN: [ + [0, 0], + [0, -1], + ], + scratchWallS: [ + [-7, -1], + [-6, -2], + ], + scratchWallE: [ + [-2, -2], + [-2, -3], + ], + scratchWallW: [ + [-4, 0], + [-4, -1], + ], + tired: [[-3, -2]], + sleeping: [ + [-2, 0], + [-2, -1], + ], + N: [ + [-1, -2], + [-1, -3], + ], + NE: [ + [0, -2], + [0, -3], + ], + E: [ + [-3, 0], + [-3, -1], + ], + SE: [ + [-5, -1], + [-5, -2], + ], + S: [ + [-6, -3], + [-7, -2], + ], + SW: [ + [-5, -3], + [-6, -1], + ], + W: [ + [-4, -2], + [-4, -3], + ], + NW: [ + [-1, 0], + [-1, -1], + ], + }; + + function create() { + nekoEl.id = "oneko"; + nekoEl.style.width = "32px"; + nekoEl.style.height = "32px"; + nekoEl.style.position = "fixed"; + nekoEl.style.pointerEvents = "none"; + nekoEl.style.backgroundImage = "url('./oneko.gif')"; + nekoEl.style.imageRendering = "pixelated"; + nekoEl.style.left = `${nekoPosX - 16}px`; + nekoEl.style.top = `${nekoPosY - 16}px`; + nekoEl.style.zIndex = "999"; + + document.body.appendChild(nekoEl); + + document.onmousemove = (event) => { + mousePosX = event.clientX; + mousePosY = event.clientY; + }; + + window.onekoInterval = setInterval(frame, 100); + } + + function setSprite(name, frame) { + const sprite = spriteSets[name][frame % spriteSets[name].length]; + nekoEl.style.backgroundPosition = `${sprite[0] * 32}px ${sprite[1] * 32}px`; + } + + function resetIdleAnimation() { + idleAnimation = null; + idleAnimationFrame = 0; + } + + function idle() { + idleTime += 1; + + // every ~ 20 seconds + if ( + idleTime > 10 && + Math.floor(Math.random() * 200) == 0 && + idleAnimation == null + ) { + let avalibleIdleAnimations = ["sleeping", "scratchSelf"]; + if (nekoPosX < 32) { + avalibleIdleAnimations.push("scratchWallW"); + } + if (nekoPosY < 32) { + avalibleIdleAnimations.push("scratchWallN"); + } + if (nekoPosX > window.innerWidth - 32) { + avalibleIdleAnimations.push("scratchWallE"); + } + if (nekoPosY > window.innerHeight - 32) { + avalibleIdleAnimations.push("scratchWallS"); + } + idleAnimation = + avalibleIdleAnimations[ + Math.floor(Math.random() * avalibleIdleAnimations.length) + ]; + } + + switch (idleAnimation) { + case "sleeping": + if (idleAnimationFrame < 8) { + setSprite("tired", 0); + break; + } + setSprite("sleeping", Math.floor(idleAnimationFrame / 4)); + if (idleAnimationFrame > 192) { + resetIdleAnimation(); + } + break; + case "scratchWallN": + case "scratchWallS": + case "scratchWallE": + case "scratchWallW": + case "scratchSelf": + setSprite(idleAnimation, idleAnimationFrame); + if (idleAnimationFrame > 9) { + resetIdleAnimation(); + } + break; + default: + setSprite("idle", 0); + return; + } + idleAnimationFrame += 1; + } + + function frame() { + frameCount += 1; + const diffX = nekoPosX - mousePosX; + const diffY = nekoPosY - mousePosY; + const distance = Math.sqrt(diffX ** 2 + diffY ** 2); + + if (distance < nekoSpeed || distance < 48) { + idle(); + return; + } + + idleAnimation = null; + idleAnimationFrame = 0; + + if (idleTime > 1) { + setSprite("alert", 0); + // count down after being alerted before moving + idleTime = Math.min(idleTime, 7); + idleTime -= 1; + return; + } + + direction = diffY / distance > 0.5 ? "N" : ""; + direction += diffY / distance < -0.5 ? "S" : ""; + direction += diffX / distance > 0.5 ? "W" : ""; + direction += diffX / distance < -0.5 ? "E" : ""; + setSprite(direction, frameCount); + + nekoPosX -= (diffX / distance) * nekoSpeed; + nekoPosY -= (diffY / distance) * nekoSpeed; + + nekoPosX = Math.min(Math.max(16, nekoPosX), window.innerWidth - 16); + nekoPosY = Math.min(Math.max(16, nekoPosY), window.innerHeight - 16); + + nekoEl.style.left = `${nekoPosX - 16}px`; + nekoEl.style.top = `${nekoPosY - 16}px`; + } + + create(); +})(); diff --git a/src/pfp.png b/src/pfp.png new file mode 100644 index 0000000..e9a0b31 Binary files /dev/null and b/src/pfp.png differ diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..a1f4984 --- /dev/null +++ b/src/style.css @@ -0,0 +1,73 @@ +body { + display: flex; + flex-direction: column; + align-items: center; + border: 1.5em solid #11111b; + color: #cdd6f4; + background-color: #1e1e2e; + text-align: center; + font-family: 'IBM Plex Mono', monospace; +} + +a:link { + color: #89b4fa +} + +a:visited { + color: #89b4fa +} + +badges { + text-align: left; +} + +footer { + text-align: center; + font-family: 'IBM Plex Mono', monospace; + color: #f5c2e7; +} + +h1 { + font-family: 'Cherry Bomb One', monospace; + color: #f5c2e7; +} + +h2 { + font-family: 'Cherry Bomb One', monospace; + color: #f5c2e7; +} + +pre { + color: #f5c2e7; + font-size: 15px; +} + +@font-face { + font-family: 'IBM Plex Mono'; + src: url("font/plex/IBMPlexMono-Regular.woff2") format("woff2"); +} + +@font-face { + font-family: 'IBM Plex Mono'; + src: url("font/plex/IBMPlexMono-Bold.woff2") format("woff2"); + font-weight: bold; +} + +@font-face { + font-family: 'IBM Plex Mono'; + src: url("font/plex/IBMPlexMono-Italic.woff2") format("woff2"); + font-weight: normal; + font-style: italic; +} + +@font-face { + font-family: 'IBM Plex Mono'; + src: url("font/plex/IBMPlexMono-BoldItalic.woff2") format("woff2"); + font-weight: bold; + font-style: italic; +} + +@font-face { + font-family: 'Cherry Bomb One'; + src: url("font/cherrybombone/CherryBombOne-Regular.woff2") format("woff2"); +} \ No newline at end of file diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..3c28d5c --- /dev/null +++ b/update.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# A script for updating the website +# Made by sugary :3 +# Adapted by yukijoou + +set -e + +WEBSITE_NAME="sugary.kemonomimi.gay" +WEBSITES_PATH="$HOME/www" + +BACKUP_DIR=$(mktemp -d) + +cp -rf "$WEBSITES_PATH" $BACKUP_DIR/$WEBSITE_NAME.bak +echo "Made backup at $BACKUP_DIR" + +rm -rf "$WEBSITES_PATH" +mkdir -p "$WEBSITES_PATH" +cp -rf src/* "$WEBSITES_PATH" + +echo "Installed $WEBSITE_NAME at $WEBSITES_PATH" +