-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate styles for About Page - initial commit * Migrate styles for AssociationMembersSection, extract common styles * Migrate styles on About page - minor changes * Fix build * Migrate styles for ManagementBoardSection * Migrate styles for SupervisoryBoardSection * Delete unused image * Change discord team image, extract AboutWrapper styles * Migarte styles for PrinciplesThatUniteUs * Migrate styles for PrincipleCard * Fix build error * Fix LinkedIn button
- Loading branch information
1 parent
8c778cd
commit 312f518
Showing
27 changed files
with
486 additions
and
655 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,58 @@ | ||
import Image from 'next/image' | ||
|
||
import { styled } from '@mui/system' | ||
import { Grid, Link, Typography } from '@mui/material' | ||
|
||
import theme from 'common/theme' | ||
import { LinkedIn } from '@mui/icons-material' | ||
|
||
export const AboutHeading = styled(Typography)(() => ({ | ||
fontWeight: 500, | ||
margin: theme.spacing(15, 0, 8, 0), | ||
textAlign: 'center', | ||
})) | ||
|
||
export const Avatar = styled(Image)(() => ({ | ||
borderRadius: '50%', | ||
textAlign: 'center', | ||
width: '150px', | ||
objectFit: 'cover', | ||
})) | ||
|
||
export const TeamMemberName = styled(Typography)(() => ({ | ||
fontWeight: 700, | ||
margin: theme.spacing(3, 0), | ||
})) | ||
|
||
export const LinkedInButton = styled(Link)(() => ({ | ||
display: 'inline-flex', | ||
alignItems: 'center', | ||
textAlign: 'center', | ||
marginTop: theme.spacing(3), | ||
'&:hover': { | ||
'&>svg, &>h6': { | ||
textDecoration: 'underline', | ||
color: theme.palette.primary.main, | ||
}, | ||
}, | ||
})) | ||
|
||
export const LinkedInIcon = styled(LinkedIn)(() => ({ | ||
marginLeft: '-4px', | ||
})) | ||
|
||
export const LinkedInText = styled(Typography)(() => ({ | ||
marginLeft: theme.spacing(1), | ||
color: theme.palette.common.black, | ||
})) | ||
|
||
export const Description = styled(Typography)(() => ({ | ||
textAlign: 'initial', | ||
})) | ||
|
||
export const AboutWrapper = styled(Grid)(() => ({ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
gap: theme.spacing(3), | ||
flexWrap: 'wrap', | ||
})) |
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 was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/components/about/sections/AboutTheTeamSection/AboutTheTeamSection.styled.tsx
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,10 @@ | ||
import { styled } from '@mui/system' | ||
import { Typography } from '@mui/material' | ||
|
||
import theme from 'common/theme' | ||
|
||
export const DiscordTeamImage = styled(Typography)(() => ({ | ||
marginTop: theme.spacing(8), | ||
display: 'flex', | ||
justifyContent: 'center', | ||
})) |
22 changes: 22 additions & 0 deletions
22
src/components/about/sections/AboutTheTeamSection/AboutTheTeamSection.tsx
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,22 @@ | ||
import Image from 'next/image' | ||
import { useTranslation } from 'next-i18next' | ||
|
||
import { Grid, Typography } from '@mui/material' | ||
|
||
import { DiscordTeamImage } from './AboutTheTeamSection.styled' | ||
import { AboutHeading } from 'components/about/AboutPage.styled' | ||
|
||
export default function AboutTheTeamSection() { | ||
const { t } = useTranslation('about') | ||
const discordTeamImagePath = '/img/team-photos/discord-team-image.jpg' | ||
|
||
return ( | ||
<Grid component="section"> | ||
<AboutHeading variant="h4">{t('about.about-the-team')}</AboutHeading> | ||
<Typography variant="body2">{t('about.team-description')}</Typography> | ||
<DiscordTeamImage> | ||
<Image alt="Discord team image" src={discordTeamImagePath} width="1189px" height="789px" /> | ||
</DiscordTeamImage> | ||
</Grid> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/components/about/sections/ActiveMembersSection/ActiveMembersSection.styled.tsx
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,22 @@ | ||
import { styled } from '@mui/system' | ||
import { Grid } from '@mui/material' | ||
|
||
import theme from 'common/theme' | ||
|
||
export const ТeamMemberWrapper = styled(Grid)(() => ({ | ||
flexGrow: 1, | ||
width: '100%', | ||
textAlign: 'center', | ||
marginBottom: theme.spacing(3), | ||
[theme.breakpoints.up('sm')]: { | ||
width: '10%', | ||
flex: '1 0 40%', | ||
marginBottom: theme.spacing(0), | ||
}, | ||
[theme.breakpoints.up('md')]: { | ||
flex: '1 0 30%', | ||
}, | ||
[theme.breakpoints.up('lg')]: { | ||
flex: '1 0 14%', | ||
}, | ||
})) |
39 changes: 39 additions & 0 deletions
39
src/components/about/sections/ActiveMembersSection/ActiveMembersSection.tsx
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,39 @@ | ||
import { useTranslation } from 'next-i18next' | ||
|
||
import { Grid, Typography } from '@mui/material' | ||
|
||
import { data } from '../../helpers/activeMembersData' | ||
|
||
import { ТeamMemberWrapper } from './ActiveMembersSection.styled' | ||
import { | ||
AboutHeading, | ||
AboutWrapper, | ||
Avatar, | ||
LinkedInButton, | ||
LinkedInIcon, | ||
LinkedInText, | ||
TeamMemberName, | ||
} from 'components/about/AboutPage.styled' | ||
|
||
export default function ActiveMembersSection() { | ||
const { t } = useTranslation('about') | ||
|
||
return ( | ||
<Grid component="section"> | ||
<AboutHeading variant="h4">{t('about.active-team-members')}</AboutHeading> | ||
<AboutWrapper> | ||
{data.map((teamMember) => ( | ||
<ТeamMemberWrapper key={teamMember.name}> | ||
<Avatar alt="Team member avatar" src={teamMember.img} width="200px" height="200px" /> | ||
<TeamMemberName variant="subtitle1">{teamMember.name}</TeamMemberName> | ||
<Typography variant="body2">{teamMember.description}</Typography> | ||
<LinkedInButton href={teamMember.linkedInProfile} target="_blank"> | ||
<LinkedInIcon color="action" fontSize="large" /> | ||
<LinkedInText variant="subtitle1">{t('about.linkedIn')}</LinkedInText> | ||
</LinkedInButton> | ||
</ТeamMemberWrapper> | ||
))} | ||
</AboutWrapper> | ||
</Grid> | ||
) | ||
} |
Oops, something went wrong.