lets implement this Landing Page Components: Hero section with a clear value…
- User
lets implement this Landing Page
Components: Hero section with a clear value proposition. Call-to-action (CTA) button: "Get Started" or "Upload Image". Features overview section. Testimonials from satisfied users. for this site using shadcn and has this blue neubrutalism theme
'use client'
import React from 'react' import Link from 'next/link' import { useAuth } from '@clerk/nextjs' import { Button } from "@/components/ui/button" import { Card, CardContent } from "@/components/ui/card" import { Scissors, Upload, Wand2, Download, ArrowRight } from "lucide-react"
const FeatureCard: React.FC<{ icon: React.ReactNode; title: string; description: string; color: string }> = ({ icon, title, description, color }) => ( <Card className={
border-4 border-black ${color} transform hover:-translate-y-1 hover:shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] transition-all}> {icon} {title} {description} )const HomePage: React.FC = () => { const { isSignedIn } = useAuth()
return ( Remove Image Backgrounds in Seconds Professional Image Background Removal for Zando, Takealot, and Beyond. Boost your e-commerce presence with ClearCut. {isSignedIn ? ( Go to Dashboard ) : ( Get Started )}
<div className="grid sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-16"> <FeatureCard icon={<Upload className="h-6 w-6 text-blue-600" />} title="Easy Upload" description="Effortlessly upload your images for processing" color="bg-blue-100" /> <FeatureCard icon={<Wand2 className="h-6 w-6 text-blue-600" />} title="AI-Powered" description="Advanced AI technology for precise background removal" color="bg-blue-200" /> <FeatureCard icon={<Scissors className="h-6 w-6 text-blue-600" />} title="Format Compliance" description="Meet Zando and Takealot image guidelines automatically" color="bg-blue-300" /> <FeatureCard icon={<Download className="h-6 w-6 text-blue-600" />} title="Quick Download" description="Instantly download your processed images" color="bg-blue-400" /> </div> <div className="bg-blue-500 p-8 rounded-lg text-center border-4 border-black relative"> <div className="absolute top-0 right-0 w-16 h-16 bg-blue-300 border-4 border-black transform translate-x-1/4 -translate-y-1/4 rotate-12"></div> <h2 className="text-2xl sm:text-3xl font-bold mb-4 text-white">Ready to transform your images?</h2> <p className="text-lg sm:text-xl mb-6 text-white font-medium">Join thousands of e-commerce sellers and content creators who trust ClearCut.</p> <Button size="lg" className="bg-white text-blue-600 hover:bg-blue-100 border-2 border-black font-bold"> Start Free Trial <ArrowRight className="ml-2 h-5 w-5" /> </Button> </div> </div> </div>) }
export default HomePage
- Assistant
Great work on implementing the landing page! Your code effectively sets up the hero section, features overview, and a call-to-action. To complete the landing page as per your requirements, we'll need to add the Testimonials section. Here's how you can do it:
Adding the Testimonials Section
We'll create a
TestimonialCardcomponent to display individual testimonials and then integrate it into yourHomePagecomponent.Step 1: Create the
TestimonialCardComponentimport { Card, CardContent } from "@/components/ui/card"; import { Avatar, AvatarImage } from "@/components/ui/avatar"; const TestimonialCard = ({ testimonial }) => ( <Card className="border-4 border-black bg-blue-50 transform hover:-translate-y-1 hover:shadow-[4px_4px_0px_rgba(0,0,0,1)] transition-all"> <CardContent className="p-6"> <p className="text-black font-medium mb-4">"{testimonial.quote}"</p> <div className="flex items-center"> <Avatar className="mr-4"> <AvatarImage src={testimonial.image} alt={testimonial.name} /> </Avatar> <div> <p className="text-black font-bold">{testimonial.name}</p> <p className="text-sm text-gray-600">{testimonial.role}</p> </div> </div> </CardContent> </Card> );Step 2: Prepare Testimonials Data
Create an array of testimonials to pass into the
TestimonialCardcomponents.const testimonials = [ { quote: "ClearCut has streamlined our product photography process immensely!", name: "Jane Smith", role: "E-commerce Seller", image: "/images/jane-smith.jpg", }, { quote: "The AI is incredibly accurate and saves us so much time.", name: "John Doe", role: "Content Creator", image: "/images/john-doe.jpg", }, // Add more testimonials as needed ];Step 3: Integrate
TestimonialCardintoHomePageAdd the testimonials section below your features grid.
// ... [rest of your imports] import { Avatar, AvatarImage } from "@/components/ui/avatar"; // ... [your existing code] const HomePage: React.FC = () => { const { isSignedIn } = useAuth(); const testimonials = [ { quote: "ClearCut has streamlined our product photography process immensely!", name: "Jane Smith", role: "E-commerce Seller", image: "/images/jane-smith.jpg", }, { quote: "The AI is incredibly accurate and saves us so much time.", name: "John Doe", role: "Content Creator", image: "/images/john-doe.jpg", }, // ... add more testimonials ]; return ( <div className="min-h-screen bg-blue-50"> {/* ... [your existing hero and features sections] */} {/* Testimonials Section */} <div className="container mx-auto px-4 py-12"> <h2 className="text-2xl sm:text-3xl font-bold mb-8 text-center text-black"> Hear from our happy users </h2> <div className="grid sm:grid-cols-2 gap-6"> {testimonials.map((testimonial, index) => ( <TestimonialCard key={index} testimonial={testimonial} /> ))} </div> </div> {/* ... [rest of your code] */} </div> ); }; export default HomePage;Step 4: Ensure Images are Available
Make sure to include the testimonial images in your
/public/imagesdirectory or adjust the paths accordingly.Step 5: Import Necessary Components
Ensure all the components you use are imported correctly.
// ... [existing imports] import { Avatar, AvatarImage } from "@/components/ui/avatar";Final Complete Code
Here's how your updated
HomePagecomponent should look:'use client' import React from 'react' import Link from 'next/link' import { useAuth } from '@clerk/nextjs' import { Button } from "@/components/ui/button" import { Card, CardContent } from "@/components/ui/card" import { Avatar, AvatarImage } from "@/components/ui/avatar" import { Scissors, Upload, Wand2, Download, ArrowRight } from "lucide-react" const FeatureCard = ({ icon, title, description, color }) => ( <Card className={`border-4 border-black ${color} transform hover:-translate-y-1 hover:shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] transition-all`}> <CardContent className="p-6"> <div className="flex items-center space-x-4 mb-4"> <div className="bg-white p-2 rounded-full border-2 border-black"> {icon} </div> <h3 className="text-xl font-bold">{title}</h3> </div> <p className="text-black font-medium">{description}</p> </CardContent> </Card> ) const TestimonialCard = ({ testimonial }) => ( <Card className="border-4 border-black bg-blue-50 transform hover:-translate-y-1 hover:shadow-[4px_4px_0px_rgba(0,0,0,1)] transition-all"> <CardContent className="p-6"> <p className="text-black font-medium mb-4">“{testimonial.quote}”</p> <div className="flex items-center"> <Avatar className="mr-4"> <AvatarImage src={testimonial.image} alt={testimonial.name} /> </Avatar> <div> <p className="text-black font-bold">{testimonial.name}</p> <p className="text-sm text-gray-600">{testimonial.role}</p> </div> </div> </CardContent> </Card> ) const HomePage = () => { const { isSignedIn } = useAuth() const testimonials = [ { quote: "ClearCut has streamlined our product photography process immensely!", name: "Jane Smith", role: "E-commerce Seller", image: "/images/jane-smith.jpg", }, { quote: "The AI is incredibly accurate and saves us so much time.", name: "John Doe", role: "Content Creator", image: "/images/john-doe.jpg", }, // Add more testimonials as needed ] return ( <div className="min-h-screen bg-blue-50"> <div className="container mx-auto px-4 py-12 sm:py-20"> <div className="text-center mb-16 relative"> {/* ... [Your existing hero section code] */} </div> <div className="grid sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-16"> {/* ... [Your existing feature cards code] */} </div> {/* Testimonials Section */} <div className="container mx-auto px-4 py-12"> <h2 className="text-2xl sm:text-3xl font-bold mb-8 text-center text-black"> Hear from our happy users </h2> <div className="grid sm:grid-cols-2 gap-6"> {testimonials.map((testimonial, index) => ( <TestimonialCard key={index} testimonial={testimonial} /> ))} </div> </div> <div className="bg-blue-500 p-8 rounded-lg text-center border-4 border-black relative"> {/* ... [Your existing call-to-action section code] */} </div> </div> </div> ) } export default HomePageTips for a Consistent Neubrutalism Theme
- Bold Borders: Ensure all your cards and sections have consistent bold borders to match the neubrutalist style.
- Vibrant Colors: Use bright and contrasting colors with a limited palette to maintain the aesthetic.
- Typography: Stick to bold typography with simple, sans-serif fonts.
- Minimal Shadows: Use hard shadows if necessary, but minimal to keep the design flat.
Additional Enhancements
- Responsive Design: Ensure all components are mobile-friendly by adjusting grid columns and text sizes for smaller screens.
- Animation: Add subtle animations to elements on hover to enhance interactivity.
- Accessibility: Include
altattributes for all images and ensure sufficient color contrast.
Conclusion
By adding the
Testimonialssection, your landing page now includes all the specified components:- Hero Section with a clear value proposition.
- CTA Buttons like "Get Started" or "Upload Image".
- Features Overview highlighting key functionalities.
- Testimonials from satisfied users.
This should give visitors a compelling overview of your product and encourage them to engage further.
Let me know if you need any more assistance or further customizations!