Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
week 5
  • Loading branch information
Alex Mueller committed Feb 24, 2020
1 parent fec9c16 commit a4497ab
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
Binary file added week-5/garden.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions week-5/index.html
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Holy Grail Layout</title>
</head>
<body>
<header>Header</header>
<div id="menu">Menu</div>
<main>Content</main>
<aside>Ads</aside>
<footer>Footer</footer>
</body>
</html>
52 changes: 52 additions & 0 deletions week-5/style.css
@@ -0,0 +1,52 @@
body {
margin: 0;
height: 100vh;
display: grid;
grid-template-areas:
'header'
'menu'
'main'
'ad'
'footer';
grid-template-columns: 1fr;
grid-template-rows: repeat(5, 1fr);
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header {
background: lightblue;
grid-area: header;
}

#menu {
background-color: lightcoral;
grid-area: menu;
}

main {
background-color: lightyellow;
grid-area: main;
}

aside {
background-color: lavender;
grid-area: ad;
}

footer {
background-color: lightsalmon;
grid-area: footer;
}
@media (min-width: 768px) {
body {
display: grid;
grid-template-areas:
'header header header header header header'
'menu main main main main ad'
'footer footer footer footer footer footer';
grid-template-columns: repeat(6, 1fr);
grid-template-rows: 1fr 4fr 1fr;
}
}

0 comments on commit a4497ab

Please sign in to comment.