The template of Midnight Nexus Records.
A modern, responsive website template featuring a cyberpunk aesthetic with interactive particle animations, glowing effects. Built with vanilla JavaScript and CSS, focusing on performance and customization. Built with the Claude 3.5 Sonnet API in about 25 minutes, including documentation.
- Interactive particle background
- Customizable settings
- Glitch and glow animations
- Customizable color schemes
- Fully responsive layout
- No dependencies required
- Open
index.htmlin your preferred editor - Replace placeholder content with your own
- Customize colors and fonts (see Customization)
- Deploy to your hosting service
The template uses CSS variables for easy color customization. Edit these in the :root section of style.css:
:root {
--primary-color: #ff00ff; /* Primary accent color */
--secondary-color: #00ffff; /* Secondary accent color */
--background-color: #0c0c1d; /* Main background */
--text-color: #fff; /* Default text color */
--gradient-start: #9333FF; /* Gradient animations start */
--gradient-end: #00ffff; /* Gradient animations end */
}The background animation can be customized in particles.js. Adjust these settings for different effects:
const SETTINGS = {
// Particle count - adjust based on screen size
NODE_COUNT: Math.min(50, Math.floor((canvasWidth * canvasHeight) / 20000)),
// Maximum distance for particle connections
MAX_DISTANCE: 200,
// Individual particle size
BASE_PARTICLE_SIZE: 2.5,
// Color range for particles
HUE_RANGE: {
start: 170, // Starting hue value
range: 60 // Amount of hue variation
},
// Overall animation speed
ANIMATION_SPEED: 0.001
};- Reduce
NODE_COUNTfor better performance on mobile devices - Decrease
MAX_DISTANCEto reduce the number of connections - Increase
ANIMATION_SPEEDfor smoother animation on powerful devices
<svg class="logo" viewBox="0 0 100 100">
<!-- Replace with your logo SVG -->
</svg><section class="bio-container">
<h2 id="about-section" class="visually-hidden">About</h2>
<p class="bio-text">Your introduction</p>
<div class="bio-signature">
<p>- Your Name</p>
</div>
</section><section class="projects-section">
<a href="project-url" class="project-card">
<h3 class="project-title">Project Name</h3>
<div class="project-description">
Project details here
</div>
</a>
</section>This work is licensed under a Creative Commons Attribution 4.0 International License.
You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, even commercially
Under the following terms:
- Attribution — Please include a link back to this repository or "Template by v1tali" text in your project. Or don't. Life's too short.
Vitali Blog