Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Oto-Gelashvili authored Dec 9, 2023
0 parents commit 0d972de
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
29 changes: 29 additions & 0 deletions index.html
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>
2 changes: 2 additions & 0 deletions readme.md
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.
85 changes: 85 additions & 0 deletions style.css
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;
}

0 comments on commit 0d972de

Please sign in to comment.