-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
183 lines (147 loc) · 3.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mondrian Project</title>
<style>
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
padding: 0;
}
.container{
height: 748px;
width: 748px;
display: grid;
gap: 9px;
background-color: #000;
grid-template-columns: 320px 198px, 153px 50px;
grid-template-rows: 414px 130px 155px 22px;
}
.red {
background-color: red;
}
.item{
background-color: #F0F1EC;
}
.blue{
background-color: #004592;
border-bottom: 10px solid #000;
}
.black{
background-color: #232629;
}
.yellow{
background-color: yellow;
}
.white1{
grid-column: span 3;
background-color: #F0F1EC;
}
.white2{
grid-row: span 2;
background-color: #F0F1EC;
}
.white3{
grid-area: 2 / 2 / 4 / 4;
background-color: #F0F1EC;
}
.white4{
grid-row: span 2;
background-color: #F0F1EC;
}
/*
Write your CSS here
Gap Colour: #000
White: #F0F1EC
Red: #E72F24
Black: #232629
Blue: #004592
Yellow: #F9D01E
For dimensions, see dimensions.png image.
HINT: Remember you can't change the properties of grid lines.
But grid lines are transparent!
*/
</style>
</head>
<body>
<!-- Write your HTML here -->
<div class="container">
<div class="red"></div>
<div class="white1"></div>
<div class="white2"></div>
<div class="white3"></div>
<div class="blue"></div>
<div class="white4"></div>
<div class="item"></div>
<div class="black"></div>
<div class="yellow"></div>
</div>
</body>
</html>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
padding: 0;
}
.container {
height: 748px;
width: 748px;
display: grid;
background-color: #000;
grid-template-columns: 320px 198px 153px 50px;
grid-template-rows: 414px 130px 155px 22px;
gap: 9px;
}
.item {
background-color: #F0F1EC;
}
.red {
background-color: #E72F24;
}
.white1 {
grid-column: span 3;
}
.white2 {
grid-row: span 2;
}
.white3 {
grid-area: 2 / 2 / 4 /4;
}
.blue {
background-color: #004592;
border-bottom: 10px solid #000;
}
.white4 {
grid-row: span 2;
}
.yellow {
background-color: #F9D01E;
}
.black {
background-color: #232629;
}
</style>
</head>
<body>
<!-- Write your HTML here -->
<div class="container">
<div class="item red"></div>
<div class="item white1"></div>
<div class="item white2"></div>
<div class="item white3"></div>
<div class="item blue"></div>
<div class="item white4"></div>
<div class="item"></div>
<div class="item yellow"></div>
<div class="item black"></div>
</div>
</body>
</html>