Skip to content

Commit 4d99d8e

Browse files
committed
ch. 97: Building a Web Application Layout - Part 1
1 parent cfaf290 commit 4d99d8e

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>App Layout</title>
8+
<style>
9+
* {
10+
margin: 0;
11+
padding: 0;
12+
box-sizing: border-box;
13+
}
14+
15+
body {
16+
font-family: sans-serif;
17+
color: #343a40;
18+
font-size: 24px;
19+
display: grid;
20+
height: 100vh;
21+
grid-template-columns: 80px 400px 1fr 250px;
22+
grid-template-rows: 80px 1fr;
23+
text-align: center;
24+
font-weight: bold;
25+
}
26+
27+
nav,
28+
menu,
29+
section,
30+
main,
31+
aside {
32+
padding-top: 24px;
33+
}
34+
35+
nav {
36+
background-color: #343a40;
37+
color: #fff;
38+
grid-row: 1 / -1;
39+
}
40+
41+
menu {
42+
background-color: #7048e8;
43+
color: #fff;
44+
grid-column: 2 / -1;
45+
}
46+
47+
section {
48+
background-color: #e9ecef;
49+
}
50+
51+
aside {
52+
background-color: #e9ecef;
53+
}
54+
</style>
55+
</head>
56+
57+
<body>
58+
<nav>Nav</nav>
59+
<menu>Menu</menu>
60+
<section>Inbox</section>
61+
<main>Email view</main>
62+
<aside>Additional info</aside>
63+
</body>
64+
65+
</html>

0 commit comments

Comments
 (0)