-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add overall layout of example website
- Loading branch information
Showing
7 changed files
with
361 additions
and
17 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
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,93 @@ | ||
:root { | ||
font-size: 1em; | ||
box-sizing: border-box; | ||
|
||
/* COLORS */ | ||
--color-olive: #A5A58D; | ||
--color-sand: #DDBEA9; | ||
--color-creme: #F0EFEB; | ||
--color-black: #1D120B; | ||
--color-grey: #7d7d7d; | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: inherit; | ||
} | ||
|
||
|
||
/* Definition of top-level page grid (overall layout) */ | ||
.page-container { | ||
height: 100vh; | ||
display: grid; | ||
grid-template-columns: 5rem 1fr; | ||
grid-template-rows: 1fr min-content; | ||
grid-template-areas: "menu content " | ||
"footer footer "; | ||
} | ||
|
||
@media only screen and (max-width: 800px) { | ||
.page-container { | ||
grid-template-columns: 1fr; | ||
grid-template-rows: 5rem 1fr min-content; | ||
grid-template-areas: "menu" | ||
"content" | ||
"footer"; | ||
} | ||
} | ||
|
||
.menu { | ||
grid-area: menu; | ||
background-color: var(--color-sand); | ||
} | ||
.content { | ||
grid-area: content; | ||
background-color: var(--color-creme); | ||
} | ||
.footer { | ||
grid-area: footer; | ||
background-color: var(--color-olive); | ||
} | ||
|
||
|
||
|
||
/*** just custom styling ***/ | ||
* { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
margin: 1em 0; | ||
} | ||
|
||
.button { | ||
display: block; | ||
|
||
width: 160px; | ||
height: min-content; | ||
padding: 0.7em; | ||
margin: 3rem auto; | ||
|
||
border: none; | ||
border-radius: 1em; | ||
background-color: var(--color-sand); | ||
box-shadow: 0px 0px 20px 0px var(--color-grey); | ||
|
||
color: var(--color-creme); | ||
text-decoration: none; | ||
text-align: center; | ||
font-style: normal; | ||
font-weight: normal; | ||
box-sizing: border-box; | ||
} | ||
|
||
.button:hover { | ||
color: var(--color-sand); | ||
border-color: var(--color-sand); | ||
background-color: var(--color-creme); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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,231 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>CSS Grid Examples</title> | ||
<link rel="stylesheet" href="_base.css" type="text/css"> | ||
<link rel="stylesheet" href="full-bleed.css" type="text/css"> | ||
</head> | ||
<body class="page-container"> | ||
|
||
<nav class="menu"> | ||
<ul> | ||
<li><button onclick="showSection('.full-bleed')">Full Bleed</button></li> | ||
<li><button onclick="showSection('.six-cards')">Six Cards</button></li> | ||
<li><button onclick="showSection('.gallery')">Gallery</button></li> | ||
</ul> | ||
|
||
</nav> | ||
|
||
<section class="content"> | ||
<section class="full-bleed"> | ||
<img src="https://picsum.photos/1920/1080" alt="Item Picture 1" class="card__image"> | ||
|
||
</section> | ||
<section class="six-cards"> | ||
<div class="card"> | ||
<img src="https://avatars.dicebear.com/api/human/1.svg" alt="Avatar 1" class="card__avatar"> | ||
<img src="https://picsum.photos/200/300" alt="Item Picture 1" class="card__image"> | ||
|
||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<button class="button card__button">PICK</button> | ||
</div> | ||
|
||
</section> | ||
<section class="gallery"> | ||
Gallery | ||
|
||
</section> | ||
|
||
</section> | ||
|
||
<footer class="footer"> | ||
<a href="../index.html" class="button">Go back</a> | ||
</footer> | ||
|
||
<!--- HERO | ||
<section class="hero"> | ||
<img src="https://picsum.photos/1920/1080" alt="Item Picture 1" class="card__image"> | ||
</section> | ||
--> | ||
|
||
<!--- SIX CARDS | ||
<section class="six-cards"> | ||
<div class="card"> | ||
<img src="https://avatars.dicebear.com/api/human/1.svg" alt="Avatar 1" class="card__avatar"> | ||
<img src="https://picsum.photos/200/300" alt="Item Picture 1" class="card__image"> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<button class="button card__button">PICK</button> | ||
</div> | ||
<div class="card"> | ||
<img src="https://avatars.dicebear.com/api/human/2.svg" alt="Avatar 1" class="card__avatar"> | ||
<img src="https://picsum.photos/200/300" alt="Item Picture 1" class="card__image"> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<button class="button card__button">PICK</button> | ||
</div> | ||
<div class="card"> | ||
<img src="https://avatars.dicebear.com/api/human/3.svg" alt="Avatar 1" class="card__avatar"> | ||
<img src="https://picsum.photos/200/300" alt="Item Picture 1" class="card__image"> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<button class="button card__button">PICK</button> | ||
</div> | ||
<div class="card"> | ||
<img src="https://avatars.dicebear.com/api/human/4.svg" alt="Avatar 1" class="card__avatar"> | ||
<img src="https://picsum.photos/200/300" alt="Item Picture 1" class="card__image"> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<button class="button card__button">PICK</button> | ||
</div> | ||
<div class="card"> | ||
<img src="https://avatars.dicebear.com/api/human/5.svg" alt="Avatar 1" class="card__avatar"> | ||
<img src="https://picsum.photos/200/300" alt="Item Picture 1" class="card__image"> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<button class="button card__button">PICK</button> | ||
</div> | ||
<div class="card"> | ||
<img src="https://avatars.dicebear.com/api/human/6.svg" alt="Avatar 1" class="card__avatar"> | ||
<img src="https://picsum.photos/200/300" alt="Item Picture 1" class="card__image"> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<div class="card___feature"> | ||
<img class="card___check-icon" src="assets/check-circle.svg"> | ||
<p>Feature</p> | ||
</div> | ||
<button class="button card__button">PICK</button> | ||
</div> | ||
</section> | ||
--> | ||
|
||
<!--- GALLERY | ||
<section class="gallery"> | ||
<figure class="gallery__item gallery__item--1"><img src="img/gal-1.jpeg" alt="Gallery image 1" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--2"><img src="img/gal-2.jpeg" alt="Gallery image 2" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--3"><img src="img/gal-3.jpeg" alt="Gallery image 3" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--4"><img src="img/gal-4.jpeg" alt="Gallery image 4" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--5"><img src="img/gal-5.jpeg" alt="Gallery image 5" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--6"><img src="img/gal-6.jpeg" alt="Gallery image 6" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--7"><img src="img/gal-7.jpeg" alt="Gallery image 7" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--8"><img src="img/gal-8.jpeg" alt="Gallery image 8" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--9"><img src="img/gal-9.jpeg" alt="Gallery image 9" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--10"><img src="img/gal-10.jpeg" alt="Gallery image 10" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--11"><img src="img/gal-11.jpeg" alt="Gallery image 11" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--12"><img src="img/gal-12.jpeg" alt="Gallery image 12" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--13"><img src="img/gal-13.jpeg" alt="Gallery image 13" class="gallery__img"></figure> | ||
<figure class="gallery__item gallery__item--14"><img src="img/gal-14.jpeg" alt="Gallery image 14" class="gallery__img"></figure> | ||
</section> | ||
--> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
</html> |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.