
Master CSX grid to build two-dimensional, flexible user interface layouts using grid containers and items, with template columns, tracks, and areas for responsive positioning.
Explore CSS grid concepts through two projects: a grid folio app and a grid gallery. Download the zip resources, install dependencies with yarn, and run yarn start to learn.
Explore the grid folio app built with React and React Router, showcasing parent and child grid properties, grid template columns, and default styles.
Explore grid-template-columns in CSS grid, controlling column widths with pixels, fractional units, percentages, auto, repeat, minmax, named lines for flexible, responsive layouts.
Learn how grid-template-rows compares to grid-template-columns, with grid auto flow defaulting to rows. Explore row-wise layouts, automatically sized rows, and how repeat, fr, px, percentages, and minmax interact.
Discover how the grid property acts as shorthand for grid template rows and columns. Learn about grid auto flow, auto rows and columns, implicit grids, and the dense option.
Explore how justify-items, align-items, and place-items position grid children within rows and columns using start, end, and center values, including their default stretch behavior and combining techniques.
Explore how justify-content, align-content, and place-content shape grid layouts in CSS, adjusting grid items, columns, and spacing with repeat, auto, and space distribution to master responsive grids.
Explore how grid-auto-flow controls item placement in CSS grid, switching between row and column layouts. See how items span across columns and how dense packing affects explicit vs implicit grids.
Learn to control spacing in css grid layouts with grid-column-gap, grid-row-gap, and the gap shorthand using px and percent values.
Explore grid-template-areas in CSS grid, declare and link header, sidebar, content, and footer areas using ascii-like templates, and see how child elements map to these named regions.
Explore how to control grid items using grid column, grid row, grid area, and align self, justify self, and place self, including named lines, spans, and negative indices.
We use create react app to build the grid gallery, install the packages, open the project in web storm, and run yarn start to launch the app.
Learn to implement React Router to build a multi-route app with a modal gallery, including home, topics, and image views, using a modal overlay and history navigation.
Learn to populate a CSS grid with stock photos by saving images to the public folder, renaming for dynamic import, and styling with background size, position, and no-repeat.
learn how styled components allow writing css inside JavaScript using template literals, enabling dynamic styling with props and automatic unique class names for React components.
Use styled-components to build a reusable image component with an index prop, then replace thumbnails, map the images array, and link each image to its detail view.
Turn the content into a three-column CSS grid with 305px cells, centered at 950px width, 80px top margin, 305px square images, and a 20px grid gap.
Create a responsive user grid for a React Instagram clone using css grid, implementing hover dimming and a modal-aware prop, with a profile photo, name, label, and description.
Learn to integrate Google fonts into a React Instagram clone grid gallery by selecting fonts, linking them in index, and applying font families to the project.
Refactor the modal into its own module for reuse across routes. Use styled-components for the modal, position with window.scrollY and innerHeight, and disable body scroll with a global style.
Build a post grid and an info grid using CSS grid. Define grid-template-columns: 1fr 1fr and grid-template-rows: 60px auto 40px to layout the image, comments, and likes.
Import the profile image and create a mini user grid, then use a grid with auto columns and a 10-pixel gap for a clean two-column layout.
Refactors the gallery into its own directory, exports the gallery function, and wires tab links with styled components and react-router match parameter to URL, building a two-column link grid.
Master cascade layout in a React Instagram clone by building a responsive CSS grid with every-other-row span, dynamic image links, and an active tab indicator.
Master responsive layouts for a React Instagram clone with CSS grid and media queries. Learn to adapt grids, images, and layout across breakpoints using viewport-based sizing and max-width rules.
Now updated for the latest version of React and Styled-components!
First learn CSS Grid with the Gridfolio App, exploring each parent and child property of CSS Grid. Then build the GridGallery app, an Image Gallery app built with React, React Router and Styled-components.
With the Gridfolio app, you'll access over 100 Grids, with grids for each parent and child property of CSS Grid. We explain through example, so you'll see how each Grid property changes with new and different values, and how you can combine multiple Grid properties together.
We'll discuss the more confusing properties of CSS Grid, like grid-auto-flow, grid-template-areas, and the elusive grid property. Each lecture expands on the previous, giving you knowledge that you can build on and use in the GridGallery app, a professional React project worthy of any React career developer. You'll also get the full source code to the Gridfolio project.
With the GridGallery app, you'll build a real Image Gallery app. Starting from the create-react-app boilerplate, you'll learn through examples from React Router, style an Image modal, build and test a responsive PhotoGrid that works on any device. You'll learn how to find your own stock photos and fonts to personalize your image gallery. You'll use styled-components to easily style React components without new CSS files. You'll gain full access to the source code of the GridGallery app project, so you can reference the completed project at any time.
We're here to answer your questions and we want you to succeed! With the Q&A section, you'll join a community of developers building the same project, so you can collaborate and get instant feedback to your issues.
Thanks, and best of luck!
-Developers at react.school