CSS Grid image gallery
This project explored several properties of CSS Grid
and how it allows responsive layouts. Images are added dynamically with a random size via JavaScript
and using grid-auto-flow: dense
to fill in holes in the grid if smaller items come up later.
Also took into account how the use of images affect the page's performance and explored tools to detect and solve issues with the images.
- Properties
- grid-template-columns
- grid-template-rows
- grid-auto-rows
- grid-auto-flow: dense
- justify-items
- align-items
- gap
- grid-column
- grid-row
- Special Functions and Keywords
- repeat()
- fr
- auto-fill
- Gimp used to
- Scale the image to the needed dimensions.
- Reduce the image size.
- imageoptim used to
- Compress the image taking into account factors like
- Quality
- Format
- DPI mode
- Color quality
- Compress the image taking into account factors like
- Lighthouse
- Used to check the overall quality of the webpage
- Performance
- Accesibility
- SEO
- Best practices
- Used to check the overall quality of the webpage
- RespImageLint
- Used to detect images's issues.