Skip to content

Commit cc5e46a

Browse files
authored
chore: style improvements (#6)
1 parent f01c525 commit cc5e46a

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/components/Hero/Hero.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ export const Hero = () => {
5757
</Typography>
5858
</Box>
5959

60-
<Stack direction={{ xs: 'column', sm: 'row' }} spacing={2}>
60+
<Stack
61+
direction={{ xs: 'column', sm: 'row' }}
62+
spacing={2}
63+
sx={{ width: { xs: '100%', md: 'auto' } }}
64+
>
6165
<Button
66+
fullWidth
6267
variant="contained"
6368
size="medium"
6469
href="https://www.npmjs.com/package/@dfsync/client"
@@ -69,6 +74,7 @@ export const Hero = () => {
6974
View on npm
7075
</Button>
7176
<Button
77+
fullWidth
7278
component={RouterLink}
7379
variant="outlined"
7480
size="medium"

src/components/ProjectBadges/ProjectBadges.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,21 @@ export const ProjectBadges = () => {
3838
/>
3939
</Link>
4040

41-
{/* github stars */}
41+
{/* LICENSE */}
4242
<Link
43-
href={`https://github.com/${repoName}/tree/main/packages/client`}
43+
href={`https://github.com/${repoName}/blob/main/LICENSE`}
4444
target="_blank"
4545
rel="noreferrer"
4646
underline="none"
4747
sx={{ lineHeight: 1 }}
4848
>
4949
<Box
5050
component="img"
51-
src={`https://img.shields.io/github/stars/${repoName}`}
52-
alt="github stars"
51+
src={`https://img.shields.io/badge/License-MIT-yellow.svg`}
52+
alt="license"
5353
sx={{ height: 20 }}
5454
/>
5555
</Link>
56-
57-
<Box
58-
component="img"
59-
src={`https://img.shields.io/github/license/${repoName}`}
60-
alt="license"
61-
sx={{ height: 20 }}
62-
/>
6356
</Stack>
6457
);
6558
};

0 commit comments

Comments
 (0)