Certainly! Below is the code for your Neocities website that fulfills your requirements. The website includes HTML, CSS, and JavaScript files.
1. index.html
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kawaii Catgirl's Home</title>
<link rel="stylesheet" href="styles.css">
<script src="scripts.js" defer></script>
</head>
<body>
<!-- Sidebar Navigation -->
<nav id="sidebar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Creative Corner</a></li>
</ul>
<div id="theme-switcher">
<button data-theme="light">Light</button>
<button data-theme="dark">Dark</button>
<button data-theme="udark">Ultra Dark</button>
</div>
<div id="volume-control">
<label for="music-volume">Music Volume</label>
<input type="range" id="music-volume" min="0" max="1" step="0.01" value="0.5">
<label for="sfx-volume">SFX Volume</label>
<input type="range" id="sfx-volume" min="0" max="1" step="0.01" value="0.5">
</div>
</nav>
<!-- Main Content -->
<main>
<!-- Introduction Section -->
<section id="introduction">
<h1>Welcome to My Kawaii Corner!</h1>
<img src="placeholder-image.jpg" alt="Catgirl Placeholder Image">
<p>Hello! I'm a catgirl who loves to create and share. Explore my world!</p>
</section>
<!-- Personal Information Section -->
<section id="personal-info">
<h2>About Me</h2>
<p>[Insert personal information here]</p>
</section>
<!-- Interests Section -->
<section id="interests">
<h2>Interests & Commissions</h2>
<ul>
<li><a href="#">Art Creation</a> (Commissionable)</li>
<li><a href="#">Music Production</a> (Commissionable)</li>
<li><a href="#">Creative Writing</a></li>
<li><a href="#">Programming</a></li>
</ul>
</section>
<!-- Latest Content Section -->
<section id="latest-content">
<h2>Latest Content</h2>
<div id="content-tabs">
<!-- Tabs for different social medias -->
</div>
<div id="content-feed">
<!-- Placeholder for latest content -->
</div>
</section>
<!-- Social Media Section -->
<section id="social-media">
<h2>Find Me On</h2>
<div class="tabs">
<button class="tab-button active" data-tab="main">Main Accounts</button>
<button class="tab-button" data-tab="other">Other Accounts</button>
</div>
<div class="tab-content active" id="main">
<!-- Main social media buttons -->
<div class="social-buttons">
<!-- Example social media button -->
<a href="#" class="social-button" data-platform="YouTube" data-username="CatgirlChannel">
<img src="icons/youtube.png" alt="YouTube">
<span>YouTube</span>
</a>
<!-- Add other main social media buttons similarly -->
</div>
</div>
<div class="tab-content" id="other">
<!-- Other social media buttons -->
</div>
</section>
<!-- Direct Contact Module -->
<section id="contact">
<h2>Contact Me</h2>
<form action="https://formspree.io/f/yourformid" method="POST">
<label for="name">Name:</label><input type="text" id="name" name="name" required>
<label for="email">Email:</label><input type="email" id="email" name="email" required>
<label for="message">Message:</label><textarea id="message" name="message" required></textarea>
<button type="submit">Send</button>
</form>
</section>
</main>
<!-- Footer -->
<footer>
<p>© 2023 Kawaii Catgirl. All rights reserved.</p>
</footer>
<!-- Background Music -->
<audio id="background-music" src="music/placeholder-music.mp3" loop autoplay></audio>
</body>
</html>
2. styles.css
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Custom Cursor */
body {
cursor: url('images/custom-cursor.png'), auto;
}
/* Background Pattern */
body {
background-image: repeating-linear-gradient(
45deg,
#f8f8f8,
#f8f8f8 10px,
#e8e8e8 10px,
#e8e8e8 20px
);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
scroll-behavior: smooth;
}
/* Sidebar Styles */
#sidebar {
position: fixed;
left: 0;
top: 0;
width: 200px;
height: 100%;
background-color: var(--sidebar-bg);
padding: 20px;
}
#sidebar ul {
list-style: none;
text-align: center;
}
#sidebar ul li {
margin-bottom: 15px;
}
#sidebar ul li a {
text-decoration: none;
color: var(--text-color);
display: block;
padding: 10px;
background-color: var(--button-bg);
border-radius: 10px;
}
#sidebar ul li a:hover {
background-color: var(--button-hover);
}
#theme-switcher, #volume-control {
margin-top: 20px;
text-align: center;
}
#theme-switcher button {
margin: 5px;
padding: 5px 10px;
}
#volume-control label {
display: block;
margin: 10px 0 5px;
}
#volume-control input[type="range"] {
width: 100%;
}
/* Main Content Styles */
main {
margin-left: 220px;
padding: 20px;
}
section {
margin-bottom: 40px;
}
h1, h2 {
color: var(--header-color);
margin-bottom: 20px;
}
p, li {
color: var(--text-color);
}
img {
max-width: 100%;
border-radius: 10px;
}
/* Social Media Buttons */
.social-buttons {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.social-button {
display: flex;
align-items: center;
padding: 10px;
background-color: var(--button-bg);
border-radius: 10px;
text-decoration: none;
color: var(--text-color);
}
.social-button img {
width: 24px;
height: 24px;
margin-right: 10px;
}
.social-button:hover {
background-color: var(--button-hover);
/* Change color to match the platform */
}
/* Tabs */
.tabs {
display: flex;
gap: 10px;
}
.tab-button {
padding: 10px;
background-color: var(--button-bg);
border: none;
cursor: pointer;
}
.tab-button.active {
background-color: var(--button-hover);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Footer */
footer {
text-align: center;
padding: 20px;
background-color: var(--footer-bg);
color: var(--text-color);
}
/* Themes */
:root {
--sidebar-bg: #ffffff;
--button-bg: #f0f0f0;
--button-hover: #e0e0e0;
--text-color: #000000;
--header-color: #ff69b4;
--footer-bg: #f8f8f8;
}
[data-theme="dark"] {
--sidebar-bg: #1e1e1e;
--button-bg: #333333;
--button-hover: #444444;
--text-color: #ffffff;
--header-color: #ff6ec7;
--footer-bg: #2e2e2e;
}
[data-theme="udark"] {
--sidebar-bg: #000000;
--button-bg: #121212;
--button-hover: #1f1f1f;
--text-color: #ffffff;
--header-color: #da70d6;
--footer-bg: #1a1a1a;
}
/* Responsive Styles */
@media (max-width: 768px) {
#sidebar {
width: 100%;
height: auto;
position: relative;
}
main {
margin-left: 0;
}
}
3. scripts.js
// Theme Switcher
const themeButtons = document.querySelectorAll('#theme-switcher button');
themeButtons.forEach(button => {
button.addEventListener('click', () => {
document.documentElement.setAttribute('data-theme', button.getAttribute('data-theme'));
});
});
// Volume Control
const musicVolume = document.getElementById('music-volume');
const sfxVolume = document.getElementById('sfx-volume');
const backgroundMusic = document.getElementById('background-music');
musicVolume.addEventListener('input', () => {
backgroundMusic.volume = musicVolume.value;
});
// Custom Cursor SFX
document.body.addEventListener('click', () => {
const clickSound = new Audio('sfx/click.mp3');
clickSound.volume = sfxVolume.value;
clickSound.play();
});
// Tab Navigation for Latest Content
const tabButtons = document.querySelectorAll('.tab-button');
const tabContents = document.querySelectorAll('.tab-content');
tabButtons.forEach(button => {
button.addEventListener('click', () => {
// Remove active class from buttons and contents
tabButtons.forEach(btn => btn.classList.remove('active'));
tabContents.forEach(content => content.classList.remove('active'));
// Add active class to the clicked button and corresponding content
button.classList.add('active');
document.getElementById(button.getAttribute('data-tab')).classList.add('active');
});
});
// Social Media Hover Effects
const socialButtons = document.querySelectorAll('.social-button');
socialButtons.forEach(button => {
button.addEventListener('mouseover', () => {
// Change background color to match platform
button.style.backgroundColor = getPlatformColor(button.getAttribute('data-platform'));
// Change text to username
button.querySelector('span').textContent = button.getAttribute('data-username');
});
button.addEventListener('mouseout', () => {
// Reset background color
button.style.backgroundColor = '';
// Reset text to platform name
button.querySelector('span').textContent = button.getAttribute('data-platform');
});
});
function getPlatformColor(platform) {
// Define colors for each platform
const platformColors = {
'YouTube': '#FF0000',
'Discord': '#7289DA',
'Reddit': '#FF4500',
'TikTok': '#010101',
'Twitter': '#1DA1F2',
'Instagram': '#C13584',
'SnapChat': '#FFFC00',
'GitHub': '#181717',
'Steam': '#171A21',
'Xbox': '#107C10',
'PlayStation Network': '#003087',
'Tumblr': '#001935',
'Spotify': '#1DB954',
'Twitch': '#9146FF',
'Facebook': '#4267B2',
'IcebergCharts': '#00AEEF',
'Minecraft': '#62B47A',
// Add other platforms as needed
};
return platformColors[platform] || '#f0f0f0';
}
Notes and Instructions
-
Replace placeholders: Swap out placeholder images (placeholder-image.jpg), music files (music/placeholder-music.mp3), and sound effects (sfx/click.mp3) with your actual files.
-
Social Media Icons: Ensure you have the icons for each social media platform in your icons/ directory. Use transparent PNG images for best results.
-
Social Media Buttons: Update the <a> tags in the social media section with your actual account links and usernames.
-
Latest Content Section: To fetch and display the latest content from social media, you'll need to use APIs provided by each platform. Note that some APIs require authentication and may not be accessible from a static site. As an alternative, consider embedding widgets or iframes provided by the platforms.
-
Direct Contact Form: The form uses Formspree as an example to handle submissions. Replace yourformid in the action URL with your actual Formspree form ID. Alternatively, you can use another form handling service compatible with static sites.
-
Custom Cursor and SFX: Place your custom cursor image in the images/ directory. Put sound effect files in the sfx/ directory. Adjust paths in the CSS and JavaScript files accordingly.
-
Volume Adjuster: The volume controls adjust the background music and sound effects volume.
-
Theme Switching: Theme buttons switch between Light, Dark, and Ultra Dark modes by changing CSS variables using the data-theme attribute on the <html> element.
-
Smooth Scrolling: Included via scroll-behavior: smooth; in the CSS.
-
Responsive Design: The CSS includes media queries to ensure the site is mobile-friendly.
-
Styling: Adjust colors, fonts, and other style elements in styles.css to match the Windows 7 aesthetic and your personal preferences.
-
Background Pattern: The diagonal striped pattern is implemented using repeating-linear-gradient.
-
License and Credits: Update the footer with the correct year and any additional information you wish to include.
Additional Customization
-
Sidebar Links: Update the href attributes in the sidebar to link to your actual pages (home.html, blog.html, creative-corner.html, etc.).
-
Interests Section Links: Link each interest to its respective page in the Creative Corner.
-
Adjusting Animations: To add smooth scrolling and other animations, consider using CSS transitions or a library like GSAP.
Final Notes
-
Hosting on Neocities: Upload all your files (index.html, styles.css, scripts.js, images, music, sfx, icons) to your Neocities site, maintaining the directory structure.
-
Testing: After uploading, test each feature to ensure everything works correctly. Check on different devices to confirm mobile responsiveness.
-
Compliance with Platform Policies: When integrating social media content and APIs, ensure compliance with each platform's terms of service.
I hope this provides a solid foundation for your catgirl-themed Neocities website! Let me know if you have any questions or need further assistance.