steps

Anonymous
TSX
10/07/2025 8:27 PM
7.2 KB
22
Indexable
Never
import React from "react";
import Image from "next/image";
import Container from "@/components/Container";
import LinkButton from "@/components/LinkButton";

const Steps: React.FC = () => {
  return (
    <Container className="max-w-6xl max-md:text-center">
      <div className="flex flex-col items-center justify-between max-md:flex-col-reverse md:flex-row">
        <div className="md:w-2/5">
          <h2 className="text-fitelo-button mb-3 text-2xl font-bold">
            Take the Health Test
          </h2>
          <p className="mb-4 text-gray-600">
            Start your journey by taking our <b>quick</b> and <b>insightful</b>{" "}
            health test.
          </p>
          <p className="text-gray-500">
            It only takes a few minutes and helps us understand your lifestyle,
            goals, and dietary preferences. The more we know, the better we can
            guide you.
          </p>
          <div className="mt-4 flex space-x-2 max-md:hidden">
            {[...Array(15)].map((_, i) => (
              <div key={i} className="h-2 w-2 rounded-full bg-gray-300" />
            ))}
          </div>
        </div>

        <div className="flex justify-center max-md:py-2 md:w-1/5">
          <div className="text-center">
            <div className="text-6xl font-bold text-gray-300">STEP</div>
            <div className="text-7xl font-bold text-gray-700">01</div>
            <div className="mt-4 flex flex-col items-center max-md:hidden">
              {[...Array(15)].map((_, i) => (
                <div
                  key={i}
                  className="mb-2 h-2 w-2 rounded-full bg-gray-300"
                />
              ))}
            </div>
          </div>
        </div>

        <div className="mt-6 flex justify-center max-md:hidden md:mt-0 md:w-2/5">
          <div className="bg-section group relative flex h-56 w-56 items-center justify-center rounded-full transition-transform duration-300 hover:scale-105">
            <Image
              src="/home/steps/form-fill.png"
              alt="form fill"
              height={130}
              width={130}
              className="absolute right-9 transform transition-all duration-300 group-hover:scale-110 group-hover:rotate-12"
            />
          </div>
        </div>
      </div>

      <div className="flex flex-col items-center justify-between md:flex-row">
        <div className="order-2 flex justify-center max-md:hidden md:order-1 md:w-2/5">
          <div className="bg-section group relative flex h-56 w-56 items-center justify-center rounded-full transition-transform duration-300 hover:scale-105">
            <Image
              src="/home/steps/buy-products.png"
              alt="buy products"
              height={120}
              width={120}
              className="absolute transform transition-all duration-300 group-hover:scale-110 group-hover:-rotate-12"
            />
          </div>
        </div>

        <div className="order-1 flex justify-center max-md:py-2 md:order-2 md:w-1/5">
          <div className="text-center">
            <div className="flex flex-col items-center">
              {[...Array(6)].map((_, i) => (
                <div
                  key={i}
                  className="mb-2 h-2 w-2 rounded-full bg-gray-300"
                />
              ))}
            </div>
            <div className="text-6xl font-bold text-gray-300">STEP</div>
            <div className="text-7xl font-bold text-gray-700">02</div>
            <div className="mt-4 flex flex-col items-center max-md:hidden">
              {[...Array(11)].map((_, i) => (
                <div
                  key={i}
                  className="mb-2 h-2 w-2 rounded-full bg-gray-300"
                />
              ))}
            </div>
          </div>
        </div>

        <div className="order-3 pl-4 md:order-3 md:w-2/5">
          <h2 className="text-fitelo-button mb-3 text-2xl font-bold">
            Buy Customized Products
          </h2>
          <p className="mb-4 text-gray-600">
            Based on your test, shop <b>science-backed, natural products</b>{" "}
            crafted to support your condition.
          </p>
          <p className="text-gray-500">
            Whether you're aiming for weight loss, diabetes control, or better
            overall health, our curated product options make it simple. Each
            item is nutritionist-approved and crafted with high-quality
            ingredients to support your goals.
          </p>
          <div className="mt-4 flex space-x-2 max-md:hidden">
            {[...Array(15)].map((_, i) => (
              <div key={i} className="h-2 w-2 rounded-full bg-gray-300" />
            ))}
          </div>
        </div>
      </div>

      <div className="flex flex-col items-center justify-between max-md:flex-col-reverse md:flex-row">
        <div className="pr-4 md:w-2/5">
          <h2 className="text-fitelo-button mb-3 text-2xl font-bold">
            Free Consultation & Lifelong Support
          </h2>
          <p className="mb-4 text-gray-600">
            Get a <b>free consultation</b> from our <b>certified dietitians</b>{" "}
            and follow simple habits to see real results.
          </p>
          <p className="text-gray-500">
            We'll provide ongoing support and updates to help you stay on track
            and achieve your health goals.
          </p>
          <div className="mt-4 flex space-x-2 max-md:hidden">
            {[...Array(15)].map((_, i) => (
              <div key={i} className="h-2 w-2 rounded-full bg-gray-300" />
            ))}
          </div>
        </div>

        <div className="flex justify-center max-md:py-2 md:w-1/5">
          <div className="text-center">
            <div className="flex flex-col items-center max-md:hidden">
              {[...Array(12)].map((_, i) => (
                <div
                  key={i}
                  className="mb-2 h-2 w-2 rounded-full bg-gray-300"
                />
              ))}
            </div>
            <div className="flex flex-col items-center md:hidden">
              {[...Array(6)].map((_, i) => (
                <div
                  key={i}
                  className="mb-2 h-2 w-2 rounded-full bg-gray-300"
                />
              ))}
            </div>
            <div className="text-6xl font-bold text-gray-300">STEP</div>
            <div className="text-7xl font-bold text-gray-700">03</div>
          </div>
        </div>

        <div className="mt-6 flex justify-center max-md:hidden md:mt-0 md:w-2/5">
          <div className="bg-section group relative flex h-56 w-56 items-center justify-center rounded-full transition-transform duration-300 hover:scale-105">
            <Image
              src="/home/steps/consult-medic.png"
              alt="free consultation"
              height={130}
              width={130}
              className="absolute transform transition-all duration-300 group-hover:scale-110 group-hover:rotate-12"
            />
          </div>
        </div>
      </div>
      <div className="mt-8 flex justify-center">
        <LinkButton
          href="/questions?utm_section=home_steps"
          label="Take The Health Test Now"
          location="home_steps"
        />
      </div>
    </Container>
  );
};

export default Steps;
Editor is loading...
Leave a Comment