Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
🎨 use Sheet component for readme text
Browse files Browse the repository at this point in the history
use Sheet component for readme text

**Intentions:**

- 🎨 - Improve format/structure
  • Loading branch information
TimMikeladze committed Jan 23, 2023
1 parent 3dbe4f0 commit 814eaed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GetStaticProps } from 'next';
import { Stack, Box } from '@mui/joy';
import { Box, Sheet } from '@mui/joy';
import { withTranslations } from '@/util/i18n/withTranslations';
import { join } from 'path';
import { existsSync, readFileSync } from 'fs';
Expand All @@ -12,9 +12,12 @@ export interface HomePageProps {

const HomePage = (props: HomePageProps) => {
return (
<Stack spacing={1}>
<Sheet
variant="soft"
sx={(theme) => ({ px: 2, py: 1, borderRadius: theme.spacing(1) })}
>
<Box dangerouslySetInnerHTML={{ __html: props.contentHtml }} />
</Stack>
</Sheet>
);
};

Expand Down

0 comments on commit 814eaed

Please sign in to comment.