Skip to content

Commit

Permalink
feat: add profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
linicam committed Nov 2, 2024
1 parent 8289251 commit 99211aa
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 5 deletions.
17 changes: 17 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"@rollup/rollup-linux-x64-gnu": "*"
},
"dependencies": {
"@mdi/js": "^7.4.47",
"@mdi/react": "^1.6.1",
"i18next": "^23.16.4",
"react-i18next": "^15.1.0"
}
Expand Down
95 changes: 90 additions & 5 deletions packages/front-end/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import DarkModeIcon from '@mui/icons-material/DarkMode'
import LightModeIcon from '@mui/icons-material/LightMode'
import {
AppBar,
Avatar,
Box,
Button,
CssBaseline,
IconButton,
Link,
MenuItem,
Select,
Expand All @@ -19,6 +21,8 @@ import { LanguageCode } from '@shared/enums/languageCode'
import { getNameByLanguageCode } from '@shared/model/language'
import { SpeedInsights } from '@vercel/speed-insights/react'

import { mdiEmail, mdiGithub, mdiTwitter } from '@mdi/js'
import Icon from '@mdi/react'
import OpenInNewIcon from '@mui/icons-material/OpenInNew'
import { DefaultParameterValues } from '@shared/constants/defaultParameterValues'
import { ALL_QUARTZ } from '@shared/constants/quartz'
Expand Down Expand Up @@ -294,20 +298,101 @@ const Main = () => {
)}
</div>
<div>
<Typography variant="h5" sx={{ marginBottom: '1rem' }}>
{t('development_title')}
</Typography>
<div style={{ marginBottom: '0.5rem' }}>
<Box
sx={{
position: 'relative',
marginBottom: '1rem',
}}
>
<Typography variant="h5">{t('development_title')}</Typography>
<Button
variant="outlined"
sx={{
maxHeight: '40px',
position: 'absolute',
right: 0,
top: 0,
}}
href="https://github.com/AlvISsReimu/kiseki-orbment-assistant"
target="_blank"
endIcon={<OpenInNewIcon />}
>
{t('repository')}
</Button>
</div>
</Box>
<div>{t('development_text')}</div>
<Box sx={{ display: 'flex', gap: '80px', marginTop: '4px' }}>
<Box sx={{ display: 'flex', gap: '8px' }}>
<Avatar
sx={{ width: '48px', height: '48px', alignSelf: 'center' }}
alt="AlvISsReimu"
src="https://avatars.githubusercontent.com/u/25188552?v=4"
/>
<Box
sx={{
display: 'flex',
flexDirection: 'column',
placeContent: 'space-between',
}}
>
<Typography sx={{ padding: '8px 8px 0' }}>
AlvISs_红白
</Typography>
<Box
sx={{
display: 'flex',
}}
>
<IconButton
href="https://github.com/AlvISsReimu"
target="_blank"
>
<Icon path={mdiGithub} size={1} />
</IconButton>
<IconButton
href="https://twitter.com/AlvISs_Reimu"
target="_blank"
>
<Icon path={mdiTwitter} size={1} />
</IconButton>
<IconButton href="mailto:alvissreimu@gmail.com">
<Icon path={mdiEmail} size={1} />
</IconButton>
</Box>
</Box>
</Box>
<Box sx={{ display: 'flex', gap: '8px' }}>
<Avatar
sx={{ width: '48px', height: '48px', alignSelf: 'center' }}
alt="Tapir_li"
src="https://avatars.githubusercontent.com/u/5591532?v=4"
/>
<Box
sx={{
display: 'flex',
flexDirection: 'column',
placeContent: 'space-between',
}}
>
<Typography sx={{ padding: '8px 8px 0' }}>Tapir</Typography>
<Box
sx={{
display: 'flex',
}}
>
<IconButton
href="https://github.com/linicam"
target="_blank"
>
<Icon path={mdiGithub} size={1} />
</IconButton>
<IconButton href="mailto:li407017533@gmail.com">
<Icon path={mdiEmail} size={1} />
</IconButton>
</Box>
</Box>
</Box>
</Box>
</div>
</div>

Expand Down

0 comments on commit 99211aa

Please sign in to comment.