Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- function FeaturedItem() {
- return (
- <div className="mx-auto flex w-screen max-w-screen-lg flex-col items-center py-10">
- {/* TITLE */}
- <h1 className="text-4xl poppins-bold text-darkgreen">
- Your Picnic
- </h1>
- <hr className="mb-6 mt-4 w-1/3 border-pastelgreen" />
- {/* BOX */}
- <div className="rounded-3xl relative mx-auto flex h-fit w-fit flex-col bg-gradient-to-r from-pastelblue to-pastelgreen p-1 shadow-2xl">
- {/* Inner White Box with Shadow */}
- <div className="p-8 rounded-3xl bg-white shadow-inner transition duration-500 hover:scale-105 hover:shadow-2xl">
- {" "}
- {/* This Div is an extra layer that will be used for a cool effect later */}
- <div className="flex items-center">
- {/* Location Image with Hover Effect */}
- <img
- className="w-1/2 object-cover rounded-2xl shadow-md transition-transform duration-500 hover:rotate-3 hover:scale-110"
- src="/images/Texarkana.jpg"
- alt="Lake Texarkana"
- />
- {/* TEXT */}
- <div className="w-1/2 pl-8 space-y-6">
- {/* Location Title */}
- <h1 className="poppins-extrabold text-3xl text-darkblue drop-shadow-lg">
- Lake Texarkana
- </h1>
- {/* RSVP Details */}
- <p className="inter-regular text-lg text-gray-600">
- 4 Going | 3 Unsure
- </p>
- {/* Picnic Description */}
- <p className="inter-regular text-darkgreen">
- Time for a day of relaxation on the lake. Bring
- a floatie and a swimsuit!
- </p>
- <p className="pt-4 poppins-bold text-2xl text-emerald-500">
- Going
- </p>
- </div>
- </div>
- </div>
- </div>
- </div>
- );
- }
- export default FeaturedItem;
Advertisement
Add Comment
Please, Sign In to add comment