import React from
"react"
;
import Accordion from
"@mui/material/Accordion"
;
import AccordionSummary from
"@mui/material/AccordionSummary"
;
import AccordionDetails from
"@mui/material/AccordionDetails"
;
import Typography from
"@mui/material/Typography"
;
import ArrowDropDownIcon from
'@mui/icons-material/ArrowDropDown'
;
function
App() {
return
(
<div>
<div style={{ textAlign:
"center"
,
color:
"green"
}}>
<h1>GeeksforGeeks</h1>
<h2>React MUI Card Surface</h2>
</div>
<center>
<div style={{ width: 500 }}>
<Accordion style={{ backgroundColor:
'#8AFF89'
}}>
<AccordionSummary
expandIcon={<ArrowDropDownIcon />}>
<Typography>Courses</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
<li>C++</li>
<li>Java</li>
<li>Python</li>
</Typography>
</AccordionDetails>
</Accordion>
<Accordion style={{ backgroundColor:
'#8AFF89'
}}>
<AccordionSummary
expandIcon={<ArrowDropDownIcon />}>
<Typography>Tutorials</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
<li>DSA</li>
<li>Algorithms</li>
<li>Web Development</li>
</Typography>
</AccordionDetails>
</Accordion>
<Accordion style={{ backgroundColor:
'#8AFF89'
}}>
<AccordionSummary
expandIcon={<ArrowDropDownIcon />}>
<Typography>Practice</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
<li>Problem of the Day</li>
<li>All DSA Problems</li>
</Typography>
</AccordionDetails>
</Accordion>
</div>
</center>
</div>
);
}
export
default
App;