Skip to content

Commit

Permalink
Build about gallery with lazy images
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeurbi committed Jun 19, 2024
1 parent d7eccce commit df3e5c8
Show file tree
Hide file tree
Showing 28 changed files with 176 additions and 7 deletions.
119 changes: 119 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"react-chartjs-2": "^5.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^14.1.2",
"react-lazy-load-image-component": "^1.6.0",
"react-material-ui-carousel": "^3.4.2",
"react-router-dom": "^6.23.1"
},
"devDependencies": {
Expand Down
62 changes: 55 additions & 7 deletions src/About.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
import { Typography, Container, Avatar, List, ListItem, ListItemText } from '@mui/material'
import { useTranslation } from 'react-i18next'
import image1 from './assets/images/78743416_2588340067930838_9025297886149083136_n.jpeg'
import image2 from './assets/images/28378086_1616056785159176_862979226448649839_n.jpeg'
import image3 from './assets/images/88950387_2784083098356533_6828161491334594560_n.jpeg'
import image4 from './assets/images/87738062_2784085668356276_3167127129091473408_n.jpeg'
import main from './assets/images/main.jpg'
import { LazyLoadImage } from 'react-lazy-load-image-component'

Check failure on line 4 in src/About.tsx

View workflow job for this annotation

GitHub Actions / deploy

Could not find a declaration file for module 'react-lazy-load-image-component'. '/home/runner/work/website2.0/website2.0/node_modules/react-lazy-load-image-component/build/index.js' implicitly has an 'any' type.
import image1 from './assets/images/1.jpg'
import image2 from './assets/images/2.jpg'
import image3 from './assets/images/3.jpg'
import image4 from './assets/images/4.jpg'
import image5 from './assets/images/5.jpg'
import image6 from './assets/images/6.jpg'
import image7 from './assets/images/7.jpg'
import image8 from './assets/images/8.jpg'
import image9 from './assets/images/9.jpg'
import image10 from './assets/images/10.jpg'
import image11 from './assets/images/11.jpg'
import image12 from './assets/images/12.jpg'
import image13 from './assets/images/13.jpg'
import image14 from './assets/images/14.jpg'
import image15 from './assets/images/15.jpg'
import image16 from './assets/images/16.jpg'
import image17 from './assets/images/17.jpg'
import image18 from './assets/images/18.jpg'
import image19 from './assets/images/19.jpg'
import image20 from './assets/images/20.jpg'
import image21 from './assets/images/21.jpg'
import image22 from './assets/images/22.jpg'
import image23 from './assets/images/23.jpg'
import image24 from './assets/images/24.jpg'
import NavBar from './NavBar'
import Carousel from 'react-material-ui-carousel'

function About() {
const { t } = useTranslation()
Expand All @@ -15,7 +38,7 @@ function About() {
<Typography variant="h1" sx={{ mb: 3 }}>Web Dev Talks</Typography>
<Typography sx={{ my: 3 }}>{t("aboutUs.quote")}<b>{t("aboutUs.adrianReyes")}</b></Typography>

<Avatar variant="square" src={image1} alt="" sx={{ width: '100%', height: '100%' }} />
<Avatar variant="square" src={main} alt="" sx={{ width: '100%', height: '100%' }} />

<Typography variant="h2" sx={{ my: 5 }}>{t("aboutUs.whoIs")}</Typography>
<Typography>{t("aboutUs.description")}</Typography>
Expand All @@ -27,9 +50,9 @@ function About() {
<Typography>{t("aboutUs.dynamicBody1")}</Typography>
<Typography>{t("aboutUs.dynamicBody2")}</Typography>

<Avatar variant="square" src={image2} alt="" sx={{ width: '100%', height: '100%', my: 5 }} />
<Avatar variant="square" src={image1} alt="" sx={{ width: '100%', height: '100%', my: 5 }} />

<Avatar variant="square" src={image3} alt="" sx={{ width: '100%', height: '100%', my: 5 }} />
<Avatar variant="square" src={image8} alt="" sx={{ width: '100%', height: '100%', my: 5 }} />

<Typography variant="h2" sx={{ my: 3 }}>{t("aboutUs.socialImpact")}</Typography>
<Typography>{t("aboutUs.socialImpactBody1")}</Typography>
Expand Down Expand Up @@ -64,6 +87,31 @@ function About() {

<Typography variant="h3" sx={{ my: 3 }}>{t("aboutUs.communityHeader")}</Typography>

<Typography variant="h3" sx={{ my: 5 }}>{t("aboutUs.gallery")}</Typography>
<Carousel sx={{ width: '100%', marginBottom: '1rem' }} interval={5000} animation={'slide'} height={'50vw'} indicators={false} duration={750}>
<LazyLoadImage src={image2} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image3} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }}/>
<LazyLoadImage src={image4} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }}/>
<LazyLoadImage src={image5} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image6} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image7} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image9} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image10} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image11} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image12} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image13} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image14} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image15} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image16} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image17} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image18} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image19} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image20} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image21} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image22} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image23} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
<LazyLoadImage src={image24} alt={''} style={{ height: '100%', width: '100%', objectFit: 'cover' }} />
</Carousel>
</Container>
</>
)
Expand Down
Binary file added src/assets/images/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/15.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/17.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/18.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/19.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/20.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/21.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/22.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/23.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/24.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/main.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df3e5c8

Please sign in to comment.