dsfoisadfje

Untitled

Nov 12th, 2024
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2.  
  3. function Card() {
  4.   return (
  5.     <div className="p-4">
  6.       {/* Card Container with a Gradient Border */}
  7.       <div className="relative h-full w-full max-w-xs rounded-2xl border-2 border-transparent bg-gradient-to-br from-pastelblue to-pastelgreen p-1 shadow-lg transition duration-300 hover:shadow-2xl">
  8.         {/* Inner Box */}
  9.         <div className="h-full w-full rounded-2xl bg-white p-4 transition duration-300 hover:scale-105">
  10.           <img
  11.             className="mx-auto my-4 h-40 w-full rounded-xl object-cover shadow-md"
  12.             src="/images/sample1.webp"
  13.             alt=""
  14.           />
  15.           <div className="space-y-3">
  16.             <h1 className="poppins-semibold text-xl text-darkblue">
  17.               Alan Roybal
  18.             </h1>
  19.             <p className="inter-regular flex py-1 text-sm text-gray-500">
  20.                 Bringing: Fruit
  21.             </p>
  22.             <p className="inter-semibold text-sm text-emerald-500">
  23.                 Going
  24.             </p>
  25.           </div>
  26.         </div>
  27.       </div>
  28.     </div>
  29.   );
  30. }
  31.  
  32. export default Card;
  33.  
Advertisement
Add Comment
Please, Sign In to add comment