Skip to content

Commit

Permalink
update header
Browse files Browse the repository at this point in the history
  • Loading branch information
ann-kilzer committed Apr 25, 2024
1 parent 31b956d commit ece3125
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/components/Header/DesktopHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Typography from '@mui/material/Typography';
import { styled } from '@mui/material/styles';
import SideDrawer from '../SideDrawer/SideDrawer';
import StyledNavLink from '@/components/StyledNavLink/StyledNavLink'
import { useTranslation } from 'react-i18next';


const StyledToolbar = styled(Toolbar)(({ theme }) => ({
Expand All @@ -22,16 +23,18 @@ const StyledToolbar = styled(Toolbar)(({ theme }) => ({


const DesktopHeader: FC = () => {
const { t } = useTranslation();

return <StyledToolbar aria-label="desktop-toolbar">
<Stack direction='row' spacing={2} sx={{ alignItems: 'center' }}>
<SideDrawer />
<StyledNavLink to="/" style={{ textDecoration: 'none', color: 'white' }}>
<Typography variant="h1">WiSE Japan</Typography>
<Typography variant="caption">Women in Software Engineering Japan</Typography>
<Typography variant="caption">{t('header.subtitle')}</Typography>
</StyledNavLink>

<StyledNavLink to="/codeofconduct" style={{ textDecoration: 'none', color: 'white' }}>
<Typography variant="overline">Code of Conduct</Typography>
<Typography variant="overline">{t('header.codeOfConduct')}</Typography>
</StyledNavLink>
</Stack>
</StyledToolbar>
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"codeOfConduct": "Code of Conduct",
"header": {
"codeOfConduct": "Code of Conduct",
"subtitle": "Women in Software Engineering Japan"
},
"home": {
"helloWorld": "✨ Hello World ✨",
"joinUs": "✨ Join us on Slack ✨",
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/ja/translation.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"codeOfConduct": "行動規範",
"header": {
"codeOfConduct": "行動規範",
"subtitle": "ウーマン・イン・ソフトウェアエンジニアリング"
},
"home": {
"helloWorld": "✨ Hello 世界 ✨",
"joinUs": "✨ スラックに参加する ✨",
Expand Down

0 comments on commit ece3125

Please sign in to comment.