-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8205d9
commit f9acbfd
Showing
36 changed files
with
870 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + React + TS</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Hiddify - Quick Setup</title> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
import { Box } from '@mui/material'; | ||
import Typography from './Typography'; | ||
|
||
const Loading = () => { | ||
return <div></div>; | ||
return ( | ||
<Box | ||
component='div' | ||
sx={{ | ||
width: '100%', | ||
height: '100vh', | ||
overflow: 'hidden', | ||
background: theme => theme.palette.bodyBg, | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
color: theme => theme.palette.btnBg, | ||
}} | ||
> | ||
<Typography size={30} weight={500}> | ||
Loading... | ||
</Typography> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Loading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Button, ButtonProps, SxProps, Theme } from '@mui/material'; | ||
import { FC, ReactNode } from 'react'; | ||
|
||
interface IProps extends ButtonProps { | ||
sx?: SxProps<Theme> | undefined; | ||
children: ReactNode; | ||
} | ||
|
||
const MainButton: FC<IProps> = ({ sx, children, ...props }) => { | ||
return ( | ||
<Button | ||
variant='contained' | ||
sx={{ | ||
border: 'none', | ||
borderRadius: '100px', | ||
padding: '15px 40px', | ||
background: theme => theme.palette.btnBg, | ||
position: 'relative', | ||
color: theme => theme.palette.btnText, | ||
...sx, | ||
}} | ||
{...props} | ||
> | ||
{children} | ||
</Button> | ||
); | ||
}; | ||
|
||
export default MainButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Typography as MuiTypography, SxProps, Theme } from '@mui/material'; | ||
import { TypographyOwnProps, TypographyTypeMap } from '@mui/material/Typography'; | ||
import { FC, ReactNode } from 'react'; | ||
|
||
interface TProps extends TypographyOwnProps { | ||
weight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; | ||
size: number; | ||
variant?: TypographyTypeMap['props']['variant']; | ||
sx?: SxProps<Theme> | undefined; | ||
children: ReactNode; | ||
} | ||
|
||
const Typography: FC<TProps> = ({ sx, variant, children, size, weight, ...props }) => { | ||
return ( | ||
<MuiTypography | ||
variant={variant} | ||
sx={{ | ||
fontSize: { | ||
xs: size / 2 + 'px', | ||
sm: size / 1.8 + 'px', | ||
md: size / 1.6 + 'px', | ||
lg: size / 1.4 + 'px', | ||
xl: size, | ||
}, | ||
fontWeight: weight, | ||
...sx, | ||
}} | ||
{...props} | ||
> | ||
{children} | ||
</MuiTypography> | ||
); | ||
}; | ||
|
||
export default Typography; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
* { | ||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
} | ||
padding: 0; | ||
margin: 0; | ||
} |
Oops, something went wrong.