Skip to content

Commit

Permalink
Changed some conflicting styles and added overlay image in the local …
Browse files Browse the repository at this point in the history
…directory
  • Loading branch information
sirElvin committed Jul 21, 2024
1 parent ecf2ce4 commit 208fad1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file added nepalingo-web/src/assets/CardOverlay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion nepalingo-web/src/components/ActivityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ActivityCard: React.FC<ActivityCardProps> = ({
};

return (
<div className="flex-1 aspect-w-16 aspect-h-9 relative daily-quiz-card text-white p-4 sm:p-6 md:p-8 rounded-lg flex flex-col justify-end pb-5 overflow-hidden">
<div className="relative daily-quiz-card text-white p-4 sm:p-6 md:p-8 rounded-lg flex flex-col justify-end h-[180px] sm:h-[200px] md:h-[220px] pb-5 overflow-hidden">
<img
src={backgroundImageUrl}
alt="Background"
Expand All @@ -46,3 +46,4 @@ const ActivityCard: React.FC<ActivityCardProps> = ({
};

export default ActivityCard;

2 changes: 1 addition & 1 deletion nepalingo-web/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Home: React.FC = () => {
</div>
<div className="mb-5 pt-5">
<ActivityCard
backgroundImageUrl="https://t4.ftcdn.net/jpg/06/28/27/29/360_F_628272989_krphWxzqARpTZ20wOBU0YeH2Ecf7iCtI.jpg"
backgroundImageUrl="src\assets\CardOverlay.jpg"
quizYourselfText="QUIZ YOURSELF"
descriptionText=" Taking Quiz is a better and fun way for learning"
buttonText="Start Quiz"
Expand Down
1 change: 0 additions & 1 deletion nepalingo-web/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const config: Config = {
},
},
plugins: [
require('@tailwindcss/aspect-ratio'),
],
};

Expand Down

0 comments on commit 208fad1

Please sign in to comment.