Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Technologies section on About project page #723

Merged
merged 2 commits into from
Apr 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 29 additions & 8 deletions src/components/about-project/sections/TechStack.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { useTranslation } from 'next-i18next'

import Heading from 'components/common/Heading'

import { Box, Grid, Theme, Typography } from '@mui/material'
import JoinLeftIcon from '@mui/icons-material/JoinLeft'
import ImportantDevicesIcon from '@mui/icons-material/ImportantDevices'
import SettingsIcon from '@mui/icons-material/Settings'
import CheckIcon from '@mui/icons-material/Check'

import createStyles from '@mui/styles/createStyles'
import makeStyles from '@mui/styles/makeStyles'

import Heading from 'components/common/Heading'

const rows = [
{
icon: <JoinLeftIcon color="action" />,
label: 'DevOps',
items: [
'about-project:tech-stack.docker',
Expand All @@ -18,6 +24,7 @@ const rows = [
],
},
{
icon: <ImportantDevicesIcon color="action" />,
label: 'Frontend',
items: [
'TypeScript',
Expand All @@ -33,6 +40,7 @@ const rows = [
],
},
{
icon: <SettingsIcon color="action" />,
label: 'Backend',
items: ['TypeScript', 'Nest.js', 'PostgreSQL', 'Prisma', 'Jest', 'Sentry'],
},
Expand All @@ -45,8 +53,15 @@ const useStyles = makeStyles((theme: Theme) =>
paddingBottom: theme.spacing(7),
},
list: {
listStyle: 'disc',
paddingLeft: '2rem',
margin: '0 auto 32px',
},
listItem: {
display: 'flex',
alignItems: 'center',
gap: theme.spacing(1.5),
},
categoryTitle: {
fontWeight: 600,
},
}),
)
Expand All @@ -67,12 +82,18 @@ export default function TechStack() {
</Heading>
<Grid container direction="column" component="section">
<Grid item container justifyContent="center" spacing={2}>
{rows.map(({ label, items }, section: number) => (
{rows.map(({ label, icon, items }, section: number) => (
<Grid item xs={12} sm={8} key={section}>
<Typography variant="subtitle1">{label}</Typography>
<Grid item xs={12} component="ul" className={classes.list}>
<Grid container justifyContent="center" gap="5px">
<Grid>{icon}</Grid>
<Typography variant="subtitle1" className={classes.categoryTitle}>
{label}
</Typography>
</Grid>
<Grid item xs={12} md={6} component="ul" className={classes.list}>
{items.map((line: string, key: number) => (
<Typography key={key} variant="body2" component="li">
<Typography key={key} variant="body2" component="li" className={classes.listItem}>
<CheckIcon />
{t(line)}
</Typography>
))}
Expand Down