Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is goed #4

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
22 changes: 21 additions & 1 deletion src/advanced/advanced-layout-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@
<title>Advanced Layout 1</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display:grid;
grid-template-areas: ". header header"
"nav nav ."
". main main"
".footer footer" ;
gap:10px;
}

header{
grid-area: header;
}
nav{
grid-area : nav;
}
main{
grid-area:main;
}
footer{
grid-area: footer;
}
</style>
</head>
<body id="advanced-layout-1">
Expand Down
31 changes: 30 additions & 1 deletion src/advanced/advanced-layout-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,36 @@
<title>Advanced Layout 2</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display:grid;
grid-template-rows: repeat(5,1fr);
grid-template-columns: 4fr;
gap: 10px;
}
header{
grid-row-start: 2;
grid-row-end: 2;
grid-column-start: 1;
grid-column-end: 1;
rotate: 45deg;
}
nav{
grid-row-start: 2;
grid-row-end: 2;
grid-column-start: 1;
grid-column-end: 1;
rotate: -45deg;
}
main{
grid-row-start: 4;
grid-column-start: 1;
grid-column-end: 3;
}
footer{
grid-row-start: 5;
grid-column-start: 1;
grid-column-end: 3;
}
</style>
</head>
<body id="advanced-layout-2">
Expand Down
23 changes: 22 additions & 1 deletion src/advanced/advanced-layout-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,28 @@
<title>Advanced Layout 3</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display:grid;
grid-template-columns: 1fr 2fr 2fr ;
grid-template-rows: .2fr 1fr .5fr 1fr .5fr 1fr .2fr;
gap:10px ;

}

header{
grid-area:2/1/2/3 ;
z-index: 2;
}
main{
grid-area: 1/2/8/4;
}
nav{
grid-area: 4/1/4/3;
z-index: 2;
}
footer{
grid-area: 6/1/6/3
}
</style>
</head>
<body id="advanced-layout-3">
Expand Down
46 changes: 44 additions & 2 deletions src/advanced/advanced-layout-4.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,55 @@
<title>Advanced Layout 4</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display: grid;
grid-template-columns: 2fr 2fr;
grid-template-rows: 3fr .1fr .1fr 3fr;
gap: 10px;
}

header{
grid-area:1/1/3/2;
opacity: 80%;
/* z-index: 2; */
clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}
main{
grid-area:1/2/3/3;
/* translate: -80px 80px; */
opacity: 70%;
/* z-index: -1; */
clip-path: polygon(0 0, 100% 0, 100% 80%, 0 90%);
}
nav{
grid-area:3/1/6/2 ;
clip-path: polygon(0 20%, 100% 10%, 100% 100%, 0 100%);
}
footer{
grid-area: 3/2/6/3 ;
/* z-index: -2; */
clip-path: polygon(0% 10%, 100% 0, 100% 100%, 0% 100%);
}
/* p{
grid-area: 2/1/3/3;
outline: solid red;
margin: 0;
gap: 0;
transform:skew(-15deg,-0deg) translateY(85px) rotate(-11deg) scale(2) ; */
/* background-color: white; */
/* height: 1.5em; */



}

</style>
</head>
<body id="advanced-layout-4">
<header><h1>Advanced Layout 4</h1></header>
<header><h1>Advanced Layout 4 </h1></header>
<nav><a href="../index.html">Terug naar het overzicht</a></nav>
<main></main>
<p></p>
<footer></footer>
</body>
</html>
26 changes: 24 additions & 2 deletions src/basic/basic-layout-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,35 @@
<title>Basic Layout 1</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display:grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: 1fr 3fr 1fr;
}
header{
grid-area: 1/1/1/3;
outline: solid red;
}
nav{
grid-area: 2/1/2/1;
outline:solid blue;
}
main{
grid-area: 2/2/2/3;
outline:solid green;
}
footer{
grid-area: 3/1/3/3;
}
</style>
</head>
<body id="basic-layout-1">
<header><h1>Basic Layout 1</h1></header>
<nav><a href="../index.html">Terug naar het overzicht</a></nav>
<main></main>
<main>


</main>
<footer></footer>
</body>
</html>
20 changes: 19 additions & 1 deletion src/basic/basic-layout-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@
<title>Basic Layout 2</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display: grid;
grid-template-rows: 1fr 0.5fr 3fr 1.2fr;
grid-row-gap: 10px;
grid-column-gap: 10px;
}

header{
grid-row: 1;
}
nav{
grid-row: 2;
}
main{
grid-row:3;
}
footer{
grid-row: 4;
}
</style>
</head>
<body id="basic-layout-2">
Expand Down
22 changes: 21 additions & 1 deletion src/basic/basic-layout-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@
<title>Basic Layout 3</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display: grid;
grid-template-columns:1fr 1fr ;
grid-template-rows: 4fr 1fr 1fr ;
}

header{
grid-area:3/1/3/1;
}
main{

grid-area:1/1/1/3;
}
nav{
grid-area: 3/2/3/2;
}
footer{
grid-area:2/1/2/3;
}


</style>
</head>
<body id="basic-layout-3">
Expand Down
20 changes: 19 additions & 1 deletion src/basic/basic-layout-4.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@
<title>Basic Layout 4</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display:grid;
grid-template-columns: 2fr 1fr ;
grid-template-rows: 2fr 2fr;
gap: 10px;
}

main{
grid-area: 1/1/2/2;
}
header{
grid-area: 1/2/1/3;
}
nav{
grid-area: 2/2/3/3;
}
footer{
grid-area: 2/1/2/2;
}
</style>
</head>
<body id="basic-layout-4">
Expand Down
24 changes: 23 additions & 1 deletion src/basic/basic-layout-8.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,29 @@
<title>Basic Layout 8</title>
<link rel="stylesheet" href="../style.css" />
<style>
/* Doe hier jouw ding! */
body{
display:grid;
grid-template-areas: "a a a"
"b c d"
;
gap: 10px;
}

header{
grid-area: a;
}

nav{
grid-area: b;
}
main{
grid-area: c;

}

footer{
grid-area: d;
}
</style>
</head>
<body id="basic-layout-8">
Expand Down
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ main {
background: yellow;
}
footer {
background: black;
background: coral;
color: white;
}