Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
tjb17003 committed Feb 22, 2020
1 parent 1aafaa7 commit 042befa
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
18 changes: 18 additions & 0 deletions week5/holyGrail.html
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Holy Grail</title>
<link rel="stylesheet" href="main.css">
</head>
<body class="hg">
<header class="header">Header</header>
<main class="main">Content</main>
<aside class="left">Menu</aside>
<aside class="right">Ads</aside>
<footer class="footer">Footer</footer>
</body>

</html>
64 changes: 64 additions & 0 deletions week5/main.css
@@ -0,0 +1,64 @@
.header {
grid-area: header;
background-color: blue;
display: flex;
justify-content: center;
font-size: 100px;
}
.footer {
grid-area: footer;
background-color: cadetblue;
display: flex;
justify-content: center;
font-size: 100px;
}
.main {
grid-area: main;
background-color: beige;
display: flex;
justify-content: center;
font-size: 100px;
align-items: center;
}
.left {
grid-area: navigation;
background-color: chartreuse;
display: flex;
justify-content: center;
font-size: 50px;
}
.right {
grid-area: ads;
background-color: chartreuse;
display: flex;
justify-content: center;
font-size: 50px;
}

.hg {
display: grid;
grid-template-areas: "header header header"
"navigation main ads"
"footer footer footer";
grid-template-columns: 150px 1fr 150px;
grid-template-rows: 100px
1fr
100px;
min-height: 100vh;
}

@media screen and (max-width: 600px) {
.hg {
grid-template-areas: "header"
"navigation"
"main"
"ads"
"footer";
grid-template-columns: 100%;
grid-template-rows: 100px
50px
1fr
50px
100px;
}
}

0 comments on commit 042befa

Please sign in to comment.