Skip to content

Commit

Permalink
chore: style buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
iib0011 committed Feb 25, 2025
1 parent 6d19b4f commit a1a3331
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 49 deletions.
63 changes: 31 additions & 32 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions src/components/ToolHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
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';
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;
Expand All @@ -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>
);
Expand Down

0 comments on commit a1a3331

Please sign in to comment.