|
| 1 | +import { Box, Typography } from '@mui/material' |
| 2 | +import { Colors } from 'src/styles/color' |
| 3 | +import { useSize } from 'src/modules/common/hooks' |
| 4 | +import { useTranslation } from 'react-i18next' |
| 5 | + |
| 6 | +export const TopDescription = () => { |
| 7 | + const { t } = useTranslation() |
| 8 | + const { isTabletOrOver } = useSize() |
| 9 | + return ( |
| 10 | + <Box |
| 11 | + sx={{ |
| 12 | + width: '100%', |
| 13 | + backgroundColor: Colors.background.primary, |
| 14 | + p: isTabletOrOver ? '40px' : '24px 16px' |
| 15 | + }} |
| 16 | + > |
| 17 | + <Box maxWidth={'680px'} margin={'auto'}> |
| 18 | + <Box sx={{ textAlign: 'center' }}> |
| 19 | + <Typography |
| 20 | + variant="h2" |
| 21 | + sx={{ |
| 22 | + color: Colors.text.white, |
| 23 | + fontWeight: 500, |
| 24 | + fontSize: isTabletOrOver ? '50px' : '24px', |
| 25 | + padding: isTabletOrOver ? '40px' : '8px' |
| 26 | + }} |
| 27 | + > |
| 28 | + What is Go Conference? |
| 29 | + </Typography> |
| 30 | + </Box> |
| 31 | + <Box sx={{ textAlign: 'center', mb: isTabletOrOver ? '40px' : '16px' }}> |
| 32 | + <Typography |
| 33 | + variant="body1" |
| 34 | + sx={{ |
| 35 | + color: Colors.text.white, |
| 36 | + fontSize: isTabletOrOver ? '24px' : '16px' |
| 37 | + }} |
| 38 | + > |
| 39 | + {t('about')} |
| 40 | + </Typography> |
| 41 | + </Box> |
| 42 | + <Box mb={'40px'}> |
| 43 | + <Box |
| 44 | + sx={{ |
| 45 | + display: 'flex', |
| 46 | + flexWrap: 'nowrap' |
| 47 | + }} |
| 48 | + > |
| 49 | + <Typography |
| 50 | + variant="body2" |
| 51 | + sx={{ |
| 52 | + color: Colors.text.white, |
| 53 | + fontSize: isTabletOrOver ? '18px' : '14px', |
| 54 | + textAlign: 'right', |
| 55 | + minWidth: isTabletOrOver ? '120px' : '100px', |
| 56 | + marginLeft: isTabletOrOver ? '32px' : '0' |
| 57 | + }} |
| 58 | + > |
| 59 | + {t('session')}: |
| 60 | + </Typography> |
| 61 | + <Typography |
| 62 | + variant="body2" |
| 63 | + sx={{ |
| 64 | + color: Colors.text.white, |
| 65 | + fontSize: isTabletOrOver ? '18px' : '14px', |
| 66 | + marginLeft: '12px' |
| 67 | + }} |
| 68 | + > |
| 69 | + {t('session_num')} |
| 70 | + </Typography> |
| 71 | + </Box> |
| 72 | + <Box |
| 73 | + sx={{ |
| 74 | + display: 'flex', |
| 75 | + flexWrap: 'nowrap' |
| 76 | + }} |
| 77 | + > |
| 78 | + <Typography |
| 79 | + variant="body2" |
| 80 | + sx={{ |
| 81 | + color: Colors.text.white, |
| 82 | + fontSize: isTabletOrOver ? '18px' : '14px', |
| 83 | + textAlign: 'right', |
| 84 | + minWidth: isTabletOrOver ? '120px' : '100px', |
| 85 | + marginLeft: isTabletOrOver ? '32px' : '0' |
| 86 | + }} |
| 87 | + > |
| 88 | + {t('target')}: |
| 89 | + </Typography> |
| 90 | + <Typography |
| 91 | + variant="body2" |
| 92 | + sx={{ |
| 93 | + color: Colors.text.white, |
| 94 | + fontSize: isTabletOrOver ? '18px' : '14px', |
| 95 | + marginLeft: '12px' |
| 96 | + }} |
| 97 | + > |
| 98 | + {t('target_info')} |
| 99 | + </Typography> |
| 100 | + </Box> |
| 101 | + <Box |
| 102 | + sx={{ |
| 103 | + display: 'flex', |
| 104 | + flexWrap: 'nowrap' |
| 105 | + }} |
| 106 | + > |
| 107 | + <Typography |
| 108 | + variant="body2" |
| 109 | + sx={{ |
| 110 | + color: Colors.text.white, |
| 111 | + fontSize: isTabletOrOver ? '18px' : '14px', |
| 112 | + textAlign: 'right', |
| 113 | + minWidth: isTabletOrOver ? '120px' : '100px', |
| 114 | + marginLeft: isTabletOrOver ? '32px' : '0' |
| 115 | + }} |
| 116 | + > |
| 117 | + {t('host')}: |
| 118 | + </Typography> |
| 119 | + <Typography |
| 120 | + variant="body2" |
| 121 | + sx={{ |
| 122 | + color: Colors.text.white, |
| 123 | + fontSize: isTabletOrOver ? '18px' : '14px', |
| 124 | + marginLeft: '12px' |
| 125 | + }} |
| 126 | + > |
| 127 | + {t('gophers_japan')} |
| 128 | + </Typography> |
| 129 | + </Box> |
| 130 | + </Box> |
| 131 | + </Box> |
| 132 | + </Box> |
| 133 | + ) |
| 134 | +} |
0 commit comments