fix
This commit is contained in:
@@ -682,7 +682,7 @@ select.form-control {
|
||||
|
||||
.contact-section {
|
||||
padding: var(--spacing-2xl) 0;
|
||||
background: var(--white);
|
||||
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
|
||||
}
|
||||
|
||||
.contact-content {
|
||||
|
||||
@@ -27,6 +27,23 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
});
|
||||
});
|
||||
|
||||
// Scroll smooth per link con anchor
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener('click', function (e) {
|
||||
const href = this.getAttribute('href');
|
||||
if (href !== '#' && href.length > 1) {
|
||||
e.preventDefault();
|
||||
const target = document.querySelector(href);
|
||||
if (target) {
|
||||
target.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
15
index.php
15
index.php
@@ -58,7 +58,12 @@ $demo_lessons = get_demo_lessons();
|
||||
<!-- Hero Section -->
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<?php echo display_flash_message(); ?>
|
||||
<?php
|
||||
// Mostra flash message solo se NON è un messaggio di contatto
|
||||
if (!isset($_GET['success']) && !isset($_GET['error'])) {
|
||||
echo display_flash_message();
|
||||
}
|
||||
?>
|
||||
<div class="hero-content">
|
||||
<h2 class="hero-title">Trasforma il tuo corpo con il Pilates</h2>
|
||||
<p class="hero-subtitle">Videolezioni professionali e sessioni live per tutti i livelli</p>
|
||||
@@ -168,6 +173,14 @@ $demo_lessons = get_demo_lessons();
|
||||
<!-- Sezione Contatti per Lezioni Live -->
|
||||
<section id="contact" class="contact-section">
|
||||
<div class="container">
|
||||
<div style="margin-bottom: var(--spacing-lg);">
|
||||
<?php
|
||||
// Mostra flash message se presente (dopo invio form contatti)
|
||||
if (isset($_GET['success']) || isset($_GET['error'])) {
|
||||
echo display_flash_message();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="contact-content">
|
||||
<div class="contact-text">
|
||||
<h2 class="section-title">Richiedi una Lezione Live</h2>
|
||||
|
||||
Reference in New Issue
Block a user