Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add files via upload
- Loading branch information
Showing
4 changed files
with
175 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,71 @@ | ||
html{ | ||
background-color: black; | ||
} | ||
.container { | ||
display: grid; | ||
grid-template-areas: | ||
"header header header" | ||
"nav content side" | ||
"footer footer footer"; | ||
grid-template-columns: 200px 1fr 200px; | ||
grid-template-rows: 110px 1fr 110px; | ||
grid-gap: 10px; | ||
height: 100vh; | ||
text-transform: uppercase; | ||
text-align: center; | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-weight: bolder; | ||
font-size: 45px; | ||
} | ||
|
||
header { | ||
grid-area: header; | ||
background-color: #83caff; | ||
} | ||
|
||
nav { | ||
grid-area: nav; | ||
margin-left: 0.5rem; | ||
background-color: #cc99cc; | ||
} | ||
|
||
main { | ||
grid-area: content; | ||
background-color: #ffcccc; | ||
} | ||
|
||
aside { | ||
grid-area: side; | ||
margin-right: 0.5rem; | ||
background-color: #cc99cc; | ||
} | ||
|
||
footer { | ||
grid-area: footer; | ||
background-color: #83caff; | ||
} | ||
|
||
|
||
@media (max-width: 769px) { | ||
.container { | ||
font-size: 30px; | ||
grid-template-areas: | ||
"header" | ||
"nav" | ||
"content" | ||
"side" | ||
"footer"; | ||
|
||
grid-template-columns: 1fr; | ||
grid-template-rows: | ||
110px /* Header */ | ||
75px /* Menu */ | ||
1fr /* Content */ | ||
75px /* Sidebar */ | ||
100px; /* Footer */ | ||
} | ||
|
||
nav, aside { | ||
margin: 0; | ||
} | ||
} |
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,42 @@ | ||
header, nav, main, footer{ | ||
border: 1px solid lightblue; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
@media (min-width: 400px){ | ||
.grid{ | ||
display: grid; | ||
grid-template-columns: 20% 20% 20% 20% 20%; | ||
grid-column-gap: 1px; | ||
text-align: center; | ||
|
||
} | ||
header{ | ||
/*grid-column: 1/6; (same thing than below but shorter code*/ | ||
grid-column-start: 1; | ||
grid-column-end: 6; | ||
} | ||
nav{ | ||
/*grid-column: 1/3; (same thing than below but shorter code*/ | ||
grid-column-start: 1; | ||
grid-column-end: 3; | ||
} | ||
main{ | ||
/*grid-column: 3/6; (same thing than below but shorter code*/ | ||
grid-column-start: auto; | ||
grid-column-end: auto; | ||
} | ||
.ads{ | ||
grid-column-start: 4; | ||
grid-column-end: 6; | ||
|
||
} | ||
footer{ | ||
/*grid-column: 1/6; (same thing than below but shorter code*/ | ||
grid-column-start: 1; | ||
grid-column-end: 6; | ||
} | ||
} |
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,40 @@ | ||
.letter{ | ||
background-color: lightcoral; | ||
font-size: 70px; | ||
color: black; | ||
font-family: 'hobeaux-rococeaux-background', Helvetica; | ||
display: flex; | ||
align-content: center; | ||
justify-content: center; | ||
padding: 20px; | ||
} | ||
.wrapper{ | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
grid-template-rows: 1fr 1fr 1fr 1fr ; | ||
grid-column-gap: 1px; | ||
grid-row-gap: 1px; | ||
|
||
|
||
} | ||
|
||
|
||
@media screen and (min-width: 400px) { | ||
.wrapper { | ||
grid-template-columns: 1fr; | ||
grid-template-rows: 1fr ; | ||
|
||
} | ||
} | ||
@media screen and (min-width: 600px) { | ||
.wrapper { | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-rows: 1fr 1fr ; | ||
|
||
} | ||
} | ||
@media screen and (min-width: 800px) { | ||
.wrapper { | ||
grid-template-columns: 1fr 1fr 1fr 1fr; | ||
} | ||
} |
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,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Holy Grail Layout</title> | ||
<link href="css/holy-grail.css" type="text/css" rel="stylesheet"/> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<header>Header</header> | ||
|
||
<nav>Menu</nav> | ||
|
||
<main>Content</main> | ||
|
||
<aside> Ads</aside> | ||
|
||
<footer> Footer</footer> | ||
</div> | ||
</body> | ||
</html> |