dsfoisadfje

Untitled

Nov 12th, 2024
160
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.           <h1 className="poppins-semibold text-xl text-darkblue">
  16.             Alan Roybal
  17.           </h1>
  18.         </div>
  19.       </div>
  20.     </div>
  21.   );
  22. }
  23.  
  24. export default Card;
  25.  
Advertisement
Add Comment
Please, Sign In to add comment