mirror of
https://github.com/symfony/ai.git
synced 2026-03-23 23:42:18 +01:00
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
18 lines
469 B
JavaScript
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);
|
|
});
|
|
}
|
|
}
|