All files / src/components/shared/Newsletter index.tsx

11.66% Statements 7/60
100% Branches 0/0
0% Functions 0/1
11.66% Lines 7/60

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 611x 1x 1x 1x 1x                                                                                                           1x 1x  
import React from "react";
import Image from "next/image";
import { Button, Input } from "@/components/ui";
 
const Newsletter = () => {
  return (<></>)
  return (
    <section className="overflow-hidden">
      <div className="max-w-[1170px] mx-auto px-4 sm:px-8 xl:px-0">
        <div className="relative z-1 overflow-hidden rounded-xl">
          {/* <!-- bg shapes --> */}
          <Image
            src="/images/shapes/newsletter-bg.jpg"
            alt="background illustration"
            className="absolute -z-1 w-full h-full left-0 top-0 rounded-xl"
            width={1170}
            height={200}
          />
          <div className="absolute -z-1 max-w-[523px] max-h-[243px] w-full h-full right-0 top-0 bg-gradient-1"></div>

          <div className="flex flex-col lg:flex-row lg:items-center lg:justify-between gap-8 px-4 sm:px-7.5 xl:pl-12.5 xl:pr-14 py-11">
            <div className="max-w-[491px] w-full">
              <h2 className="max-w-[399px] text-white font-bold text-lg sm:text-xl xl:text-heading-4 mb-3">
                Never Miss a Great Offer Again
              </h2>
              <p className="text-white">
                Subscribe to get updates, special promotions, and exclusive discount codes.
              </p>
            </div>

            <div className="max-w-[477px] w-full">
              <form>
                <div className="flex flex-col sm:flex-row gap-4">
                  <Input
                    type="email"
                    name="email"
                    id="email"
                    placeholder="Enter your email"
                    fullWidth
                    className="bg-gray-1 border-gray-3 rounded-md placeholder:text-dark-4 py-3 px-5"
                  />
                  <Button
                    type="submit"
                    variant="primary"
                    size="md"
                    className="inline-flex justify-center py-3 px-7"
                  >
                    Subscribe
                  </Button>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
};
 
export default Newsletter;