|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Home??</title>
|
|
|
|
<link rel="icon" href="../static/site/favicon.png" type="image/x-icon">
|
|
|
|
<link rel="stylesheet" href="styles.css">
|
|
|
|
<link rel="stylesheet" href="../default_style.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<audio autoplay="" loop="" src="./Mi Casa Tu Casa [SWgIDXR8xR0].mp3"></audio>
|
|
|
|
<div id="main">
|
|
|
|
<div id="title">
|
|
|
|
<div>
|
|
|
|
<img src="../static/site/logo.png" id="melon">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h1>Pick something?</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="menu">
|
|
|
|
<div id="side">
|
|
|
|
<a href="./normal/">
|
|
|
|
<img src="./images/sidetop.png" alt="normal" class="normal_image">
|
|
|
|
</a>
|
|
|
|
<img src="./images/sidebottom.png" alt="normal" class="normal_image">
|
|
|
|
</div>
|
|
|
|
<div id="image-container">
|
|
|
|
<img src="./images/empty.png" id="large-image">
|
|
|
|
</div>
|
|
|
|
<div id="seeds">
|
|
|
|
<a href="./art/" class="seed" id="art"><img src="./images/seed.png"></a>
|
|
|
|
<a href="./shrine/" class="seed" id="shrine"><img src="./images/seed.png"></a>
|
|
|
|
<a href="./friends/" class="seed" id="friends"><img src="./images/seed.png"></a>
|
|
|
|
<a href="./coffee/" class="seed" id="coffee"><img src="./images/seed.png"></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
const menuItems = document.querySelectorAll('.seed');
|
|
|
|
const largeImage = document.getElementById('large-image');
|
|
|
|
const imageContainer = document.getElementById('image-container');
|
|
|
|
|
|
|
|
menuItems.forEach(item => {
|
|
|
|
item.addEventListener('mouseenter', () => {
|
|
|
|
const subfolder = item.getAttribute('id');
|
|
|
|
const imgSrc = `./images/${subfolder}.png`; // Generating image path from subfolder name
|
|
|
|
largeImage.src = imgSrc;
|
|
|
|
imageContainer.style.opacity = 1;
|
|
|
|
});
|
|
|
|
|
|
|
|
item.addEventListener('mouseleave', () => {
|
|
|
|
imageContainer.style.opacity = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|