diff --git a/src/components/molecules/Project/Project.tsx b/src/components/molecules/Project/Project.tsx index 12e84cb..d673ec4 100644 --- a/src/components/molecules/Project/Project.tsx +++ b/src/components/molecules/Project/Project.tsx @@ -2,11 +2,60 @@ import React from 'react' import { Accordion, AccordionDetails, AccordionSummary, Typography } from '@mui/material' import { ExpandMore as ExpandIcon } from '@mui/icons-material' -const Project = (props: { title: string; children?: React.ReactNode }) => { +interface ProjectProps { + title: string + subtitle?: React.ReactNode + children?: React.ReactNode +} +const Project = (props: ProjectProps) => { return ( - - }> - {props.title} + + } + sx={{ + flexDirection: 'row-reverse', + '& .MuiAccordionSummary-expandIconWrapper': { + transform: 'rotate(-90deg)', + }, + '& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': { + transform: 'rotate(0deg)', + }, + '& .MuiAccordionSummary-content': { + marginLeft: 2, + }, + }}> +
+ + {props.title} + + {props.subtitle} +
{props.children}