danyobosayo

Untitled

Nov 11th, 2024
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2.  
  3. function FeaturedItem() {
  4.     return (
  5.         <div className="mx-auto flex w-screen max-w-screen-lg flex-col items-center py-10">
  6.             {/* TITLE */}
  7.             <h1 className="text-4xl poppins-bold text-darkgreen">
  8.                 Your Picnic
  9.             </h1>
  10.             <hr className="mb-6 mt-4 w-1/3 border-pastelgreen" />
  11.  
  12.             {/* BOX */}
  13.             <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">
  14.                 {/* Inner White Box with Shadow */}
  15.                 <div className="p-8 rounded-3xl bg-white shadow-inner transition duration-500 hover:scale-105 hover:shadow-2xl">
  16.                     {" "}
  17.                     {/* This Div is an extra layer that will be used for a cool effect later */}
  18.                     <div className="flex items-center">
  19.                         {/* Location Image with Hover Effect */}
  20.                         <img
  21.                             className="w-1/2 object-cover rounded-2xl shadow-md transition-transform duration-500 hover:rotate-3 hover:scale-110"
  22.                             src="/images/Texarkana.jpg"
  23.                             alt="Lake Texarkana"
  24.                         />
  25.  
  26.                         {/* TEXT */}
  27.                         <div className="w-1/2 pl-8 space-y-6">
  28.                             {/* Location Title */}
  29.                             <h1 className="poppins-extrabold text-3xl text-darkblue drop-shadow-lg">
  30.                                 Lake Texarkana
  31.                             </h1>
  32.                             {/* RSVP Details */}
  33.                             <p className="inter-regular text-lg text-gray-600">
  34.                                 4 Going | 3 Unsure
  35.                             </p>
  36.                             {/* Picnic Description */}
  37.                             <p className="inter-regular text-darkgreen">
  38.                                 Time for a day of relaxation on the lake. Bring
  39.                                 a floatie and a swimsuit!
  40.                             </p>
  41.                             <p className="pt-4 poppins-bold text-2xl text-emerald-500">
  42.                                 Going
  43.                             </p>
  44.                         </div>
  45.                     </div>
  46.                 </div>
  47.             </div>
  48.         </div>
  49.     );
  50. }
  51.  
  52. export default FeaturedItem;
  53.  
Advertisement
Add Comment
Please, Sign In to add comment