Certainly! Below is a complete example of how you can create your Neocities website with the specified requirements. The website uses HTML, CSS, and JavaScript to implement all the features, including the old internet aesthetic, catgirl theme, background music, sound effects, volume adjusters, theme modes, mobile support, and more.
Overview
- HTML (
index.html): Structures the content and elements of the website.
- CSS (
styles.css): Styles the website with the old internet aesthetic, themes, and responsive design.
- JavaScript (
script.js): Handles interactive features such as background music, sound effects, volume control, theme switching, and loading recent content.
1. index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Catgirl's Paradise</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Link to CSS -->
<link rel="stylesheet" href="styles.css">
<!-- JavaScript for functionalities -->
<script src="script.js" defer></script>
</head>
<body>
<!-- Sidebar -->
<aside id="sidebar">
<nav>
<ul>
<li><a href="index.html">🏠 Home</a></li>
<li><a href="blog.html">📝 Blog</a></li>
<li><a href="creative.html">🎨 Creative Corner</a></li>
</ul>
</nav>
</aside>
<!-- Main Content -->
<div id="main-content">
<!-- Introduction Tab -->
<section id="introduction">
<h1>Welcome to Catgirl's Paradise! 😺</h1>
<img src="images/catgirl.png" alt="Catgirl Image" class="center-image">
<p>Hello! I'm a catgirl who loves to share her world with you. Explore my interests, recent creations, and connect with me through social media!</p>
</section>
<!-- Personal Information Tab -->
<section id="personal-info">
<h2>About Me</h2>
<p>I'm a whimsical catgirl with a passion for art, music, and all things kawaii! When I'm not napping in sunbeams, I'm creating content to share with the world.</p>
</section>
<!-- Interests Tab -->
<section id="interests">
<h2>My Interests</h2>
<ul>
<li><a href="art.html">Digital Art 🖌️</a></li>
<li><a href="music.html">Music 🎶</a></li>
<li><a href="gaming.html">Gaming 🎮</a></li>
<!-- Add more interests as needed -->
</ul>
</section>
<!-- Social Media Tab -->
<section id="social-media">
<h2>Connect with Me</h2>
<div id="main-accounts">
<h3>Main Accounts</h3>
<a href="https://twitter.com/yourprofile" target="_blank">Twitter 🐦</a>
<a href="https://youtube.com/yourchannel" target="_blank">YouTube ▶️</a>
<!-- Add more main accounts -->
</div>
<div id="other-accounts">
<h3>Other Accounts</h3>
<a href="https://tiktok.com/@yourprofile" target="_blank">TikTok 🎵</a>
<!-- Add more other accounts -->
</div>
</section>
<!-- Recent Content Tab -->
<section id="recent-content">
<h2>Recent Content</h2>
<div id="recent-tweets">
<h3>Latest Tweets</h3>
<!-- Recent tweets will load here -->
</div>
<div id="recent-videos">
<h3>Latest YouTube Videos</h3>
<!-- Recent videos will load here -->
</div>
<div id="recent-tiktoks">
<h3>Latest TikToks</h3>
<!-- Recent TikTok posts will load here -->
</div>
</section>
<!-- Email Contact Module -->
<section id="contact">
<h2>Contact Me</h2>
<form action="https://formspree.io/f/yourformid" method="POST">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="_replyto" required><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" required></textarea><br>
<input type="submit" value="Send">
</form>
</section>
<!-- Information and Copyright -->
<footer>
<p>© 2023 Catgirl's Paradise. All rights reserved.</p>
<p>Website designed by Catgirl.</p>
</footer>
</div>
<!-- Background Music Control -->
<div id="music-controls">
<button id="play-pause">Play/Pause Music 🎵</button>
<label for="music-volume">Music Volume:</label>
<input type="range" id="music-volume" min="0" max="1" step="0.01" value="0.5">
</div>
<!-- SFX Volume Control -->
<div id="sfx-controls">
<label for="sfx-volume">SFX Volume:</label>
<input type="range" id="sfx-volume" min="0" max="1" step="0.01" value="0.5">
</div>
<!-- Theme Selector -->
<div id="theme-selector">
<button data-theme="light">🌸 Light Mode</button>
<button data-theme="dark">🌌 Dark Mode</button>
<button data-theme="ultra-dark">🖤 Ultra Dark Mode</button>
</div>
<!-- Background Music -->
<audio id="background-music" loop>
<source src="music/background.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
2. styles.css
/* General Styles */
body {
font-family: "Comic Sans MS", cursive, sans-serif;
margin: 0;
background-image: url('images/diagonal_stripes.png');
background-repeat: repeat;
transition: background-color 0.5s, color 0.5s;
cursor: url('images/cursor.cur'), auto;
}
/* Old Internet Aesthetic */
a {
color: blue;
text-decoration: underline;
}
a:hover {
color: red;
}
.center-image {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
/* Sidebar */
#sidebar {
position: fixed;
top: 0;
left: 0;
width: 180px;
height: 100%;
background-color: #fff0f5;
border-right: 2px solid #d3d3d3;
padding-top: 20px;
}
#sidebar nav ul {
list-style-type: none;
padding: 0;
}
#sidebar nav ul li {
margin: 15px 0;
text-align: center;
}
#sidebar nav ul li a {
text-decoration: none;
color: #000;
font-weight: bold;
}
#sidebar nav ul li a:hover {
color: #ff69b4;
}
/* Main Content */
#main-content {
margin-left: 200px;
padding: 20px;
}
section {
margin-bottom: 40px;
}
h1, h2, h3 {
font-family: "Comic Sans MS", cursive, sans-serif;
color: #ff1493;
text-shadow: 1px 1px #ffa6c9;
}
/* Footer */
footer {
text-align: center;
font-size: 12px;
color: #888;
border-top: 1px dotted #ffb6c1;
padding: 10px;
}
/* Background pattern */
body {
background-image: url('images/diagonal_stripes.png');
}
/* Theme Styles */
body.light-mode {
background-color: #ffe6f2;
color: #000;
}
body.dark-mode {
background-color: #e6ccff;
color: #fff;
}
body.ultra-dark-mode {
background-color: #000033;
color: #88aaff;
}
body.light-mode #sidebar {
background-color: #fff0f5;
}
body.dark-mode #sidebar {
background-color: #d1c4e9;
}
body.ultra-dark-mode #sidebar {
background-color: #000022;
}
/* Controls */
#music-controls, #sfx-controls, #theme-selector {
position: fixed;
right: 10px;
background-color: #fff0f5;
border: 1px solid #ffb6c1;
padding: 10px;
border-radius: 10px;
}
#music-controls {
bottom: 130px;
}
#sfx-controls {
bottom: 80px;
}
#theme-selector {
bottom: 20px;
}
button {
margin: 5px;
padding: 10px;
background-color: #ffb6c1;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
button:hover {
background-color: #ff69b4;
}
/* Form Styles */
form {
background-color: #fffaf0;
padding: 20px;
border: 1px solid #ffdab9;
border-radius: 10px;
}
input[type="text"], input[type="email"], textarea {
width: 100%;
padding: 5px;
margin: 5px 0;
border: 1px solid #ffc0cb;
border-radius: 5px;
}
input[type="submit"] {
background-color: #ffb6c1;
border: none;
padding: 10px 20px;
cursor: pointer;
font-weight: bold;
border-radius: 5px;
}
input[type="submit"]:hover {
background-color: #ff69b4;
}
/* Mobile Support */
@media (max-width: 768px) {
#sidebar {
position: relative;
width: 100%;
height: auto;
border-right: none;
border-bottom: 2px solid #d3d3d3;
}
#main-content {
margin-left: 0;
}
#music-controls, #sfx-controls, #theme-selector {
position: static;
margin: 10px 0;
}
}
3. script.js
// Background Music Controls
const backgroundMusic = document.getElementById('background-music');
const playPauseButton = document.getElementById('play-pause');
const musicVolumeControl = document.getElementById('music-volume');
playPauseButton.addEventListener('click', () => {
if (backgroundMusic.paused) {
backgroundMusic.play();
playPauseButton.textContent = 'Pause Music ⏸️';
} else {
backgroundMusic.pause();
playPauseButton.textContent = 'Play Music ▶️';
}
});
musicVolumeControl.addEventListener('input', (e) => {
backgroundMusic.volume = e.target.value;
});
// Sound Effects Volume Control
const sfxVolumeControl = document.getElementById('sfx-volume');
let sfxVolume = sfxVolumeControl.value;
sfxVolumeControl.addEventListener('input', (e) => {
sfxVolume = e.target.value;
});
// Sound effect for clicking
document.querySelectorAll('a, button').forEach(element => {
element.addEventListener('click', playClickSound);
});
function playClickSound() {
const clickSound = new Audio('sounds/click.mp3');
clickSound.volume = sfxVolume;
clickSound.play();
}
// Theme Selector
const themeButtons = document.querySelectorAll('#theme-selector button');
themeButtons.forEach(button => {
button.addEventListener('click', () => {
const theme = button.dataset.theme;
document.body.classList.remove('light-mode', 'dark-mode', 'ultra-dark-mode');
if (theme === 'light') {
document.body.classList.add('light-mode');
} else if (theme === 'dark') {
document.body.classList.add('dark-mode');
} else if (theme === 'ultra-dark') {
document.body.classList.add('ultra-dark-mode');
}
});
});
// Fetch Recent Content from APIs
// Note: For security reasons, API keys should not be exposed in client-side code.
// Consider using serverless functions or backend services to fetch and display recent content securely.
function fetchRecentTweets() {
// Placeholder content
document.getElementById('recent-tweets').innerHTML = '<p>Recent tweets will be displayed here.</p>';
}
function fetchRecentYouTubeVideos() {
// Placeholder content
document.getElementById('recent-videos').innerHTML = '<p>Recent YouTube videos will be displayed here.</p>';
}
function fetchRecentTikToks() {
// Placeholder content
document.getElementById('recent-tiktoks').innerHTML = '<p>Recent TikToks will be displayed here.</p>';
}
// Initialize
fetchRecentTweets();
fetchRecentYouTubeVideos();
fetchRecentTikToks();
4. Assets
-
Images:
images/catgirl.png: Your catgirl image for the introduction.
images/diagonal_stripes.png: A subtle diagonal striped pattern for the background.
images/cursor.cur: A custom cursor image (optional).
-
Sounds:
music/background.mp3: Your background music file.
sounds/click.mp3: Sound effect for button and link clicks.
Additional Notes
Hosting on Neocities
- Upload all your files (
index.html, styles.css, script.js, images, sounds) to your Neocities site's root directory or appropriate folders.
- Neocities supports HTML, CSS, JavaScript, and hosting media files.
- Remember to keep your file paths correct relative to your
index.html.
Final Thoughts
- Replace placeholder content with your actual information, images, links, and media.
- Regularly update your website to keep content fresh and engaging.
- Enjoy expressing yourself and sharing your catgirl-themed paradise with the world!
Let me know if you need further assistance or any adjustments to the code. Happy coding!