Skip to content

Commit 1053b4b

Browse files
authored
Fixed Button Alignment (#50)
1 parent 97a896c commit 1053b4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/TryCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ export const ActivityCard: React.FC<ActivityCardProps> = ({
3333
alt={title}
3434
className="w-16 h-16 sm:w-20 sm:h-20 md:w-24 md:h-24 mb-3 sm:mb-4"
3535
/>
36-
<h3 className="text-xl sm:text-2xl md:text-3xl font-bold mb-1 sm:mb-2">
36+
<h3 className="flex-1/3 text-xl sm:text-2xl md:text-3xl font-bold mb-1 sm:mb-2">
3737
{title}
3838
</h3>
39-
<p className="text-gray-600 text-sm sm:text-base mb-4 sm:mb-6">
39+
<p className="flex-1/3 text-gray-600 text-sm sm:text-base mb-4 sm:mb-6">
4040
{description}
4141
</p>
4242
<a href={href} className="w-full">
43-
<button className="w-full py-2 sm:py-3 px-4 sm:px-6 border-2 border-gray-900 rounded-full text-sm sm:text-base md:text-lg font-semibold hover:bg-gray-900 hover:text-white transition-colors">
43+
<button className="flex-1/3 w-full py-2 sm:py-3 px-4 sm:px-6 border-2 border-gray-900 rounded-full text-sm sm:text-base md:text-lg font-semibold hover:bg-gray-900 hover:text-white transition-colors">
4444
{buttonText}
4545
</button>
4646
</a>

0 commit comments

Comments
 (0)