Relocate newsletter signup form to improve the layout of the website footer
Moves newsletter signup form in Footer.tsx from first column to second/third columns. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d004b9e1-f9be-46e2-acda-f440ccd644a9 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/af8dabca-e746-4e53-9c29-d8d4d9cf30f5/4a37e03b-918f-4d5b-b79f-ba8eacf3ddc0.jpg
This commit is contained in:
parent
b491b0510a
commit
cfb5d442f4
|
|
@ -70,50 +70,7 @@ export default function Footer() {
|
||||||
className="w-80 mb-4"
|
className="w-80 mb-4"
|
||||||
style={{ filter: "brightness(1.1)" }}
|
style={{ filter: "brightness(1.1)" }}
|
||||||
/>
|
/>
|
||||||
<p className="text-white text-opacity-80 mb-6">Online pilates classes to help you feel stronger and more connected to your body and breath</p>
|
<p className="text-white text-opacity-80 mb-4">Online pilates classes to help you feel stronger and more connected to your body and breath</p>
|
||||||
|
|
||||||
{/* Newsletter Signup Form */}
|
|
||||||
<div className="mb-6">
|
|
||||||
<h4 className="font-playfair font-bold text-base mb-3 text-white">
|
|
||||||
Newsletter Signup
|
|
||||||
</h4>
|
|
||||||
<form onSubmit={handleNewsletterSubmit} className="space-y-3">
|
|
||||||
<input
|
|
||||||
type="email"
|
|
||||||
placeholder="Your email address"
|
|
||||||
className="w-full px-3 py-2 text-sm bg-white bg-opacity-90 border border-white border-opacity-30 placeholder-gray-500 text-gray-800 focus:outline-none focus:border-white rounded-md"
|
|
||||||
value={email}
|
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
|
||||||
required
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div className="flex items-start gap-2">
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
className="mt-1 flex-shrink-0"
|
|
||||||
checked={agreedToTerms}
|
|
||||||
onChange={(e) => setAgreedToTerms(e.target.checked)}
|
|
||||||
required
|
|
||||||
/>
|
|
||||||
<span className="text-white text-opacity-80 text-xs">I agree to receive emails from Pilates with Fadia</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button
|
|
||||||
type="submit"
|
|
||||||
className="w-full px-4 py-2 text-sm bg-purple text-white font-bold hover:bg-opacity-90 transition duration-300 rounded-full flex items-center justify-center"
|
|
||||||
disabled={newsletterMutation.isPending}
|
|
||||||
>
|
|
||||||
{newsletterMutation.isPending ? (
|
|
||||||
<>
|
|
||||||
<Loader2 className="mr-1 h-3 w-3 animate-spin" />
|
|
||||||
Subscribing...
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
"Subscribe"
|
|
||||||
)}
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="flex space-x-4">
|
<div className="flex space-x-4">
|
||||||
<a href="https://www.instagram.com/fadia.elgharib/" target="_blank" rel="noopener noreferrer" className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300">
|
<a href="https://www.instagram.com/fadia.elgharib/" target="_blank" rel="noopener noreferrer" className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300">
|
||||||
|
|
@ -128,59 +85,102 @@ export default function Footer() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
{/* Newsletter Signup Section spanning columns 2 and 3 */}
|
||||||
<h3 className="font-playfair font-bold text-lg mb-4 text-white">Quick Links</h3>
|
<div className="md:col-span-2">
|
||||||
<ul className="space-y-3">
|
<h3 className="font-playfair font-bold text-lg mb-4 text-white">Newsletter Signup</h3>
|
||||||
<li>
|
<form onSubmit={handleNewsletterSubmit} className="space-y-4">
|
||||||
<Link
|
<input
|
||||||
href="/calendar"
|
type="email"
|
||||||
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300"
|
placeholder="Your email address"
|
||||||
>
|
className="w-full px-4 py-3 text-sm bg-white bg-opacity-90 border border-white border-opacity-30 placeholder-gray-500 text-gray-800 focus:outline-none focus:border-white rounded-md"
|
||||||
Book Classes
|
value={email}
|
||||||
</Link>
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
</li>
|
required
|
||||||
<li>
|
/>
|
||||||
<Link
|
|
||||||
href="/about"
|
<div className="flex items-start gap-2">
|
||||||
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300"
|
<input
|
||||||
>
|
type="checkbox"
|
||||||
About Fadia
|
className="mt-1 flex-shrink-0"
|
||||||
</Link>
|
checked={agreedToTerms}
|
||||||
</li>
|
onChange={(e) => setAgreedToTerms(e.target.checked)}
|
||||||
<li>
|
required
|
||||||
<Link
|
/>
|
||||||
href="/community"
|
<span className="text-white text-opacity-80 text-sm">I agree to receive emails from Pilates with Fadia</span>
|
||||||
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300"
|
</div>
|
||||||
>
|
|
||||||
Community
|
<button
|
||||||
</Link>
|
type="submit"
|
||||||
</li>
|
className="w-full px-6 py-3 text-sm bg-purple text-white font-bold hover:bg-opacity-90 transition duration-300 rounded-full flex items-center justify-center"
|
||||||
<li>
|
disabled={newsletterMutation.isPending}
|
||||||
<Link
|
>
|
||||||
href="/contact"
|
{newsletterMutation.isPending ? (
|
||||||
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300"
|
<>
|
||||||
>
|
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
|
||||||
Contact
|
Subscribing...
|
||||||
</Link>
|
</>
|
||||||
</li>
|
) : (
|
||||||
</ul>
|
"Subscribe to Newsletter"
|
||||||
<div className="mt-6 pt-6 border-t border-white border-opacity-20"></div>
|
)}
|
||||||
</div>
|
</button>
|
||||||
|
</form>
|
||||||
<div>
|
|
||||||
<h3 className="font-playfair font-bold text-lg mb-4 text-white">Contact</h3>
|
{/* Quick Links and Contact below newsletter */}
|
||||||
<ul className="space-y-3">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 mt-8 pt-6 border-t border-white border-opacity-20">
|
||||||
<li className="flex items-start">
|
<div>
|
||||||
<i className="fas fa-map-marker-alt mt-1 mr-2 text-white"></i>
|
<h4 className="font-playfair font-bold text-base mb-3 text-white">Quick Links</h4>
|
||||||
<span className="text-white text-opacity-70">Nun Center<br/>Zamalek, Cairo, Egypt</span>
|
<ul className="space-y-2">
|
||||||
</li>
|
<li>
|
||||||
<li className="flex items-center">
|
<Link
|
||||||
<i className="fas fa-envelope mr-2 text-white"></i>
|
href="/calendar"
|
||||||
<a href="mailto:hello@pilateswithfadia.com" className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300">
|
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300 text-sm"
|
||||||
hello@pilateswithfadia.com
|
>
|
||||||
</a>
|
Book Classes
|
||||||
</li>
|
</Link>
|
||||||
</ul>
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link
|
||||||
|
href="/about"
|
||||||
|
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300 text-sm"
|
||||||
|
>
|
||||||
|
About Fadia
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link
|
||||||
|
href="/community"
|
||||||
|
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300 text-sm"
|
||||||
|
>
|
||||||
|
Community
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link
|
||||||
|
href="/contact"
|
||||||
|
className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300 text-sm"
|
||||||
|
>
|
||||||
|
Contact
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h4 className="font-playfair font-bold text-base mb-3 text-white">Contact</h4>
|
||||||
|
<ul className="space-y-2">
|
||||||
|
<li className="flex items-start">
|
||||||
|
<i className="fas fa-map-marker-alt mt-1 mr-2 text-white text-sm"></i>
|
||||||
|
<span className="text-white text-opacity-70 text-sm">Nun Center<br/>Zamalek, Cairo, Egypt</span>
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center">
|
||||||
|
<i className="fas fa-envelope mr-2 text-white text-sm"></i>
|
||||||
|
<a href="mailto:hello@pilateswithfadia.com" className="text-white text-opacity-70 hover:text-white hover:text-opacity-100 transition duration-300 text-sm">
|
||||||
|
hello@pilateswithfadia.com
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue