├── grid-template ├── test.css └── test.html └── ui-connector ├── dashboard.css └── dashboard.html /grid-template/test.css: -------------------------------------------------------------------------------- 1 | *, 2 | *:before, 3 | *:after { 4 | box-sizing: border-box; 5 | } 6 | 7 | .page { 8 | display: grid; 9 | background-color: #292929; 10 | color: #ffffff; 11 | line-height: 1; 12 | font-family: -apple-system, BlinkMacSystemFont, sans-serif; 13 | } 14 | 15 | .header { 16 | padding: 25px; 17 | background-color: #242424; 18 | } 19 | 20 | .navigation { 21 | padding: 25px; 22 | background-color: #826550; 23 | } 24 | 25 | @media (min-width: 768px) { 26 | .navigation { 27 | order: -1; 28 | } 29 | } 30 | 31 | /* Statistics */ 32 | 33 | .statistics { 34 | display: grid; 35 | background-color: #ffffff; 36 | } 37 | 38 | @media (min-width: 768px) { 39 | .statistics { 40 | grid-template-columns: 1fr 1fr; 41 | } 42 | } 43 | 44 | @media (min-width: 1024px) { 45 | .statistics { 46 | grid-template-columns: 1fr 1fr 1fr; 47 | } 48 | } 49 | 50 | .statistics_header { 51 | padding: 25px; 52 | background-color: #ffffff; 53 | color: #000000; 54 | } 55 | 56 | @media (min-width: 768px) and (max-width: 1023px) { 57 | .statistics_header { 58 | grid-column: 1 / 3; 59 | } 60 | } 61 | 62 | @media (min-width: 1024px) { 63 | .statistics_header { 64 | grid-column: 1 / 2; 65 | grid-row: 1 / 3; 66 | } 67 | } 68 | 69 | .statistics_table, 70 | .statistics_body, 71 | .statistics_row { 72 | display: contents; 73 | } 74 | 75 | .statistics_table { 76 | width: 100%; 77 | border-collapse: collapse; 78 | } 79 | 80 | .statistics_cell { 81 | padding: 25px; 82 | } 83 | 84 | .statistics_cell--one { 85 | background-color: #404040; 86 | } 87 | 88 | .statistics_cell--two { 89 | background-color: #4e4e4e; 90 | } 91 | 92 | .statistics_cell--three { 93 | background-color: #353535; 94 | } 95 | 96 | .statistics_cell--four { 97 | background-color: #404040; 98 | } 99 | 100 | /* Advantages */ 101 | 102 | .advantages { 103 | padding: 25px; 104 | display: grid; 105 | grid-gap: 25px; 106 | background-color: #242424; 107 | } 108 | 109 | @media (min-width: 1024px) { 110 | .advantages { 111 | grid-template-columns: 1fr 1fr 1fr; 112 | } 113 | } 114 | 115 | .advantages_item { 116 | padding: 25px; 117 | background-color: #353535; 118 | } 119 | 120 | /* News */ 121 | 122 | .news { 123 | padding: 25px; 124 | display: grid; 125 | grid-gap: 25px; 126 | background-color: #f8f5f2; 127 | color: #000000; 128 | } 129 | 130 | @media (min-width: 768px) { 131 | .news { 132 | grid-template-columns: 1fr 1fr; 133 | } 134 | } 135 | 136 | @media (min-width: 1024px) { 137 | .news { 138 | grid-template-columns: 1fr 1fr 1fr; 139 | } 140 | } 141 | 142 | .news_item { 143 | padding: 25px; 144 | background-color: #e5ddd5; 145 | color: #000000; 146 | } 147 | 148 | /* Footer */ 149 | 150 | .footer { 151 | padding: 25px; 152 | display: grid; 153 | grid-gap: 25px; 154 | background-color: #292929; 155 | } 156 | 157 | @media (min-width: 768px) { 158 | .footer { 159 | grid-template-columns: 1fr 1fr 1fr; 160 | } 161 | } 162 | 163 | .contacts { 164 | padding: 25px; 165 | background-color: #353535; 166 | } 167 | 168 | @media (min-width: 768px) and (max-width: 1023px) { 169 | .contacts { 170 | grid-column: 1 / 3; 171 | } 172 | } 173 | 174 | .copyright { 175 | padding: 25px; 176 | background-color: #353535; 177 | } 178 | 179 | .social { 180 | padding: 25px; 181 | background-color: #353535; 182 | } 183 | 184 | @media (min-width: 768px) and (max-width: 1023px) { 185 | .social { 186 | grid-row-start: 2; 187 | grid-column: 1 / 4; 188 | } 189 | } 190 | -------------------------------------------------------------------------------- /grid-template/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |22 | statistics item 23 | | 24 |25 | statistics item 26 | | 27 |
30 | statistics item 31 | | 32 |33 | statistics item 34 | | 35 |