Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion layout1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,35 @@
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>I love art!</h1>

<div class="grid-container">

<div class="top">
<div class="top-gray"></div>
<div class="top-yellow"></div>
</div>

<div class='left'>
<div class="left-gray"></div>
<div class="left-blue"></div>
</div>

<div class='middle'>

</div>

<div class='right'>
<div class="right-black"></div>
<div class="right-gray"></div>
<div class="right-red"></div>
</div>

<div class='bottom'>
<div class="bottom-gray"></div>
</div>

</div>


</body>
</html>
110 changes: 108 additions & 2 deletions layout1/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,109 @@
h1 {
color: rebeccapurple;
/*Make art 600px x 600px */

body {
width: 80%;
margin: 100px auto;
display: flex;
justify-content: center;
}

.grid-container {
display: grid;
grid-template-rows: 75px 400px 125px;
grid-template-columns: 50px 425px 125px;
grid-template-areas: "top top right"
"left middle right"
"bottom bottom right";
}

/* TOP SECTION */
.top {
grid-area: top;
display:flex;
justify-content: space-between;
background-color: black;
}

.top-gray {
width: 230px;
height: 60px;
background-color: #CFCECA;
}

.top-yellow {
width: 230px;
height: 60px;
background-color: #E5E597;
}

/* LEFT SECTION */
.left {
grid-area: left;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
background-color: black;
}

.left-gray {
width: 35px;
height: 190px;
background-color: #CFCECA;
}

.left-blue {
width: 35px;
height: 190px;
background-color: #113F99;
}

/* MIDDLE SECTION */

.middle {
grid-area: middle;
background-color: #CFCECA;
}

/* RIGHT SECTION */
.right {
grid-area: right;
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-between;
background-color: black;
}

.right-black {
width: 110px;
height: 140px;
background-color: #222;
}

.right-gray {
width: 110px;
height: 395px;
background-color: #CFCECA;
}

.right-red {
width: 110px;
height: 25px;
background-color: red;
}

/* BOTTOM SECTION */
.bottom {
grid-area: bottom;
display: flex;
align-items: flex-end;
background-color: black;
}

.bottom-gray {
width: 475px;
height: 110px;
background-color: #CFCECA;
}

25 changes: 23 additions & 2 deletions layout2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>I love art!</h1>

<div class="grid-container">

<div class="top">
<div class="t-black"></div>
<div class="t-red"></div>
<div class="t-gray"></div>
<div class="t-gray2"></div>
</div>

<div class='bottom'>
<div class="b-black"></div>
<div class="b-yellow"></div>
<div class="b-gray"></div>
<div class="b-gray2"></div>
<div class="b-offwhite"></div>
<div class="b-blue"></div>
</div>

</div>


</body>
</html>
</html>
97 changes: 95 additions & 2 deletions layout2/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,96 @@
h1 {
color: rebeccapurple;
body {
margin: 100px auto;
display: flex;
justify-content: center;
}

.grid-container {
display: grid;
width: 50%;
min-height: 75vh;
grid-row-gap: .6em;
grid-template-rows: .6fr .4fr;
background-color: black;
grid-template-columns: 100%;
grid-template-areas: "top"
"bottom";
}

/* TOP SECTION */

.top {
display: grid;
grid-area: top;
grid-row-gap: .6em;
grid-column-gap: .6em;
grid-template-rows: .15fr .55fr .3fr;
grid-template-columns: .25fr .75fr;
background-color: black;
grid-template-areas: "t-black t-red"
"t-gray t-red"
"t-gray t-gray2";
}

.t-black {
grid-area: t-black;
background-color: black;
}

.t-red {
grid-area: t-red;
background-color: #BF2007;
}

.t-gray {
grid-area: t-gray;
background-color: #DFE3DC;
}

.t-gray2 {
grid-area: t-gray2;
background-color: #B2B5BD;
}


/* BOTTOM SECTION */

.bottom {
display: grid;
grid-area: bottom;
grid-gap: .6em;
grid-template-rows: .15fr .35fr .5fr;
grid-template-columns: .1fr .14fr .56fr .2fr;
grid-template-areas: "b-black b-gray b-gray2 b-gray2"
"b-yellow b-gray b-gray2 b-gray2"
"b-yellow b-gray b-offwhite b-blue";
}

.b-black {
grid-area: b-black;
background-color: black;
}

.b-yellow {
grid-area: b-yellow;
background-color: yellow;
}

.b-gray {
grid-area: b-gray;
background-color: #B2B5BD;
}

.b-gray2 {
grid-area: b-gray2;
background-color: #B2B5BD;
}

.b-offwhite {
grid-area: b-offwhite;
background-color: #DFE3DC;
}

.b-blue {
grid-area: b-blue;
background-color: #001661;
}
30 changes: 28 additions & 2 deletions layout3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,32 @@
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>I love art!</h1>
<div class="grid-container">

<div class="a">
<div class="top-red"></div>
<div class="top-gray"></div>
</div>

<div class="b">
<div class="middle-gray"></div>
<div class="middle-gray2"></div>
</div>

<div class="c">
<div class="bottomleft-yellow"></div>
<div class="bottomleft-gray"></div>
</div>

<div class="d">
<div class="right-blue"></div>
<div class="right-gray"></div>
</div>

<div class="e">
<div class="e-gray"></div>
</div>

</div>
</body>
</html>
</html>
Loading