diff --git a/frontends/mit-open/src/pages/UnitsListingPage/UnitsListingPage.tsx b/frontends/mit-open/src/pages/UnitsListingPage/UnitsListingPage.tsx index 51524c90fa..e27489140a 100644 --- a/frontends/mit-open/src/pages/UnitsListingPage/UnitsListingPage.tsx +++ b/frontends/mit-open/src/pages/UnitsListingPage/UnitsListingPage.tsx @@ -4,10 +4,8 @@ import { } from "api/hooks/learningResources" import { Banner, - MuiCard, - CardContent, + Card, Container, - Link, Skeleton, Typography, styled, @@ -55,7 +53,7 @@ const sortUnits = ( } const Page = styled.div(({ theme }) => ({ - backgroundColor: theme.custom.colors.white, + backgroundColor: theme.custom.colors.lightGray1, })) const PageContent = styled.div(({ theme }) => ({ @@ -93,6 +91,10 @@ const PageHeaderText = styled(Typography)(({ theme }) => ({ ...theme.typography.subtitle1, })) +const CardStyled = styled(Card)({ + height: "100%", +}) + const UnitContainer = styled.div(({ theme }) => ({ display: "flex", flexDirection: "column", @@ -149,23 +151,15 @@ const GridContainer = styled.div(({ theme }) => ({ }, })) -const UnitCardContainer = styled(MuiCard)({ +const UnitCardContainer = styled.div({ display: "flex", flexDirection: "column", alignItems: "center", + padding: "16px", + height: "100%", }) -const UnitCardLink = styled(Link)({ - display: "flex", - flexDirection: "column", - alignItems: "center", - flexGrow: 1, - "&:hover": { - textDecoration: "none", - }, -}) - -const UnitCardContent = styled(CardContent)({ +const UnitCardContent = styled.div({ display: "flex", flexDirection: "column", flexGrow: 1, @@ -318,41 +312,47 @@ const UnitCard: React.FC = (props) => { return channelDetailQuery.isLoading ? ( ) : ( - - - - - - - - {unit.value_prop} - - - - {courseCount > 0 ? `Courses: ${courseCount}` : ""} - - - {programCount > 0 ? `Programs: ${programCount}` : ""} - - - - - + + + + + + + + + {unit.value_prop} + + + + {courseCount > 0 ? `Courses: ${courseCount}` : ""} + + + {programCount > 0 ? `Programs: ${programCount}` : ""} + + + + + + ) } const UnitCardLoading = () => { return ( - - - - - - - - - - + + + + + + + + + + + + + + ) }