diff --git a/nepalingo-web/src/components/DailyQuiz.tsx b/nepalingo-web/src/components/ActivityCard.tsx similarity index 60% rename from nepalingo-web/src/components/DailyQuiz.tsx rename to nepalingo-web/src/components/ActivityCard.tsx index 07f78f6..3b8cbcb 100644 --- a/nepalingo-web/src/components/DailyQuiz.tsx +++ b/nepalingo-web/src/components/ActivityCard.tsx @@ -2,14 +2,14 @@ import React from "react"; import { useNavigate } from "react-router-dom"; import Button from "./Button"; -interface DailyQuizProps { +interface ActivityCardProps { backgroundImageUrl: string; quizYourselfText: string; descriptionText: string; buttonText: string; } -const DailyQuiz: React.FC = ({ +const ActivityCard: React.FC = ({ backgroundImageUrl, quizYourselfText, descriptionText, @@ -22,18 +22,16 @@ const DailyQuiz: React.FC = ({ }; return ( -
-
-

{quizYourselfText}

{/* Reduced margin-bottom */} -

{descriptionText}

{/* Reduced margin-bottom */} +
+ Background +
+
+

{quizYourselfText}

+

{descriptionText}

-