Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- function Card() {
- return (
- <div className="p-4">
- {/* Card Container with a Gradient Border */}
- <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">
- {/* Inner Box */}
- <div className="h-full w-full rounded-2xl bg-white p-4 transition duration-300 hover:scale-105">
- <img
- className="mx-auto my-4 h-40 w-full rounded-xl object-cover shadow-md"
- src="/images/sample1.webp"
- alt=""
- />
- <h1 className="poppins-semibold text-xl text-darkblue">
- Alan Roybal
- </h1>
- </div>
- </div>
- </div>
- );
- }
- export default Card;
Advertisement
Add Comment
Please, Sign In to add comment