Quiz-PDF/Documentation/docs/components/features general/CardsOnABackgroundImage.md

2.1 KiB

sidebar_position
2

Cards On A Background Image

Cards

<>
      {/* <!-- Features --> */}
      <div className="flex justify-center px-4 py-10 sm:px-6 lg:px-8 lg:py-14">
        <div className="w-full min-h-[35vh] max-w-6xl bg-[url('https://images.unsplash.com/photo-1665686374006-b8f04cf62d57?ixlib=rb-4.0.3&ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80')] bg-center bg-cover bg-no-repeat relative rounded-xl md:min-h-[75vh]">
          <div className="absolute bottom-0 start-0 end-0 max-w-xs text-center mx-auto p-6 md:start-auto md:text-start md:mx-0">
            {/* <!-- Card --> */}
            <div className="px-5 py-4 inline-block bg-white rounded-lg md:p-7">
              <div className="hidden md:block">
                <h3 className="text-lg font-bold text-gray-800 sm:text-2xl">
                  How does FastPocket work?
                </h3>
                <p className="mt-2 text-gray-800">
                  Learn more about FastPocket.
                </p>
              </div>

              <div className="md:mt-16">
                <a
                  className="flex items-center gap-2 text-sm font-medium text-gray-800 hover:text-gray-500"
                  href="#"
                >
                  <svg
                    className="flex-shrink-0 size-4"
                    xmlns="http://www.w3.org/2000/svg"
                    width="24"
                    height="24"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    stroke-width="2"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                  >
                    <polygon points="5 3 19 12 5 21 5 3" />
                  </svg>
                  Watch our story
                </a>
              </div>
            </div>
            {/* <!-- End Card --> */}
          </div>
        </div>
      </div>
      {/* <!-- End Features --> */}
    </>