Enhance contact UI and email handling

Add an email template and improve contact flow: create backend/templates/email/contact_me.html and update backend/advertisement/tasks.py to use SiteConfiguration.contact_email with a fallback to brunovontor@gmail.com when sending contact form emails. Revamp frontend contact experience: ContactMeForm is now open by default, uses controlled email/message inputs, shows loading/success/error states and posts to /api/advertisement/contact-me/ via publicApi. Update ContactPage and Home to include richer contact sections (framer-motion animations, icons, social links and responsive layouts). Also add a PowerShell helper entry to .claude/settings.local.json.
This commit is contained in:
2026-06-07 23:17:10 +02:00
parent 3766b033bc
commit ad7f0fbe55
6 changed files with 385 additions and 59 deletions

View File

@@ -14,8 +14,10 @@ def send_contact_me_email_task(client_email, message_content):
"client_email": client_email,
"message_content": message_content
}
config_email = SiteConfiguration.get_solo().contact_email
recipient = config_email if config_email else "brunovontor@gmail.com"
send_email_with_context(
recipients=SiteConfiguration.get_solo().contact_email,
recipients=recipient,
subject="Poptávka z kontaktního formuláře!!!",
template_path="email/contact_me.html",
context=context,