Skip to content

Commit

Permalink
feat(components): enchancement
Browse files Browse the repository at this point in the history
Signed-off-by: captain-Akshay <[email protected]>
  • Loading branch information
captain-Akshay committed Apr 18, 2024
1 parent 0b0db2c commit 42d9843
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/custom/ChapterCard/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ALABASTER_WHITE, KEPPEL, MIDNIGHT_BLACK } from '../../theme';
export const ChapterCardWrapper = styled('div')(({ theme }) => ({
transition: '0.8s cubic-bezier(0.2, 0.8, 0.2, 1)',
padding: '1rem 1.25rem',
margin: '2rem 0',
width: '64rem',
backgroundColor: theme.palette.mode === 'light' ? ALABASTER_WHITE : MIDNIGHT_BLACK,
display: 'flex',
border: `1px solid ${
Expand Down
12 changes: 7 additions & 5 deletions src/custom/LearningCard/style.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { styled } from '@mui/material/styles';
import { ONYX_BLACK, SILVER_GRAY } from '../../theme';
import { BLACK, ONYX_BLACK, SILVER_GRAY, WHITE } from '../../theme';

const CardWrapper = styled('div')({
maxWidth: '28rem',
Expand All @@ -8,16 +8,18 @@ const CardWrapper = styled('div')({
borderRadius: '1rem'
});

const CardActive = styled('div')({
const CardActive = styled('div')(({ theme }) => ({
cursor: 'pointer',
transition: 'all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s',
'&:hover': {
boxShadow: 'rgba(0, 179, 158, 0.9) 0px 0px 19px 6px'
}
});
},
backgroundColor: theme.palette.mode === 'light' ? WHITE : BLACK
}));

const CardLink = styled('a')({
color: 'black'
color: 'black',
textDecoration: 'none'
});

const CardParent = styled('div')(({ theme }) => ({
Expand Down
7 changes: 3 additions & 4 deletions src/custom/SetupPrerequisite/SetupPrerequisite.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { FC } from 'react';
import { IconProps } from '../../icons/types';
import React from 'react';
import { Card, CardHeader, ContainerCardWrapper, SetupPreReqWrapper } from './style';

// const meshery =
Expand All @@ -9,7 +8,7 @@ import { Card, CardHeader, ContainerCardWrapper, SetupPreReqWrapper } from './st
interface SetupItem {
heading: string;
description: string;
Icon: FC<IconProps>;
Icon: JSX.Element;
onClick: () => void;
}
interface SetupPreReqProps {
Expand All @@ -30,7 +29,7 @@ const SetupPreReq: React.FC<SetupPreReqProps> = ({ Steps }) => (
<Card>
<CardHeader>
<h2>{item.heading}</h2>
{item.Icon && <item.Icon />}
{item.Icon}
</CardHeader>
<p>{item.description}</p>
</Card>
Expand Down

0 comments on commit 42d9843

Please sign in to comment.