import type { BoxProps } from '@mui/material/Box';
import { useState } from 'react';
import { m } from 'framer-motion';
import { varAlpha } from 'minimal-shared/utils';
import Box from '@mui/material/Box';
import Link from '@mui/material/Link';
import Stack from '@mui/material/Stack';
import Button from '@mui/material/Button';
import Container from '@mui/material/Container';
import Typography from '@mui/material/Typography';
import Accordion, { accordionClasses } from '@mui/material/Accordion';
import AccordionDetails, { accordionDetailsClasses } from '@mui/material/AccordionDetails';
import AccordionSummary, { accordionSummaryClasses } from '@mui/material/AccordionSummary';
import { Iconify } from 'src/components/iconify';
import { varFade, MotionViewport } from 'src/components/animate';
import { SectionTitle } from './components/section-title';
import { FloatLine, FloatPlusIcon, FloatTriangleDownIcon } from './components/svg-elements';
// ----------------------------------------------------------------------
const FAQs = [
{
question: 'How can I get the update?',
answer: (
You will get 12 months of free
updates
with the purchase. Please renew your license to get updates after that.
),
},
{
question: 'Which license is right for you?',
answer: (
All licenses do not apply to open source.
One licenses / one end product (3 licenses / 3 products...).
Standard / Plus license used in free products (Internal management...).
Extended license used in charge products, collect fees from users
(SAAS...).
Learn more about the
package & license
),
},
{
question: 'How long is my license valid for?',
answer: (
The license is lifetime.
You get 12 months of free updates.
),
},
{
question: 'Which platforms will the template support?',
answer: (
{`The components in MUI are designed to work in the latest, stable releases of all major browsers, including Chrome, Firefox, Safari, and Edge. We don't support Internet Explorer 11. `}
Learn more about the
supported platforms
),
},
{
question: 'For what kind of projects is the Standard license intended?',
answer: (
The Standard license is designed for internal applications in which staff will access the
application. An example could be the back-office dashboard of a public-facing e-commerce
website in which staff would sign in and manage inventory, customers, etc.
),
},
{
question: 'Do you have a free demo to review the code before purchasing?',
answer: (
Yes, you can check out our
open source
dashboard template which should give you an overview of the code quality and folder
structure. Keep in mind that some aspects may differ from this Paid version.
),
},
];
// ----------------------------------------------------------------------
export function HomeFAQs({ sx, ...other }: BoxProps) {
const [expanded, setExpanded] = useState(FAQs[0].question);
const handleChange = (panel: string) => (event: React.SyntheticEvent, isExpanded: boolean) => {
setExpanded(isExpanded ? panel : false);
};
const renderDescription = () => (
);
const renderContent = () => (
({
mt: 8,
mx: 'auto',
maxWidth: 720,
mb: { xs: 5, md: 8 },
}),
]}
>
{FAQs.map((item, index) => (
({
borderRadius: 2,
transition: theme.transitions.create(['background-color'], {
duration: theme.transitions.duration.short,
}),
'&::before': { display: 'none' },
'&:hover': { bgcolor: varAlpha(theme.vars.palette.grey['500Channel'], 0.16) },
'&:first-of-type, &:last-of-type': { borderRadius: 2 },
[`&.${accordionClasses.expanded}`]: {
m: 0,
borderRadius: 2,
boxShadow: 'none',
bgcolor: varAlpha(theme.vars.palette.grey['500Channel'], 0.08),
},
[`& .${accordionSummaryClasses.root}`]: {
py: 3,
px: 2.5,
minHeight: 'auto',
[`& .${accordionSummaryClasses.content}`]: {
m: 0,
[`&.${accordionSummaryClasses.expanded}`]: { m: 0 },
},
},
[`& .${accordionDetailsClasses.root}`]: { px: 2.5, pt: 0, pb: 3 },
})}
>
}
aria-controls={`panel${index}bh-content`}
id={`panel${index}bh-header`}
>
{item.question}{item.answer}
))}
);
const renderContact = () => (
({
px: 3,
py: 8,
textAlign: 'center',
background: `linear-gradient(to left, ${varAlpha(theme.vars.palette.grey['500Channel'], 0.08)}, transparent)`,
}),
]}
>
Still have questions?
Please describe your case to receive the most accurate advice
}
>
Contact us
);
return (
{topLines()}
{renderDescription()}
{renderContent()}
{bottomLines()}
{renderContact()}
);
}
// ----------------------------------------------------------------------
const topLines = () => (
<>
>
);
const bottomLines = () => (
<>
>
);