added links page

This commit is contained in:
2024-04-07 09:10:11 -07:00
parent 92b1df8423
commit a78aa4aaf8
3 changed files with 211 additions and 2 deletions
+2 -1
View File
@@ -13,7 +13,7 @@
<title>Home - ION606.com</title>
<link rel="icon" href="https://avatars.githubusercontent.com/u/58801387" type="image/jpeg">
<script src="//cdn.jsdelivr.net/github-cards/latest/widget.js"></script>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="script.js"></script>
@@ -28,6 +28,7 @@
<h1>Welcome to my Personal Website!</h1>
<p>My (user)name's ION606, feel free to looks at my stuffs</p>
<button onclick="window.location.href = 'README.html';">README</button>
<button onclick="window.location.href = 'links.html';">Links</button>
<button onclick="window.location.href = 'projects.html';">Projects</button>
</div>
</div>
+207
View File
@@ -0,0 +1,207 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ripple Effect Background</title>
<style>
.home-button {
position: absolute;
top: 20px;
left: 20px;
width: 25px !important;
height: 25px !important;
text-align: center;
border-radius: 50%;
background-color: #ffffff;
color: #000000;
font-size: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
padding: 10px !important;
}
.home-button:hover {
background-color: #e0e0e0;
transform: scale(1.1);
transition: background-color 0.3s, transform 0.3s;
}
.xxlarge {
width: 500px;
height: 500px;
left: 50%;
bottom: -250px;
animation-delay: 0s;
}
.xlarge {
width: 400px;
height: 400px;
left: 45%;
bottom: -200px;
animation-delay: -2s;
}
.large {
width: 300px;
height: 300px;
left: 40%;
bottom: -150px;
animation-delay: -4s;
}
.mediun {
width: 200px;
height: 200px;
left: 35%;
bottom: -100px;
animation-delay: -6s;
}
.small {
width: 100px;
height: 100px;
left: 30%;
bottom: -50px;
animation-delay: -8s;
}
body,
html {
height: 100%;
margin: 0;
overflow: hidden;
}
.ripple-background {
position: relative;
height: 100%;
background-color: #000;
/* Consider a dark background for contrast */
}
.circle {
position: absolute;
border-radius: 50%;
animation: ripple 15s infinite ease-in-out;
box-shadow: 0px 0px 1px 0px #fff;
opacity: 0;
}
.links-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
position: absolute;
z-index: 1;
}
.link {
background-color: #ffffffc2;
color: #000000;
text-decoration: none;
padding: 10px 20px;
margin: 5px 0;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s, transform 0.3s;
display: block;
width: max-content;
max-width: 90%;
}
.link:hover {
background-color: #e0e0e0;
/* Slightly darker background on hover */
transform: translateY(-2px);
/* Slight lift effect */
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fade-in {
animation: fadeIn 5s ease-in;
opacity: 0;
animation-fill-mode: forwards;
}
@keyframes ripple {
0% {
transform: scale(0);
opacity: 0.75;
}
100% {
transform: scale(4);
opacity: 0;
}
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
function createRipple() {
const rippleContainer = document.querySelector('.ripple-background');
const circle = document.createElement('div');
circle.classList.add('circle');
// Random size from 50 to 200px
const size = Math.random() * (200 - 50) + 50;
circle.style.width = `${size}px`;
circle.style.height = `${size}px`;
// Random position within the container
circle.style.left = `${Math.random() * (window.innerWidth - size)}px`;
circle.style.top = `${Math.random() * (window.innerHeight - size)}px`;
// Random color
const colors = ['#FF5959', '#FCA130', '#FFE74C', '#8AC926', '#1982C4', '#6A4C93']; // Rainbow colors
const color = colors[Math.floor(Math.random() * colors.length)];
circle.style.background = color;
rippleContainer.appendChild(circle);
// Remove the circle after it finishes animating to avoid DOM clutter
setTimeout(() => {
circle.remove();
}, 15000); // Matches the animation duration
}
// Create a new ripple every 2 seconds
setInterval(createRipple, 2000);
});
</script>
</head>
<body>
<div class="links-container">
<a href="https://github.com/ION606" class="link fade-in">Github</a>
<a href="https://www.twitch.tv/ion606" class="link fade-in">Twitch</a>
<a href="https://www.buymeacoffee.com/ion606" class="link fade-in">buy me a coffee</a>
<a href="https://steamcommunity.com/id/ion606/" class="link fade-in">Steam</a>
<a href="/" class="link fade-in home-button">🏠</a>
</div>
<div class="ripple-background">
<div class="circle xxlarge shade1"></div>
<div class="circle xlarge shade2"></div>
<div class="circle large shade3"></div>
<div class="circle mediun shade4"></div>
<div class="circle small shade5"></div>
</div>
</body>
</html>
+2 -1
View File
@@ -8,7 +8,8 @@ function createPageMenu() {
const links = [
{ text: 'Home', href: '/' },
{ text: 'Projects', href: 'projects.html' },
{ text: 'README', href: 'README.html' }
{ text: 'README', href: 'README.html' },
{ text: 'Links', href: 'links.html' }
];
links.forEach(link => {