Sure! Below is the code for your website based on your requirements. I've provided the HTML, CSS, and JavaScript files. You'll need to upload these to your Neocities account. Remember to replace placeholder content like images and links with your actual content.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome to My Kawaii Catgirl Website!</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS Files -->
<link rel="stylesheet" href="styles.css">
<!-- JavaScript Files -->
<script src="scripts.js" defer></script>
</head>
<body>
<!-- Sidebar Navigation -->
<nav class="sidebar">
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Creative Corner</a></li>
</ul>
<!-- Theme Toggle -->
<div class="theme-toggle">
<label>
<input type="checkbox" id="theme-switch">
<span class="slider"></span>
</label>
</div>
</nav>
<!-- Main Content -->
<main>
<!-- Introduction Section -->
<section id="introduction">
<h1>Welcome to My World!</h1>
<img src="images/placeholder-catgirl.png" alt="Catgirl Placeholder">
<p>Hi! I'm [Your Name], a kawaii catgirl who loves to create and share joy!</p>
</section>
<!-- Personal Information Section -->
<section id="about-me">
<h2>About Me</h2>
<p>[Provide details about yourself here.]</p>
</section>
<!-- Interests Section -->
<section id="interests">
<h2>My Interests & Commissions</h2>
<ul>
<li>Art Creation</li>
<li>Music Production</li>
<li>Creative Writing</li>
<li>Programming (Not open for commissions)</li>
</ul>
<p>Check out my <a href="#">Creative Corner</a> for more!</p>
</section>
<!-- Latest Content Section -->
<section id="latest-content">
<h2>Latest Content</h2>
<!-- Tabs for Filtering -->
<div class="tabs">
<button class="tablink active" onclick="openTab(event, 'all')">All</button>
<button class="tablink" onclick="openTab(event, 'youtube')">YouTube</button>
<button class="tablink" onclick="openTab(event, 'twitter')">Twitter</button>
<!-- Add more buttons as needed -->
</div>
<!-- Content Containers -->
<div id="all" class="tabcontent" style="display: block;">
<p>[All latest content from all platforms.]</p>
</div>
<div id="youtube" class="tabcontent">
<p>[Latest YouTube content.]</p>
</div>
<div id="twitter" class="tabcontent">
<p>[Latest Twitter content.]</p>
</div>
<!-- Add more content divs as needed -->
</section>
<!-- Social Media Section -->
<section id="social-media">
<h2>Connect with Me</h2>
<h3>Main Accounts</h3>
<div class="social-buttons">
<!-- Example Button -->
<a href="#" class="social-button youtube" data-account="MyYouTubeChannel">
<img src="images/social-icons/youtube.png" alt="YouTube">
</a>
<!-- Add buttons for each main social media platform -->
</div>
<h3>Other Accounts</h3>
<div class="social-buttons">
<!-- Example Button -->
<a href="#" class="social-button spotify" data-account="MySpotifyProfile">
<img src="images/social-icons/spotify.png" alt="Spotify">
</a>
<!-- Add buttons for each other account -->
</div>
</section>
<!-- Contact Module -->
<section id="contact">
<h2>Contact Me</h2>
<form id="contact-form">
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Your Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Your Message:</label>
<textarea id="message" name="message" required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
</main>
<!-- Footer -->
<footer>
<p>© 2023 [Your Name]. All rights reserved.</p>
<p>Legal Information: [Include any necessary legal text here.]</p>
</footer>
<!-- Background Music -->
<audio id="background-music" src="audio/background-music.mp3" loop></audio>
<!-- Volume Adjuster -->
<div class="volume-control">
<label for="volume-slider">Volume:</label>
<input type="range" id="volume-slider" min="0" max="1" step="0.01" value="0.5">
</div>
</body>
</html>
styles.css
/* Reset Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Custom Cursor */
body {
cursor: url('images/cursor.png'), auto;
}
/* Background */
body {
background: url('images/diagonal-stripes.png') repeat;
background-color: #ffe4e1; /* Light mode: White/Pink */
transition: background-color 0.3s ease;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #333;
}
/* Light/Dark Mode */
body.light-mode {
background-color: #ffe4e1; /* Light Pink */
color: #333;
}
body.dark-mode {
background-color: #800080; /* Magenta/Purple */
color: #ddd;
}
body.ultra-dark-mode {
background-color: #000; /* Black */
color: #bbb;
}
/* Sidebar Navigation */
.sidebar {
position: fixed;
width: 200px;
height: 100%;
background-color: rgba(255, 182, 193, 0.8); /* Light Pink */
padding-top: 20px;
}
.sidebar ul {
list-style-type: none;
}
.sidebar ul li {
text-align: center;
margin: 20px 0;
}
.sidebar ul li a {
text-decoration: none;
color: inherit;
padding: 10px;
display: block;
border-radius: 10px;
}
.sidebar ul li a:hover,
.sidebar ul li a.active {
background-color: rgba(255, 255, 255, 0.5);
}
/* Main Content */
main {
margin-left: 220px;
padding: 20px;
}
/* Sections */
section {
margin-bottom: 40px;
}
section h1, section h2, section h3 {
margin-bottom: 20px;
}
/* Introduction Section */
#introduction img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin-bottom: 20px;
}
/* Tabs */
.tabs {
overflow: hidden;
}
.tabs .tablink {
background-color: #f1f1f1;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
float: left;
transition: background-color 0.3s;
}
.tabs .tablink:hover {
background-color: #ddd;
}
.tabs .tablink.active {
background-color: #ccc;
}
.tabcontent {
display: none;
padding: 20px 0;
clear: both;
}
/* Social Media Buttons */
.social-buttons {
display: flex;
flex-wrap: wrap;
}
.social-button {
margin: 10px;
width: 50px;
height: 50px;
display: block;
position: relative;
}
.social-button img {
max-width: 100%;
max-height: 100%;
transition: transform 0.3s;
}
.social-button:hover img {
transform: scale(1.1);
}
.social-button::after {
content: attr(data-account);
position: absolute;
top: -20px;
left: 0;
right: 0;
text-align: center;
font-size: 14px;
color: #000;
opacity: 0;
transition: opacity 0.3s;
}
.social-button:hover::after {
opacity: 1;
}
/* Contact Form */
#contact-form {
max-width: 600px;
}
#contact-form label {
display: block;
margin-bottom: 5px;
}
#contact-form input,
#contact-form textarea {
width: 100%;
margin-bottom: 15px;
padding: 10px;
}
#contact-form button {
padding: 10px 20px;
cursor: pointer;
}
/* Footer */
footer {
text-align: center;
padding: 20px;
background-color: rgba(255, 182, 193, 0.8); /* Light Pink */
position: fixed;
bottom: 0;
width: 100%;
}
/* Volume Control */
.volume-control {
position: fixed;
bottom: 100px;
right: 20px;
background-color: rgba(255, 182, 193, 0.8); /* Light Pink */
padding: 10px;
border-radius: 10px;
}
.volume-control input {
width: 100px;
}
/* Theme Toggle */
.theme-toggle {
position: absolute;
bottom: 20px;
left: 0;
right: 0;
text-align: center;
}
.theme-toggle label {
display: inline-block;
width: 60px;
height: 30px;
position: relative;
}
.theme-toggle input {
display: none;
}
.theme-toggle .slider {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
border-radius: 30px;
cursor: pointer;
}
.theme-toggle .slider::before {
content: '';
position: absolute;
width: 26px;
height: 26px;
left: 2px;
bottom: 2px;
background-color: #fff;
border-radius: 50%;
transition: transform 0.3s;
}
.theme-toggle input:checked + .slider {
background-color: #333;
}
.theme-toggle input:checked + .slider::before {
transform: translateX(30px);
}
/* Responsive Design */
@media (max-width: 768px) {
.sidebar {
width: 60px;
}
.sidebar ul li a {
font-size: 12px;
}
main {
margin-left: 80px;
}
.social-button {
width: 40px;
height: 40px;
}
}
scripts.js
// Smooth Scrolling for Internal Links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
if (this.hash !== "") {
e.preventDefault();
document.querySelector(this.hash).scrollIntoView({
behavior: 'smooth'
});
}
});
});
// Background Music and Volume Control
window.addEventListener('DOMContentLoaded', (event) => {
const music = document.getElementById('background-music');
music.volume = 0.5;
music.play();
const volumeSlider = document.getElementById('volume-slider');
volumeSlider.addEventListener('input', (e) => {
music.volume = e.target.value;
});
});
// Tabbed Content for Latest Content Section
function openTab(evt, tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName('tabcontent');
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = 'none';
}
tablinks = document.getElementsByClassName('tablink');
for (i = 0; i < tablinks.length; i++) {
tablinks[i].classList.remove('active');
}
document.getElementById(tabName).style.display = 'block';
evt.currentTarget.classList.add('active');
}
// Theme Toggle Logic
const themeSwitch = document.getElementById('theme-switch');
themeSwitch.addEventListener('change', () => {
if (themeSwitch.checked) {
document.body.classList.remove('light-mode');
document.body.classList.add('dark-mode');
} else {
document.body.classList.remove('dark-mode');
document.body.classList.add('light-mode');
}
});
// Contact Form Submission Handling
const contactForm = document.getElementById('contact-form');
contactForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thank you for your message!');
contactForm.reset();
});
// Social Media Button Hover Effect
const socialButtons = document.querySelectorAll('.social-button');
socialButtons.forEach(button => {
button.addEventListener('mouseenter', () => {
const accountName = button.getAttribute('data-account');
button.title = accountName;
});
});
// Custom Sound Effects (Click and Scroll)
document.addEventListener('click', () => {
const clickSound = new Audio('audio/click-sound.mp3');
clickSound.play();
});
document.addEventListener('scroll', () => {
const scrollSound = new Audio('audio/scroll-sound.mp3');
scrollSound.play();
});
Notes and Instructions
- Images and Audio Files: Replace placeholders like
images/placeholder-catgirl.png, images/diagonal-stripes.png, audio/background-music.mp3, images/cursor.png, audio/click-sound.mp3, and audio/scroll-sound.mp3 with your actual files. Ensure they are uploaded to the correct directories on Neocities.
- Social Media Icons: Place social media icons in the
images/social-icons/ directory. You can find free icons online or design your own.
- Social Media Links: Update the
href attributes of the social media buttons with your actual social media profile URLs.
- Data Account Names: Update the
data-account attributes with your actual account names for the hover effect.
- Background Music and SFX: Replace the audio file paths with your actual audio files for background music and sound effects.
- Light/Dark Mode and Ultra Dark Mode:
- The provided code switches between light and dark modes.
- To add an "Ultra Dark Mode," you can extend the JavaScript and CSS:
- Add an additional checkbox or toggle option.
- Include the
.ultra-dark-mode class on the body element as needed.
- Adjust the CSS styles for
.ultra-dark-mode.
- Latest Content Fetching:
- Fetching real-time data from social media platforms requires using their APIs, which is beyond the scope of this code.
- For now, you can manually update the latest content sections or look into integrating APIs if comfortable.
- Contact Form:
- The contact form currently triggers an alert and resets the form.
- To make it functional, you can integrate a service like Formspree or set up a backend script to handle submissions.
- Responsive Design:
- The CSS includes media queries to make the website responsive on mobile devices.
- Test your website on different screen sizes to ensure it displays correctly.
- Custom Cursor:
- Use a small image (preferably 32x32 pixels) for the custom cursor for optimal performance.
- Smooth Animations:
Additional Recommendations
- Testing:
- Before making your site live, test all links, forms, and interactive elements.
- Ensure audio files play correctly and that the volume control works.
- Performance:
- Optimize images and audio files to reduce load times.
- Consider lazy loading images if you have many on a single page.
- Accessibility:
- Add
alt attributes to all images for better accessibility.
- Ensure sufficient color contrast for text readability.
- SEO:
- Add meta descriptions and keywords to your
<head> section to improve search engine visibility.
How to Upload to Neocities
-
Create an Account (if you haven't already):
-
Upload Files:
- Use the Neocities file manager to upload
index.html, styles.css, scripts.js, and all your image and audio files.
- Maintain the directory structure as per the code (e.g., place images in an
images folder).
-
Testing:
- After uploading, visit your site to ensure everything displays and functions correctly.
- Check for any broken links or missing files.
Conclusion
This code should serve as a solid foundation for your website. Customize it with your content, images, and personal touches to make it truly yours. If you have any questions or need further assistance, feel free to ask!