
Pexels 1
28 |29 | Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et sed 30 | placeat temporibus, culpa magnam illum in inventore voluptatem 31 | laudantium optio. 32 |
33 |├── .gitignore ├── css └── styles.css ├── images ├── pexels-1.jpg ├── pexels-2.jpg ├── pexels-3.jpg ├── pexels-4.jpg ├── pexels-5.jpg └── pexels-6.jpg └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /css/styles.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --page-bg-color: #f9f9fd; 3 | --primary-text-color: #212121; 4 | --card-set-gap: 20px; 5 | --card-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 6 | 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); 7 | } 8 | 9 | body { 10 | background-color: var(--page-bg-color); 11 | color: var(--primary-text-color); 12 | line-height: 1.5; 13 | } 14 | 15 | h1, 16 | h2, 17 | h3, 18 | h4, 19 | h5, 20 | h6, 21 | p { 22 | margin: 0; 23 | } 24 | 25 | img { 26 | display: block; 27 | max-width: 100%; 28 | height: auto; 29 | } 30 | 31 | /* PAGE */ 32 | .page-title { 33 | font-size: 32px; 34 | margin-bottom: 30px; 35 | } 36 | 37 | /* CONTAINER */ 38 | .container { 39 | width: 1170px; 40 | padding-left: 15px; 41 | padding-right: 15px; 42 | 43 | margin-left: auto; 44 | margin-right: auto; 45 | } 46 | 47 | /* CARD SET */ 48 | .card-set { 49 | padding: 0; 50 | margin: 0; 51 | list-style: none; 52 | 53 | display: flex; 54 | flex-wrap: wrap; 55 | margin-left: calc(-1 * var(--card-set-gap)); 56 | margin-top: calc(-1 * var(--card-set-gap)); 57 | } 58 | 59 | .card-set > .item { 60 | flex-basis: calc(100% / 3 - var(--card-set-gap)); 61 | margin-left: var(--card-set-gap); 62 | margin-top: var(--card-set-gap); 63 | } 64 | 65 | /* CARD */ 66 | .card { 67 | box-shadow: var(--card-shadow); 68 | border-radius: 4px; 69 | overflow: hidden; 70 | } 71 | 72 | .card-content { 73 | padding: 15px; 74 | } 75 | 76 | .card-text { 77 | margin-top: 10px; 78 | } 79 | -------------------------------------------------------------------------------- /images/pexels-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luxplanjay/flex-grid-tutorial/aa4ed53f34aa84b2d278ebc350dbe9a6f6584aa3/images/pexels-1.jpg -------------------------------------------------------------------------------- /images/pexels-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luxplanjay/flex-grid-tutorial/aa4ed53f34aa84b2d278ebc350dbe9a6f6584aa3/images/pexels-2.jpg -------------------------------------------------------------------------------- /images/pexels-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luxplanjay/flex-grid-tutorial/aa4ed53f34aa84b2d278ebc350dbe9a6f6584aa3/images/pexels-3.jpg -------------------------------------------------------------------------------- /images/pexels-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luxplanjay/flex-grid-tutorial/aa4ed53f34aa84b2d278ebc350dbe9a6f6584aa3/images/pexels-4.jpg -------------------------------------------------------------------------------- /images/pexels-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luxplanjay/flex-grid-tutorial/aa4ed53f34aa84b2d278ebc350dbe9a6f6584aa3/images/pexels-5.jpg -------------------------------------------------------------------------------- /images/pexels-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luxplanjay/flex-grid-tutorial/aa4ed53f34aa84b2d278ebc350dbe9a6f6584aa3/images/pexels-6.jpg -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |29 | Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et sed 30 | placeat temporibus, culpa magnam illum in inventore voluptatem 31 | laudantium optio. 32 |
33 |46 | Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et sed 47 | placeat temporibus, culpa magnam illum in inventore voluptatem 48 | laudantium optio. 49 |
50 |63 | Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et sed 64 | placeat temporibus, culpa magnam illum in inventore voluptatem 65 | laudantium optio. 66 |
67 |80 | Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et sed 81 | placeat temporibus, culpa magnam illum in inventore voluptatem 82 | laudantium optio. 83 |
84 |97 | Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et sed 98 | placeat temporibus, culpa magnam illum in inventore voluptatem 99 | laudantium optio. 100 |
101 |114 | Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et sed 115 | placeat temporibus, culpa magnam illum in inventore voluptatem 116 | laudantium optio. 117 |
118 |