Skip to content

Commit

Permalink
Add contact info to the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed Dec 18, 2024
1 parent 3393ade commit 334c016
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/client/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Box, Link } from '@mui/material'
import { useTranslation } from 'react-i18next'
import styles from '../styles'

import toskaColor from '../assets/toscalogo_color.svg'

const Footer = () => {
const { t } = useTranslation()
const { footerStyles } = styles

return (
Expand All @@ -25,6 +27,10 @@ const Footer = () => {
<img src={toskaColor} alt="Toska" width="70" />
</Link>
</Box>
<Box sx={footerStyles.contactBox}>
<p>{t('contactInfo')}: </p>
<Link href="mailto:[email protected]">[email protected]</Link>
</Box>
</Box>
</Box>
)
Expand Down
1 change: 1 addition & 0 deletions src/client/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"common": {
"appName": "Prethesis",
"author": "Author",
"contactInfo": "Contact information",
"grader": "Grader {{index}}",
"supervisor": "Supervisor {{index}}",
"userSearchNoOptions": "Type at least 5 characters to search for users",
Expand Down
1 change: 1 addition & 0 deletions src/client/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"common": {
"appName": "Prethesis",
"author": "Tekijä",
"contactInfo": "Yhteystiedot",
"grader": "Arvioija {{index}}",
"supervisor": "Ohjaaja {{index}}",
"userSearchNoOptions": "Kirjoita vähintään 5 merkkiä etsiäksesi käyttäjiä",
Expand Down
10 changes: 9 additions & 1 deletion src/client/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,23 @@ const footerStyles = {
px: '3rem',
},
display: 'flex',
justifyContent: 'space-between',
// justifyContent: 'space-between',
alignItems: 'center',
columnGap: '3rem',
},
imageBox: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
rowGap: '1rem',
},
contactBox: {
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
columnGap: '0.5rem',
color: 'white',
},
}

const common = {
Expand Down

0 comments on commit 334c016

Please sign in to comment.