|
1 |
| -import { Typography, Container, Avatar, List, ListItem, ListItemText } from '@mui/material' |
| 1 | +import { Typography, Container, Avatar, List, ListItem, ListItemText, ListItemIcon } from '@mui/material' |
| 2 | +import CircleIcon from '@mui/icons-material/Circle'; |
2 | 3 | import { useTranslation } from 'react-i18next'
|
3 | 4 | import main from './assets/images/main.jpg'
|
4 | 5 | import { LazyLoadImage } from 'react-lazy-load-image-component'
|
@@ -32,58 +33,77 @@ import Footer from './Footer';
|
32 | 33 |
|
33 | 34 | function About() {
|
34 | 35 | const { t } = useTranslation()
|
| 36 | + const benefitsNote = t("aboutUs.benefitsNote"); |
| 37 | + const noteText = benefitsNote.split(":")[0] + ":"; |
| 38 | + const restOfText = benefitsNote.split(":").slice(1).join(":").trim(); |
| 39 | + |
35 | 40 | return (
|
36 | 41 | <>
|
37 | 42 | <NavBar />
|
38 | 43 | <Container sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center', pt: 5 }}>
|
39 |
| - <Typography variant="h1" sx={{ mb: 3 }}>Web Dev Talks</Typography> |
40 |
| - <Typography sx={{ my: 3 }}>{t("aboutUs.quote")}<b>{t("aboutUs.adrianReyes")}</b></Typography> |
| 44 | + <Typography variant="h1" sx={{ mb: 3}}>Web Dev Talks</Typography> |
| 45 | + <Typography sx={{ my: 3, textAlign: 'justify' }}>{t("aboutUs.quote")}<b>{t("aboutUs.adrianReyes")}</b></Typography> |
41 | 46 |
|
42 | 47 | <Avatar variant="square" src={main} alt="" sx={{ width: '100%', height: '100%' }} />
|
43 | 48 |
|
44 | 49 | <Typography variant="h2" sx={{ my: 5 }}>{t("aboutUs.whoIs")}</Typography>
|
45 |
| - <Typography>{t("aboutUs.description")}</Typography> |
46 |
| - <Typography>{t("aboutUs.description2")}</Typography> |
| 50 | + <Typography sx={{ textAlign: 'justify', mb: 1 }}>{t("aboutUs.description")}</Typography> |
| 51 | + <Typography sx={{ textAlign: 'justify' }}>{t("aboutUs.description2")}</Typography> |
| 52 | + |
47 | 53 | <Typography variant="h2" sx={{ my: 3 }}>{t("aboutUs.motivationHeader")}</Typography>
|
48 |
| - <Typography>{t("aboutUs.motivationBody1")}</Typography> |
49 |
| - <Typography>{t("aboutUs.motivationBody2")}</Typography> |
| 54 | + <Typography sx={{ textAlign: 'justify', mb: 1 }}>{t("aboutUs.motivationBody1")}</Typography> |
| 55 | + <Typography sx={{ textAlign: 'justify' }}>{t("aboutUs.motivationBody2")}</Typography> |
| 56 | + |
50 | 57 | <Typography variant="h2" sx={{ my: 3 }}>{t("aboutUs.dynamic")}</Typography>
|
51 |
| - <Typography>{t("aboutUs.dynamicBody1")}</Typography> |
52 |
| - <Typography>{t("aboutUs.dynamicBody2")}</Typography> |
| 58 | + <Typography sx={{ textAlign: 'justify', mb: 1 }}>{t("aboutUs.dynamicBody1")}</Typography> |
| 59 | + <Typography sx={{ textAlign: 'justify' }}>{t("aboutUs.dynamicBody2")}</Typography> |
53 | 60 |
|
54 | 61 | <Avatar variant="square" src={image1} alt="" sx={{ width: '100%', height: '100%', my: 5 }} />
|
55 | 62 |
|
56 | 63 | <Avatar variant="square" src={image8} alt="" sx={{ width: '100%', height: '100%', my: 5 }} />
|
57 | 64 |
|
58 | 65 | <Typography variant="h2" sx={{ my: 3 }}>{t("aboutUs.socialImpact")}</Typography>
|
59 |
| - <Typography>{t("aboutUs.socialImpactBody1")}</Typography> |
| 66 | + <Typography sx={{ textAlign: 'justify' }}>{t("aboutUs.socialImpactBody1")}</Typography> |
| 67 | + |
60 | 68 | <Typography variant="h2" sx={{ my: 3 }}>{t("aboutUs.jobsOffer")}</Typography>
|
61 |
| - <Typography>{t("aboutUs.jobsOfferBody1")}</Typography> |
| 69 | + <Typography sx={{ textAlign: 'justify' }}>{t("aboutUs.jobsOfferBody1")}</Typography> |
| 70 | + |
62 | 71 | <Typography variant="h2" sx={{ my: 3 }}>{t("sponsorship.sponsor")}</Typography>
|
63 |
| - <Typography>{t("aboutUs.sponsorBody")}</Typography> |
| 72 | + <Typography sx={{ textAlign: 'justify' }}>{t("aboutUs.sponsorBody")}</Typography> |
| 73 | + |
64 | 74 | <Typography variant="h2" sx={{ my: 3 }}>{t("aboutUs.offer")}</Typography>
|
65 |
| - <Typography>{t("aboutUs.offerRights")}</Typography> |
66 | 75 |
|
67 | 76 | <List sx={{ width: '100%' }}>
|
68 | 77 | <ListItem>
|
| 78 | + <ListItemIcon sx={{ minWidth: '20px', color: 'black' }}> |
| 79 | + <CircleIcon sx={{ fontSize: '8px' }} /> |
| 80 | + </ListItemIcon> |
69 | 81 | <ListItemText primary={t('aboutUs.socialMentions')}/>
|
70 | 82 | </ListItem>
|
71 | 83 | <ListItem>
|
72 |
| - <ListItemText primary={t('aboutUs.communityPagePosts')}/> |
73 |
| - </ListItem> |
74 |
| - <ListItem> |
| 84 | + <ListItemIcon sx={{ minWidth: '20px', color: 'black' }}> |
| 85 | + <CircleIcon sx={{ fontSize: '8px' }} /> |
| 86 | + </ListItemIcon> |
75 | 87 | <ListItemText primary={t('aboutUs.sharePosts')}/>
|
76 | 88 | </ListItem>
|
77 | 89 | <ListItem>
|
| 90 | + <ListItemIcon sx={{ minWidth: '20px', color: 'black' }}> |
| 91 | + <CircleIcon sx={{ fontSize: '8px' }} /> |
| 92 | + </ListItemIcon> |
78 | 93 | <ListItemText primary={t('aboutUs.promoteContent')}/>
|
79 | 94 | </ListItem>
|
80 | 95 | <ListItem>
|
| 96 | + <ListItemIcon sx={{ minWidth: '20px', color: 'black' }}> |
| 97 | + <CircleIcon sx={{ fontSize: '8px' }} /> |
| 98 | + </ListItemIcon> |
81 | 99 | <ListItemText primary={t('aboutUs.eventPresence')}/>
|
82 | 100 | </ListItem>
|
83 | 101 | </List>
|
84 | 102 |
|
85 |
| - <Typography>{t("aboutUs.note")}</Typography> |
86 |
| - <Typography>{t("aboutUs.benefitsNote")}</Typography> |
| 103 | + <Typography sx={{ mb: 2 }}> |
| 104 | + <strong>{noteText}</strong> {restOfText} |
| 105 | + </Typography> |
| 106 | + |
87 | 107 | <Typography>{t("aboutUs.closingNote")}</Typography>
|
88 | 108 |
|
89 | 109 | <Typography variant="h3" sx={{ my: 3 }}>{t("aboutUs.communityHeader")}</Typography>
|
|
0 commit comments