From ffe39e0825331e773e70783fb889e557de0f0d8d Mon Sep 17 00:00:00 2001
From: Lindwen
Date: Sat, 13 Jul 2024 09:06:02 +0200
Subject: [PATCH 1/2] format files with prettier
---
public/assets/css/styles.css | 11 +-
public/assets/js/oneko-webring.js | 18 +-
public/assets/js/oneko.js | 28 +-
public/index.html | 593 ++++++++++++++++--------------
public/old/assets/css/common.css | 107 +++---
5 files changed, 399 insertions(+), 358 deletions(-)
diff --git a/public/assets/css/styles.css b/public/assets/css/styles.css
index 714229c..0878c89 100644
--- a/public/assets/css/styles.css
+++ b/public/assets/css/styles.css
@@ -1,9 +1,8 @@
::selection {
- color: #00FF78;
+ color: #00ff78;
}
@keyframes bounce {
-
0%,
100%,
20%,
@@ -11,19 +10,19 @@
80% {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
- transform: translateY(0)
+ transform: translateY(0);
}
40% {
-webkit-transform: translateY(-30px);
-ms-transform: translateY(-30px);
- transform: translateY(-30px)
+ transform: translateY(-30px);
}
60% {
-webkit-transform: translateY(-15px);
-ms-transform: translateY(-15px);
- transform: translateY(-15px)
+ transform: translateY(-15px);
}
}
@@ -44,4 +43,4 @@ figure:hover {
cursor: grab;
animation-name: bounce;
-moz-animation-name: bounce;
-}
\ No newline at end of file
+}
diff --git a/public/assets/js/oneko-webring.js b/public/assets/js/oneko-webring.js
index 52515f5..c417137 100644
--- a/public/assets/js/oneko-webring.js
+++ b/public/assets/js/oneko-webring.js
@@ -17,10 +17,8 @@
// please use data-neko="true" on your A elements that link to another site with oneko-webring.js instead of this
// this is deprecated and will eventually be removed
- const nekoSites = [
- "localhost",
- ];
-
+ const nekoSites = ["localhost"];
+
try {
const searchParams = location.search
.replace("?", "")
@@ -154,10 +152,10 @@
nekoEl.style.top = `${nekoPosY - 16}px`;
nekoEl.style.zIndex = Number.MAX_VALUE;
- let nekoFile = "assets/img/oneko.gif"
- const curScript = document.currentScript
+ let nekoFile = "assets/img/oneko.gif";
+ const curScript = document.currentScript;
if (curScript && curScript.dataset.cat) {
- nekoFile = curScript.dataset.cat
+ nekoFile = curScript.dataset.cat;
}
nekoEl.style.backgroundImage = `url(${nekoFile})`;
@@ -182,8 +180,8 @@
lastFrameTimestamp = timestamp;
}
if (timestamp - lastFrameTimestamp > 100) {
- lastFrameTimestamp = timestamp
- frame()
+ lastFrameTimestamp = timestamp;
+ frame();
}
window.requestAnimationFrame(onAnimationFrame);
@@ -255,8 +253,6 @@
idleAnimationFrame += 1;
}
-
-
function frame() {
frameCount += 1;
const diffX = nekoPosX - mousePosX;
diff --git a/public/assets/js/oneko.js b/public/assets/js/oneko.js
index 4f5b18d..fd7c008 100644
--- a/public/assets/js/oneko.js
+++ b/public/assets/js/oneko.js
@@ -96,10 +96,10 @@
nekoEl.style.top = `${nekoPosY - 16}px`;
nekoEl.style.zIndex = Number.MAX_VALUE;
- let nekoFile = "assets/img/oneko.gif"
- const curScript = document.currentScript
+ let nekoFile = "assets/img/oneko.gif";
+ const curScript = document.currentScript;
if (curScript && curScript.dataset.cat) {
- nekoFile = curScript.dataset.cat
+ nekoFile = curScript.dataset.cat;
}
nekoEl.style.backgroundImage = `url(${nekoFile})`;
@@ -124,8 +124,8 @@
lastFrameTimestamp = timestamp;
}
if (timestamp - lastFrameTimestamp > 100) {
- lastFrameTimestamp = timestamp
- frame()
+ lastFrameTimestamp = timestamp;
+ frame();
}
window.requestAnimationFrame(onAnimationFrame);
}
@@ -164,7 +164,7 @@
}
idleAnimation =
avalibleIdleAnimations[
- Math.floor(Math.random() * avalibleIdleAnimations.length)
+ Math.floor(Math.random() * avalibleIdleAnimations.length)
];
}
@@ -205,14 +205,16 @@
const centerY = rect.top + rect.height / 2 + scrollTop;
for (let i = 0; i < 10; i++) {
- const heart = document.createElement('div');
- heart.className = 'heart';
- heart.textContent = 'β€';
+ const heart = document.createElement("div");
+ heart.className = "heart";
+ heart.textContent = "β€";
const offsetX = (Math.random() - 0.5) * 50;
const offsetY = (Math.random() - 0.5) * 50;
heart.style.left = `${centerX + offsetX - 16}px`;
heart.style.top = `${centerY + offsetY - 16}px`;
- heart.style.transform = `translate(-50%, -50%) rotate(${Math.random() * 360}deg)`;
+ heart.style.transform = `translate(-50%, -50%) rotate(${
+ Math.random() * 360
+ }deg)`;
parent.appendChild(heart);
setTimeout(() => {
@@ -221,7 +223,7 @@
}
}
- const style = document.createElement('style');
+ const style = document.createElement("style");
style.innerHTML = `
@keyframes heartBurst {
0% { transform: scale(0); opacity: 1; }
@@ -237,7 +239,7 @@
`;
document.head.appendChild(style);
- nekoEl.addEventListener('click', explodeHearts);
+ nekoEl.addEventListener("click", explodeHearts);
function frame() {
frameCount += 1;
@@ -279,4 +281,4 @@
}
init();
-})();
\ No newline at end of file
+})();
diff --git a/public/index.html b/public/index.html
index 8ce3f94..ac8802d 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,299 +1,350 @@
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+ Lindwen's Website
-
- Lindwen's Website
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
+
+
+
+
+ Lindwen
+
+ Hey there, I'm Lindwen , your
+ friendly neighborhood DevOps student!
+ If you want to contact me ,
+ feel free to reach out on
+ Discord βit'll make my day!
+
+
+
+
+
+
+
+
+ lindwen
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Lindwen
+
+
+
+
+
+
+
+ @Lindwen
+
+
+
+
+
+
+
+ contact@lindwen.fr
+
+
+
+
+
+
+
-
-
-
-
- Lindwen
-
- Hey there, I'm Lindwen , your friendly neighborhood DevOps student!
- If you want to contact me , feel free to reach out on Discord βit'll make my day!
-
-
-
-
-
+
+ Technologies
+ The different technologies I use
+
+
+
+
+
+ Git
+
+
-
+
- lindwen
-
-
+ Docker
+
+
+
+
+ HTML5
-
-
-
-
-
-
+
-
+
- Lindwen
+ CSS3
-
-
-
+
-
+
- @Lindwen
+ PHP
-
-
-
+
-
+
- contact@lindwen.fr
+ Linux
-
-
-
-
-
-
-
+
+
+
+
+ Windows
+
+
+
+
+
+ JavaScript
+
+
+
+
+
+ Golang
+
+
+
+
+
+ Python
+
+
+
+
+
+ Node.js
+
+
+
+
+
+ Kubernetes
+
+
+
+
+
+ AWS
+
+
+
+
+
+ Ansible
+
+
+
-
- Technologies
-
- The different technologies I use
-
-
-
-
-
-
- Git
-
-
-
-
-
- Docker
-
-
-
-
-
- HTML5
-
-
-
-
-
- CSS3
-
-
-
-
-
- PHP
-
-
-
-
-
- Linux
-
-
-
-
-
- Windows
-
-
-
-
-
- JavaScript
-
-
-
-
-
- Golang
-
-
-
-
-
- Python
-
-
-
-
-
- Node.js
-
-
-
-
-
- Kubernetes
-
-
-
-
-
- AWS
-
-
-
-
-
- Ansible
-
-
-
+
-
- Projects
-
- Some of my projects
-
-
-
-
-
- This project helps me easily deploy and manage self-hosted applications using Docker and Docker Compose. It
- provides ready-to-use YAML configurations, simplifying server environment setup and maintenance.
+
-
\ No newline at end of file
+
+
+
+
+
+