danyobosayo

Untitled

Nov 11th, 2024
127
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">Your Picnic</h1>
  8.             <hr className="mb-6 mt-4 w-1/3" />
  9.  
  10.             {/* BOX */}
  11.             <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">
  12.                 {/* Inner White Box with Shadow */}
  13.                 <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 */}
  14.                     <div className="flex items-center">
  15.                         {/* Location Image with Hover Effect */}
  16.                         <img
  17.                             className="w-1/2 pr-8 object-cover "
  18.                             src="/images/Texarkana.jpg"
  19.                             alt="Lake Texarkana"
  20.                         />
  21.  
  22.                         {/* TEXT */}
  23.                         <div className="w-1/2 space-y-6">
  24.                             {/* Location Title */}
  25.                             <h1>Lake Texarkana</h1>
  26.                             {/* RSVP Details */}
  27.                             <p>4 Going | 3 Unsure</p>
  28.                             {/* Picnic Description */}
  29.                             <p>
  30.                                 Time for a day of relaxation on the lake. Bring
  31.                                 a floatie and a swimsuit!
  32.                             </p>
  33.                             <p className="pt-4">going</p>
  34.                         </div>
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.         </div>
  39.     );
  40. }
  41.  
  42. export default FeaturedItem;
  43.  
Advertisement
Add Comment
Please, Sign In to add comment