-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0d972de
Showing
3 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!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> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<div class="frame"> | ||
<div class="mat"> | ||
<div class="container"> | ||
<div class="red"></div> | ||
<div class="white one"></div> | ||
<div class="white two"></div> | ||
<div class="white three"></div> | ||
<div class="blue"></div> | ||
<div class="white four"></div> | ||
<div class="yellow"></div> | ||
<div class="black"></div> | ||
<div class="white five"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Just leant about grid and was practicing on it, | ||
thats why I Had to ruin Piet Mondrian’s Composition No. III, with Red, Blue, Yellow, and Black (1929) sold for $50.6 million. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
height: 100vh; | ||
} | ||
|
||
.mat { | ||
position: absolute; | ||
background: #232D3F; | ||
top: 3%; | ||
bottom: 3%; | ||
left: 2%; | ||
right: 2%; | ||
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5) inset; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.frame { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
background: #0F0F0F; | ||
box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.3); | ||
} | ||
|
||
.container { | ||
display: grid; | ||
width: 90%; | ||
height: 90%; | ||
background-color: #000; | ||
gap: 9px; | ||
grid-template: 4.14fr 1.3fr 1.55fr 0.2fr/3.2fr 1.98fr 1.53fr 0.50fr; | ||
} | ||
|
||
.red { | ||
background-color: #E72F24; | ||
grid-area: 1/1/2/2; | ||
} | ||
|
||
.white { | ||
background-color: #F0F1EC; | ||
} | ||
|
||
.one { | ||
grid-area: 1/2/2/5; | ||
} | ||
|
||
.two { | ||
grid-area: 2/1/4/2; | ||
} | ||
|
||
.three { | ||
grid-area: 2/2/4/4; | ||
} | ||
|
||
.blue { | ||
background-color: #004592; | ||
grid-area: 2/4/3/5; | ||
border-bottom: #000 solid 10px; | ||
} | ||
|
||
.four { | ||
grid-area: 4/1/5/2; | ||
} | ||
|
||
.yellow { | ||
background-color: #F9D01E; | ||
grid-area: 4/2/5/3; | ||
} | ||
|
||
.black { | ||
background-color: #232629; | ||
grid-area: 4/3/5/4; | ||
} | ||
|
||
.five { | ||
grid-area: 3/4/5/5; | ||
} |