Skip to content

Commit

Permalink
Merge pull request #113 from Shariq2003/FixesInUI
Browse files Browse the repository at this point in the history
Fix UI Consistancy | Issue #112
  • Loading branch information
rishicds authored Oct 24, 2024
2 parents 32fa0b9 + 266e65d commit 86ce80f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/app/(pages)/Projects/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import Image from 'next/image';

function Card(props) {
return (
<div className="max-w-sm rounded-lg overflow-hidden shadow-lg transition-transform duration-300 transform hover:scale-105 hover:shadow-2xl m-4 bg-gray-300 flex flex-col justify-between">
{/* Card background set to light gray */}

<div className="max-w-sm w-full h-[450px] rounded-lg overflow-hidden shadow-lg transition-transform duration-300 transform hover:scale-105 hover:shadow-2xl m-4 bg-gray-300 flex flex-col justify-between">
{/* Image Section */}
<div className="relative h-44 w-full">
<Image
Expand All @@ -20,10 +18,11 @@ function Card(props) {
{/* Content Section */}
<div className="px-6 py-4 flex-grow">
<div className="font-bold text-2xl text-gray-800 mb-3">{props.title}</div>
<p className="text-gray-700 text-sm leading-relaxed">{props.description}</p>
<p className="text-gray-700 text-sm leading-relaxed overflow-hidden h-full line-clamp-4">
{props.description}
</p>
</div>

{/* Action Button Section: Centered and Positioned at the Bottom */}
<div className="px-6 py-4 flex justify-center">
<a
href={props.link}
Expand Down

0 comments on commit 86ce80f

Please sign in to comment.