Files
archived-ai/ai.symfony.com/assets/controllers/feature_tabs_controller.js
Christopher Hertel 0d492e3362 Redesign ai.symfony.com landing page
Overhaul the landing page with a modern, section-based layout:

- Hero slider with 3 rotating slides (Agent, Symfony, MCP) and progress bar
- Component Architecture section with layered SVG diagram
- Features section with 10 tabbed code examples
- Third-party integration bridges logo grid
- Demos section with setup steps and demo cards
- MCP SDK and Symfony Mate sections
- Sticky navbar with glassmorphism effect and Bootstrap tooltips
- Redesigned "Get Involved & Get Support" CTA section
- Full light/dark theme support with CSS variables
- Stimulus controllers for hero slider, feature tabs, and clipboard
- AOS scroll animations
- Subtle gradient backgrounds for secondary sections
2026-03-23 12:25:03 +01:00

18 lines
469 B
JavaScript

import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
static targets = ['tab', 'panel'];
switch(event) {
const index = parseInt(event.currentTarget.dataset.index, 10);
this.tabTargets.forEach((tab, i) => {
tab.classList.toggle('active', i === index);
});
this.panelTargets.forEach((panel, i) => {
panel.classList.toggle('active', i === index);
});
}
}