Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft add faq scene #65

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Contacts from './scenes/Contacts';
import Form from './scenes/Form';
// import Line from './scenes/Line';
// import Pie from './scenes/Pie';
// import FAQ from './scenes/FAQ';
import FAQ from './scenes/FAQ';
// import Geograph from './scenes/Geograph';
import Calendar from './scenes/Calendar';

Expand All @@ -35,8 +35,8 @@ function App() {
{/* <Route path="/bar" element={<Bar />} />
<Route path="/pie" element={<Pie />} />
<Route path="/line" element={<Line />} />
<Route path="/geograph" element={<Geograph />} /> */}
<Route path="/faq" element={<FAQ />} />
<Route path="/geograph" element={<Geograph />} /> */}
<Route path="/calendar" element={<Calendar />} />
</Routes>
</main>
Expand Down
92 changes: 92 additions & 0 deletions src/scenes/FAQ/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import { Box, useTheme, Typography } from '@mui/material';
import Accordion from '@mui/material/Accordion';
import AccordionSummary from '@mui/material/AccordionSummary';
import AccordionDetails from '@mui/material/AccordionDetails';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import Header from '../../components/Shared/Header/Header';
import { tokens } from '../../theme';

const FAQ = () => {
const theme = useTheme();
const colors = tokens(theme.palette.mode);

return (
<Box m="20px">
<Header title="FAQ" subTitle="Frequently Asked Questions" />
<Accordion>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
>
<Typography color={colors.greenAccent[500]} variant="h5">Accordion 1</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
malesuada lacus ex, sit amet blandit leo lobortis eget.
</Typography>
</AccordionDetails>
</Accordion>
<Accordion>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
>
<Typography color={colors.greenAccent[500]} variant="h5">Accordion 2</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
malesuada lacus ex, sit amet blandit leo lobortis eget.
</Typography>
</AccordionDetails>
</Accordion>
<Accordion>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
>
<Typography color={colors.greenAccent[500]} variant="h5">Accordion 3</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
malesuada lacus ex, sit amet blandit leo lobortis eget.
</Typography>
</AccordionDetails>
</Accordion>
<Accordion>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
>
<Typography color={colors.greenAccent[500]} variant="h5">Accordion 4</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
malesuada lacus ex, sit amet blandit leo lobortis eget.
</Typography>
</AccordionDetails>
</Accordion>
<Accordion>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
>
<Typography color={colors.greenAccent[500]} variant="h5">Accordion 5</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
malesuada lacus ex, sit amet blandit leo lobortis eget.
</Typography>
</AccordionDetails>
</Accordion>
<Accordion disabled>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
>
<Typography color={colors.greenAccent[500]} variant="h5">Disabled Accordion</Typography>
</AccordionSummary>
</Accordion>
</Box>
);
};

export default FAQ;