redesign
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
'use client';
|
||||
|
||||
import { CheckCircle, Mail, MapPin, Send } from 'lucide-react';
|
||||
import { CheckCircle, Mail, MapPin, Send, ArrowRight } from 'lucide-react';
|
||||
import React, { useState } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
const fadeInUp = {
|
||||
initial: { opacity: 0, y: 20 },
|
||||
animate: { opacity: 1, y: 0 },
|
||||
transition: { duration: 0.6, ease: [0.22, 1, 0.36, 1] }
|
||||
};
|
||||
|
||||
export default function Contact() {
|
||||
const [submitted, setSubmitted] = useState(false);
|
||||
@@ -34,153 +41,155 @@ export default function Contact() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="bg-white">
|
||||
<section
|
||||
className="relative min-h-[40vh] md:min-h-[50vh] flex items-center overflow-hidden py-6 md:py-12"
|
||||
style={{
|
||||
background: 'linear-gradient(to right, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.7) 100%), url("/media/laying/iStock-1282259999.jpg")',
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
}}
|
||||
>
|
||||
<div className="container mx-auto px-4 relative z-10">
|
||||
<div className="max-w-[700px]">
|
||||
<span className="inline-block text-accent-green text-xs font-bold uppercase tracking-[0.15em] mb-3">Kontakt</span>
|
||||
<h1 className="text-primary text-4xl md:text-5xl font-extrabold mb-4 tracking-tight">
|
||||
Kontakt
|
||||
<div className="overflow-hidden">
|
||||
{/* Hero Section */}
|
||||
<section className="relative min-h-[40vh] flex items-center pt-32 pb-20">
|
||||
<div className="absolute inset-0 z-0">
|
||||
<div
|
||||
className="absolute inset-0 bg-cover bg-center"
|
||||
style={{ backgroundImage: 'url("/media/laying/iStock-1282259999.jpg")' }}
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-r from-white via-white/95 to-white/40" />
|
||||
</div>
|
||||
|
||||
<div className="container-custom relative z-10">
|
||||
<motion.div
|
||||
initial="initial"
|
||||
animate="animate"
|
||||
variants={fadeInUp}
|
||||
className="max-w-3xl"
|
||||
>
|
||||
<span className="text-accent font-bold uppercase tracking-widest text-sm mb-4 block">Kontakt</span>
|
||||
<h1 className="text-5xl md:text-6xl font-extrabold text-primary mb-8 leading-tight">
|
||||
Lassen Sie uns <span className="text-accent">sprechen</span>
|
||||
</h1>
|
||||
<p className="text-text-secondary text-lg md:text-xl leading-relaxed max-w-[600px]">
|
||||
<p className="text-slate-600 text-xl md:text-2xl leading-relaxed">
|
||||
Haben Sie Fragen zu einem Projekt oder benötigen Sie technische Beratung? Wir freuen uns auf Ihre Nachricht.
|
||||
</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="py-12 md:py-24">
|
||||
<div className="container mx-auto px-4">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8 md:gap-16">
|
||||
<div className="flex flex-col gap-8">
|
||||
<a
|
||||
href="mailto:info@mb-grid-solutions.com"
|
||||
className="flex gap-6 items-start p-6 bg-white border border-secondary-bg rounded-2xl hover:border-primary transition-all duration-200"
|
||||
<section className="bg-slate-50">
|
||||
<div className="container-custom">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-16 md:gap-24">
|
||||
<div className="space-y-8">
|
||||
<motion.div
|
||||
whileHover={{ x: 5 }}
|
||||
className="card-modern !p-8 flex gap-6 items-start"
|
||||
>
|
||||
<div className="text-accent-green p-4 border border-secondary-bg rounded-xl shrink-0">
|
||||
<Mail size={24} strokeWidth={2} />
|
||||
<div className="w-14 h-14 rounded-2xl bg-accent/10 text-accent flex items-center justify-center shrink-0">
|
||||
<Mail size={24} />
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="text-sm md:text-base font-semibold mb-1">E-Mail</h4>
|
||||
<span className="text-primary text-lg md:text-xl font-medium">
|
||||
<h4 className="text-slate-500 font-bold text-xs uppercase tracking-widest mb-2">E-Mail</h4>
|
||||
<a href="mailto:info@mb-grid-solutions.com" className="text-primary text-xl font-bold hover:text-accent transition-colors">
|
||||
info@mb-grid-solutions.com
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</a>
|
||||
<div className="flex gap-6 items-start p-6 bg-white border border-secondary-bg rounded-2xl">
|
||||
<div className="text-accent-green p-4 border border-secondary-bg rounded-xl shrink-0">
|
||||
<MapPin size={24} strokeWidth={2} />
|
||||
</motion.div>
|
||||
|
||||
<motion.div
|
||||
whileHover={{ x: 5 }}
|
||||
className="card-modern !p-8 flex gap-6 items-start"
|
||||
>
|
||||
<div className="w-14 h-14 rounded-2xl bg-accent/10 text-accent flex items-center justify-center shrink-0">
|
||||
<MapPin size={24} />
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="text-sm md:text-base font-semibold mb-1">Anschrift</h4>
|
||||
<p className="text-primary text-lg md:text-xl font-medium leading-relaxed">
|
||||
<h4 className="text-slate-500 font-bold text-xs uppercase tracking-widest mb-2">Anschrift</h4>
|
||||
<p className="text-primary text-xl font-bold leading-relaxed">
|
||||
MB Grid Solutions GmbH<br />
|
||||
Raiffeisenstraße 22<br />
|
||||
73630 Remshalden
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<div className="bg-white p-8 md:p-12 border border-secondary-bg rounded-2xl shadow-sm">
|
||||
<div className="bg-white p-8 md:p-12 rounded-[2.5rem] border border-slate-100 shadow-xl">
|
||||
{submitted ? (
|
||||
<div className="text-center py-8 md:py-12">
|
||||
<div className="text-accent-green mb-6 flex justify-center">
|
||||
<CheckCircle size={64} strokeWidth={2} />
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.9 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
className="text-center py-12"
|
||||
>
|
||||
<div className="w-20 h-20 rounded-full bg-accent/10 text-accent flex items-center justify-center mx-auto mb-8">
|
||||
<CheckCircle size={40} />
|
||||
</div>
|
||||
<h3 className="text-2xl md:text-3xl font-bold mb-4">Nachricht gesendet</h3>
|
||||
<p className="text-text-secondary text-base md:text-lg leading-relaxed mb-8">
|
||||
<h3 className="text-3xl font-bold text-primary mb-4">Nachricht gesendet</h3>
|
||||
<p className="text-slate-600 text-lg mb-10">
|
||||
Vielen Dank für Ihre Anfrage. Wir werden uns in Kürze bei Ihnen melden.
|
||||
</p>
|
||||
<button
|
||||
onClick={() => setSubmitted(false)}
|
||||
className="bg-primary text-white px-8 py-4 rounded-lg font-bold uppercase tracking-widest text-xs hover:bg-text-primary transition-all"
|
||||
className="btn-primary"
|
||||
>
|
||||
Weitere Nachricht
|
||||
</button>
|
||||
</div>
|
||||
</motion.div>
|
||||
) : (
|
||||
<form onSubmit={handleSubmit} className="flex flex-col gap-6">
|
||||
<form onSubmit={handleSubmit} className="space-y-6">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<div className="flex flex-col gap-2">
|
||||
<label htmlFor="name" className="text-sm font-semibold">Name *</label>
|
||||
<div className="space-y-2">
|
||||
<label htmlFor="name" className="text-sm font-bold text-slate-700 ml-1">Name *</label>
|
||||
<input
|
||||
type="text"
|
||||
id="name"
|
||||
name="name"
|
||||
required
|
||||
minLength={2}
|
||||
maxLength={100}
|
||||
placeholder="Ihr Name"
|
||||
className="w-full p-4 border border-secondary-bg rounded-xl focus:outline-none focus:border-primary focus:ring-3 focus:ring-accent-green/10 transition-all"
|
||||
className="w-full px-5 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:outline-none focus:border-accent focus:ring-4 focus:ring-accent/5 transition-all"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col gap-2">
|
||||
<label htmlFor="company" className="text-sm font-semibold">Firma</label>
|
||||
<div className="space-y-2">
|
||||
<label htmlFor="company" className="text-sm font-bold text-slate-700 ml-1">Firma</label>
|
||||
<input
|
||||
type="text"
|
||||
id="company"
|
||||
name="company"
|
||||
placeholder="Ihr Unternehmen"
|
||||
className="w-full p-4 border border-secondary-bg rounded-xl focus:outline-none focus:border-primary focus:ring-3 focus:ring-accent-green/10 transition-all"
|
||||
className="w-full px-5 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:outline-none focus:border-accent focus:ring-4 focus:ring-accent/5 transition-all"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-2">
|
||||
<label htmlFor="email" className="text-sm font-semibold">E-Mail *</label>
|
||||
<div className="space-y-2">
|
||||
<label htmlFor="email" className="text-sm font-bold text-slate-700 ml-1">E-Mail *</label>
|
||||
<input
|
||||
type="email"
|
||||
id="email"
|
||||
name="email"
|
||||
required
|
||||
placeholder="ihre@email.de"
|
||||
className="w-full p-4 border border-secondary-bg rounded-xl focus:outline-none focus:border-primary focus:ring-3 focus:ring-accent-green/10 transition-all"
|
||||
className="w-full px-5 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:outline-none focus:border-accent focus:ring-4 focus:ring-accent/5 transition-all"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-2">
|
||||
<label htmlFor="message" className="text-sm font-semibold">Nachricht *</label>
|
||||
<div className="space-y-2">
|
||||
<label htmlFor="message" className="text-sm font-bold text-slate-700 ml-1">Nachricht *</label>
|
||||
<textarea
|
||||
id="message"
|
||||
name="message"
|
||||
required
|
||||
minLength={20}
|
||||
maxLength={4000}
|
||||
rows={6}
|
||||
rows={5}
|
||||
placeholder="Wie können wir Ihnen helfen?"
|
||||
className="w-full p-4 border border-secondary-bg rounded-xl focus:outline-none focus:border-primary focus:ring-3 focus:ring-accent-green/10 transition-all resize-y min-h-[120px]"
|
||||
className="w-full px-5 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:outline-none focus:border-accent focus:ring-4 focus:ring-accent/5 transition-all resize-none"
|
||||
></textarea>
|
||||
</div>
|
||||
|
||||
<div className="hidden">
|
||||
<label htmlFor="website">Website (bitte leer lassen)</label>
|
||||
<input
|
||||
type="text"
|
||||
id="website"
|
||||
name="website"
|
||||
tabIndex={-1}
|
||||
autoComplete="off"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
className="self-start bg-primary text-white px-8 py-4 rounded-lg font-bold uppercase tracking-widest text-xs hover:bg-text-primary transition-all flex items-center gap-3 disabled:opacity-50"
|
||||
className="btn-accent w-full py-5 text-lg group"
|
||||
>
|
||||
{loading ? 'Wird gesendet...' : 'Nachricht senden'} <Send size={18} strokeWidth={2.5} />
|
||||
{loading ? 'Wird gesendet...' : 'Nachricht senden'}
|
||||
<Send className="ml-3 transition-transform group-hover:translate-x-1 group-hover:-translate-y-1" size={20} />
|
||||
</button>
|
||||
<p className="text-[11px] md:text-xs text-text-secondary leading-relaxed mt-2">
|
||||
|
||||
<p className="text-xs text-slate-400 text-center">
|
||||
* Pflichtfelder. Mit dem Absenden erklären Sie sich mit unserer{' '}
|
||||
<Link href="/datenschutz" className="underline font-medium">
|
||||
<Link href="/datenschutz" className="text-accent hover:underline font-semibold">
|
||||
Datenschutzerklärung
|
||||
</Link>{' '}
|
||||
einverstanden.
|
||||
|
||||
Reference in New Issue
Block a user