mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
chore: style buttons
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Box, Button } from '@mui/material';
|
||||
import { Box, Button, styled, useTheme } from '@mui/material';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import ToolBreadcrumb from './ToolBreadcrumb';
|
||||
import { capitalizeFirstLetter } from '../utils/string';
|
||||
@@ -6,6 +6,14 @@ import Grid from '@mui/material/Grid';
|
||||
import { Icon, IconifyIcon } from '@iconify/react';
|
||||
import { categoriesColors } from '../config/uiConfig';
|
||||
|
||||
const StyledButton = styled(Button)(({ theme }) => ({
|
||||
backgroundColor: 'white',
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
color: 'white'
|
||||
}
|
||||
}));
|
||||
|
||||
interface ToolHeaderProps {
|
||||
title: string;
|
||||
description: string;
|
||||
@@ -14,37 +22,29 @@ interface ToolHeaderProps {
|
||||
}
|
||||
|
||||
function ToolLinks() {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<Grid container spacing={2} mt={1}>
|
||||
<Grid item md={12} lg={4}>
|
||||
<Button
|
||||
<StyledButton
|
||||
sx={{ backgroundColor: 'white' }}
|
||||
fullWidth
|
||||
variant="outlined"
|
||||
href="#tool"
|
||||
>
|
||||
Use This Tool
|
||||
</Button>
|
||||
</StyledButton>
|
||||
</Grid>
|
||||
<Grid item md={12} lg={4}>
|
||||
<Button
|
||||
sx={{ backgroundColor: 'white' }}
|
||||
fullWidth
|
||||
variant="outlined"
|
||||
href="#examples"
|
||||
>
|
||||
<StyledButton fullWidth variant="outlined" href="#examples">
|
||||
See Examples
|
||||
</Button>
|
||||
</StyledButton>
|
||||
</Grid>
|
||||
<Grid item md={12} lg={4}>
|
||||
<Button
|
||||
sx={{ backgroundColor: 'white' }}
|
||||
fullWidth
|
||||
variant="outlined"
|
||||
href="#tour"
|
||||
>
|
||||
<StyledButton fullWidth variant="outlined" href="#tour">
|
||||
Learn How to Use
|
||||
</Button>
|
||||
</StyledButton>
|
||||
</Grid>
|
||||
</Grid>
|
||||
);
|
||||
|
Reference in New Issue
Block a user