Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,67 @@
'use client';

import Box from '@mui/material/Box';
import Card from '@mui/material/Card';
import NumberedCard from '@/_components/getting-started/NumberedCard';
import Stack from '@mui/material/Stack';
import ConstructionIcon from '@mui/icons-material/Construction';
import SecurityIcon from '@mui/icons-material/Security';
import LanIcon from '@mui/icons-material/Lan';
import AssessmentIcon from '@mui/icons-material/Assessment';
import Divider from '@mui/material/Divider';

const GettingStarted = () => {
return <Box>Hello There!</Box>;
return (
<Card
variant="outlined"
sx={{
background: '#ffcc0070',
padding: '2em',
borderRadius: '20px'
}}>
<Stack direction="column" spacing={2}>
<Box>
<h2>How it works?</h2>
<p>
The Monkey uses various methods to propagate across a
data center and reports to this Monkey Island Control
server
</p>
</Box>
<Divider />
<Stack direction="row" spacing={2}>
<NumberedCard number={1} title="First card">
<ConstructionIcon fontSize="large" />
<p>
<b>Setup your Malware</b>
</p>
<p>Configure what you want the malware to do</p>
</NumberedCard>
<NumberedCard number={2} title="Second card">
<SecurityIcon fontSize="large" />
<p>
<b>Run Monkey</b>
</p>
<p>Configure what you want the malware to do</p>
</NumberedCard>
<NumberedCard number={3} title="Second card">
<LanIcon fontSize="large" />
<p>
<b>Review Infection Map</b>
</p>
<p>Configure what you want the malware to do</p>
</NumberedCard>
<NumberedCard number={4} title="Second card">
<AssessmentIcon fontSize="large" />
<p>
<b>Security Reports</b>
</p>
<p>Configure what you want the malware to do</p>
</NumberedCard>
</Stack>
</Stack>
</Card>
);
};

export default GettingStarted;
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Box from '@mui/material/Box';
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import TabLabel from './TabLabel';
import CardActionArea from '@mui/material/CardActionArea';

export interface NumberedCardProps {
children: React.ReactNode;
number: number;
icon?: React.ReactNode;
title?: string;
}

const NumberedCard = (props: NumberedCardProps) => {
return (
<>
<Box
sx={{
display: 'inline-flex'
}}>
<TabLabel>{props.number}</TabLabel>
<Card>
<CardActionArea>
<CardContent>{props.children}</CardContent>
</CardActionArea>
</Card>
</Box>
</>
);
};

export default NumberedCard;
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { styled } from '@mui/material/styles';

export interface NumberedTabProps {
number: number;
color?: string;
}

const NumberedTabSpan = styled('span')(({ theme }) => ({
height: '24px',
fontSize: '16px',
paddingLeft: '7px',
paddingRight: '3px',
marginTop: '15px',
textAlign: 'center',
left: 0,
top: '1em',
borderRadius: '12px 0 0 12px',
color: theme.palette.primary.contrastText,
background: theme.palette.primary.main
}));

export default NumberedTabSpan;
Empty file.