Skip to content

Commit

Permalink
style: Adds styling of Course Index Image to CSS file
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyasMandlik committed Aug 8, 2023
1 parent 92672c3 commit 76cbe40
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
10 changes: 5 additions & 5 deletions frontend/src/components/courses/CoursePageIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ const CoursePageIndex = () => {
return (
<>
<div
className="flex mx-3 sm:mx-10 my-1 sm:my-2 shadow-md rounded-lg bg-course-page bg-[length:100%_25vh] h-[25vh] lg:bg-[length:100%_50vh] md:bg-[length:100%_30vh] lg:h-[50vh] md:h-[30vh] justify-center"
className="ImageContainer"
role="coursePageIndexImage"
>
<div className="flex flex-col justify-evenly items-center text-white text-center p-4">
<h2 className="text-md xsm:text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold mt-4 mb-2">
<div className="ContentContainer">
<h2 className="ContentHeading">
Lets Learn Something New, Today !!!
</h2>

<p className="text-xs xsm:text-base sm:text-lg md:text-xl lg:text-2xl mb-4">
<p className="ContentParagraph">
If you can learn 1% better each day for one year, you will end up 37
times better by the time you are done.
</p>
Expand All @@ -23,4 +23,4 @@ const CoursePageIndex = () => {
);
};

export default CoursePageIndex;
export default CoursePageIndex;
18 changes: 15 additions & 3 deletions frontend/src/css/courses/CoursePageIndex.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
.coursePageIndexImage{
@apply h-auto border-solid border-black
}
.ImageContainer {
@apply flex mx-3 sm:mx-10 my-1 sm:my-2 shadow-md rounded-lg bg-course-page bg-[length:100%_25vh] h-[25vh] lg:bg-[length:100%_50vh] md:bg-[length:100%_30vh] lg:h-[50vh] md:h-[30vh] justify-center;
}

.ContentContainer {
@apply flex flex-col justify-evenly items-center text-white text-center p-4;
}

.ContentHeading {
@apply text-sm xsm:text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold mt-4 mb-2;
}

.ContentParagraph {
@apply text-xs xsm:text-base sm:text-lg md:text-xl lg:text-2xl mb-4;
}

0 comments on commit 76cbe40

Please sign in to comment.