From d2d8ff242cf7021759f1416acc7153db197bf761 Mon Sep 17 00:00:00 2001 From: Rajatsinghal02 Date: Sun, 6 Oct 2024 13:03:13 +0530 Subject: [PATCH] Card Styling Updated --- .../Homepage/GetInvolvedSection.tsx | 137 ++++++++++-------- .../Homepage/PopularAlgorithmsSection.tsx | 35 +++-- 2 files changed, 97 insertions(+), 75 deletions(-) diff --git a/src/components/Homepage/GetInvolvedSection.tsx b/src/components/Homepage/GetInvolvedSection.tsx index c958f7564..913e8d83f 100644 --- a/src/components/Homepage/GetInvolvedSection.tsx +++ b/src/components/Homepage/GetInvolvedSection.tsx @@ -17,24 +17,29 @@ const GetInvolvedSection: React.FC = () => {

-
-

- Hackathons -

-

- Participate in our hackathons to showcase your skills and win - exciting prizes! -

- - Learn More - -
-
+ + +
+

+ Hackathons +

+

+ Participate in our hackathons to showcase your skills and win exciting prizes! +

+ {/* Center the button */} +
+ + Learn More + +
+
+
-
+ +

Workshops

@@ -42,17 +47,19 @@ const GetInvolvedSection: React.FC = () => { Join our workshops to learn about the latest technologies and best practices in software development.

- - Learn More - +
+ + Learn More + +
{/* Event 3 */} -
+

Community Meetups

@@ -60,17 +67,19 @@ const GetInvolvedSection: React.FC = () => { Connect with fellow contributors and share ideas at our regular community meetups.

- - Learn More - +
+ + Learn More + +
{/* Event 4 */} -
+

Mentorship Programs

@@ -78,34 +87,40 @@ const GetInvolvedSection: React.FC = () => { Sign up for our mentorship programs to get guidance from experienced developers in the industry.

- - Learn More - +
+ + Learn More + +
{/* Event 5 */} -
-

- Online Courses -

-

- Enroll in our online courses to gain valuable skills and - certifications. -

- - Learn More - -
-
+ {/* Event 5 */} +
+

+ Online Courses +

+

+ Enroll in our online courses to gain valuable skills and certifications. +

+ {/* Center the button */} +
+ + Learn More + +
+
+
+ -
+

Open Source Contributions

@@ -113,12 +128,14 @@ const GetInvolvedSection: React.FC = () => { Contribute to our project and enhance your coding skills while making a positive impact!

- - Learn More - +
+ + Learn More + +
diff --git a/src/components/Homepage/PopularAlgorithmsSection.tsx b/src/components/Homepage/PopularAlgorithmsSection.tsx index 2a343803b..b4a1f22ea 100644 --- a/src/components/Homepage/PopularAlgorithmsSection.tsx +++ b/src/components/Homepage/PopularAlgorithmsSection.tsx @@ -47,25 +47,28 @@ const PopularAlgorithmsSection: React.FC = () => {
{algorithms.map((algorithm, index) => ( - -
+ key={index} + className="relative p-6 bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden transition-transform duration-300 ease-in-out hover:shadow-2xl hover:bg-[#3b82f6] cursor-pointer group flex flex-col justify-between h-full" + initial={{ scale: 1 }} + whileHover={{ scale: 1.05 }} // Scale on hover + whileTap={{ scale: 0.95 }} // Scale down on tap + > + +
+

{algorithm.title}

-

+

{algorithm.description}

+
+
{ Learn More
- +
+
+ ))}