Add marketing site for makeyourown.website
Static single-page marketing site with dark theme, 3-tier pricing, LLM/agent SEO (llms.txt), and deployment setup that overlays onto the existing WebsiteBox nginx via docker-compose.override.yml without modifying any core project files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
29
website/script.js
Normal file
29
website/script.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// Mobile navigation toggle
|
||||
const navToggle = document.querySelector('.nav-toggle');
|
||||
const navLinks = document.querySelector('.nav-links');
|
||||
|
||||
if (navToggle && navLinks) {
|
||||
navToggle.addEventListener('click', () => {
|
||||
navLinks.classList.toggle('open');
|
||||
});
|
||||
|
||||
// Close mobile nav when a link is clicked
|
||||
navLinks.querySelectorAll('a').forEach(link => {
|
||||
link.addEventListener('click', () => {
|
||||
navLinks.classList.remove('open');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Smooth scroll for anchor links (fallback for browsers without CSS scroll-behavior)
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener('click', function (e) {
|
||||
const href = this.getAttribute('href');
|
||||
if (href.length <= 1) return;
|
||||
const target = document.querySelector(href);
|
||||
if (target) {
|
||||
e.preventDefault();
|
||||
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user