2024-06-19 21:18:35 +01:00
|
|
|
import {Box, Icon, Input, Stack, TextField} from "@mui/material";
|
|
|
|
|
import Grid from "@mui/material/Grid";
|
2024-06-19 19:10:14 +01:00
|
|
|
import Typography from "@mui/material/Typography";
|
|
|
|
|
import SearchIcon from '@mui/icons-material/Search';
|
2024-06-19 21:18:35 +01:00
|
|
|
import {useNavigate} from "react-router-dom";
|
2024-06-19 19:10:14 +01:00
|
|
|
|
2024-06-19 21:18:35 +01:00
|
|
|
const exampleTools: { label: string; url: string }[] = [{
|
|
|
|
|
label: 'Create a transparent image',
|
|
|
|
|
url: ''
|
|
|
|
|
},
|
|
|
|
|
{label: 'Convert text to morse code', url: ''},
|
|
|
|
|
{label: 'Change GIF speed', url: ''},
|
|
|
|
|
{label: 'Pick a random item', url: ''},
|
|
|
|
|
{label: 'Find and replace text', url: ''},
|
|
|
|
|
{label: 'Convert emoji to image', url: ''},
|
|
|
|
|
{label: 'Split a string', url: '/string/split'},
|
|
|
|
|
{label: 'Calculate number sum', url: ''},
|
|
|
|
|
{label: 'Pixelate an image', url: ''},
|
|
|
|
|
]
|
2024-06-19 19:10:14 +01:00
|
|
|
export default function Home() {
|
2024-06-19 21:18:35 +01:00
|
|
|
const navigate = useNavigate()
|
|
|
|
|
|
2024-06-19 19:10:14 +01:00
|
|
|
return (<Box padding={5} display={'flex'} flexDirection={'column'} alignItems={'center'} justifyContent={'center'}
|
|
|
|
|
width={'100%'}>
|
|
|
|
|
<Box width={"60%"}>
|
|
|
|
|
<Stack mb={1} direction={'row'} spacing={1}> <Typography fontSize={30}>Transform Your Workflow
|
|
|
|
|
with </Typography><Typography
|
|
|
|
|
fontSize={30}
|
|
|
|
|
color={'primary'}>Omni
|
|
|
|
|
Tools</Typography></Stack>
|
|
|
|
|
<Typography fontSize={20} mb={2}>
|
2024-06-19 19:38:26 +01:00
|
|
|
Boost your productivity with Omni Tools, the ultimate toolkit for getting things done quickly! Access thousands
|
2024-06-19 19:10:14 +01:00
|
|
|
of
|
|
|
|
|
user-friendly utilities for editing images, text, lists, and data, all directly from your browser.
|
|
|
|
|
</Typography>
|
|
|
|
|
|
|
|
|
|
<TextField fullWidth placeholder={'Search all tools'} sx={{borderRadius: 2}} InputProps={{
|
|
|
|
|
endAdornment: (
|
|
|
|
|
<SearchIcon/>
|
|
|
|
|
),
|
|
|
|
|
}}/>
|
2024-06-19 19:38:26 +01:00
|
|
|
<Grid container spacing={1} mt={2}>
|
|
|
|
|
{exampleTools.map((tool) => (
|
|
|
|
|
<Grid
|
2024-06-19 21:18:35 +01:00
|
|
|
onClick={() => navigate(tool.url)}
|
2024-06-19 19:38:26 +01:00
|
|
|
item
|
|
|
|
|
xs={4}
|
|
|
|
|
key={tool.label}
|
|
|
|
|
display="flex"
|
|
|
|
|
flexDirection="row"
|
|
|
|
|
justifyContent="center"
|
|
|
|
|
alignItems="center"
|
|
|
|
|
padding={2}
|
|
|
|
|
sx={{borderWidth: 1, borderRadius: 3, borderColor: 'grey', borderStyle: 'solid', cursor: 'pointer'}}
|
|
|
|
|
>
|
|
|
|
|
<Typography>{tool.label}</Typography>
|
|
|
|
|
</Grid>
|
|
|
|
|
))}
|
|
|
|
|
</Grid>
|
2024-06-19 19:10:14 +01:00
|
|
|
</Box>
|
|
|
|
|
</Box>)
|
|
|
|
|
}
|