Cnippet

Eduflow Hero-1

Heroes 2

About

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Eduflow Hero-1 to your project and fits it to your theme.

Code

How Eduflow Hero-1 is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ArrowRight, Mail, Star } from "lucide-react";
import Image from "next/image";

import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import { Field, FieldLabel } from "@/components/ui/field-1";
import {
  InputGroup,
  InputGroupAddon,
  InputGroupInput,
} from "@/components/ui/input-group";
import { Separator } from "@/components/ui/separator";

export default function Hero() {
  return (
    <section className="relative h-screen w-full overflow-hidden text-black py-12 bg-white font-grotesk md:py-16">
      <div className="mx-auto h-full max-w-7xl px-4 sm:px-8 lg:px-0">
        <div className="flex h-full flex-col gap-8 md:flex-row md:gap-16">
          <div className="flex w-full flex-col items-start gap-5">
            <Badge className="bg-transparent font-normal text-black text-sm">
              <span className="size-4 rounded-full bg-[#1868da]" />
              <span className="flex items-center gap-4 rounded-full border border-neutral-200 border-dashed px-4">
                Based in India
                <ArrowRight className="text-[#1868da]" />
              </span>
            </Badge>
            <h1 className="mt-auto max-w-xl text-3xl sm:text-4xl md:text-5xl lg:text-7xl">
              Shape Your Future with In-{" "}
              <span className="text-[#1868da]">Demand Skills</span>
            </h1>
            <p className="max-w-xl text-lg text-neutral-500 tracking-tight">
              Our platform offers a wide range of courses and resources designed
              to help you acquire new competencies and improve your
              employability.
            </p>
            <div className="w-full max-w-lg space-y-3">
              <div className="flex items-center gap-2">
                <InputGroup className="rounded-none py-2 h-11 shadow-none border-neutral-200">
                  <InputGroupInput
                    aria-label="Email"
                    placeholder="Enter you email"
                    type="email"
                  />
                  <InputGroupAddon>
                    <Mail className="size-5 text-neutral-500" />
                  </InputGroupAddon>
                </InputGroup>
                <Button className="rounded-none border-[#1868da] bg-[#1868da] px-8 py-3 hover:bg-[#1868da] text-white">
                  Submit
                </Button>
              </div>
              <Field>
                <FieldLabel>
                  <Checkbox />
                  Accept terms and conditions
                </FieldLabel>
              </Field>
            </div>
            <div className="flex items-start gap-3 pt-4">
              <div className="flex -space-x-3">
                {[1, 2, 3, 4].map((i) => (
                  <Avatar
                    className="size-12 border-2 border-background border-white grayscale-100 transition-colors ease-in-out hover:grayscale-0"
                    key={i}
                  >
                    <AvatarImage
                      src={`https://images.cnippet.dev/image/upload/v1770400411/a${i}.jpg`}
                    />
                    <AvatarFallback>U{i}</AvatarFallback>
                  </Avatar>
                ))}
              </div>
              <div>
                <div className="flex gap-2">
                  <div className="flex items-center gap-2">
                    4.9
                    <Star className="size-4 fill-[#1868da] stroke-[#1868da]" />
                  </div>
                  <Separator orientation="vertical" />
                  <div>2M+ users</div>
                </div>
                <p>One Platform for Learning</p>
              </div>
            </div>
          </div>
          <div className="flex h-64 w-full flex-col md:h-full">
            <Image
              alt="Instructor teaching online"
              className="h-full w-full object-cover"
              height={1080}
              src="https://cdn.21st.dev/assets/mirror/db/dbeff2f8ebb2d2bd48ecfe8b4edca6416a3f3b5b10477b04e5772613bf8cfe1c.jpg"
              width={1920}
            />
            <div className="pt-4">
              <div className="flex gap-8">
                {[1, 2, 3, 4].map((i) => (
                  <div className="flex items-center justify-center" key={i}>
                    <Image
                      alt="Logo"
                      className="object-cover"
                      height={500}
                      src={`https://images.cnippet.dev/image/upload/v1770400411/logoipsum-${i + 1}.png`}
                      width={500}
                    />
                  </div>
                ))}
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    682
  • Aero Hero-3

    Aero Hero-3

    558
  • Features

    Features

    508
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    484
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    464
  • Blogs

    Blogs

    396
  • Aero Hero-1

    Aero Hero-1

    356

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    924
  • Hero

    Hero

    1.2K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero Section 6

    Hero Section 6

    881
  • Hero Golden Spiral

    Hero Golden Spiral

    101
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    284
  • Home Section

    Home Section

    65