-
Notifications
You must be signed in to change notification settings - Fork 0
/
06-app-layout.html
117 lines (104 loc) · 2.51 KB
/
06-app-layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>App Layout</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
color: #343a40;
font-size: 24px;
height: 100vh;
text-align: center;
font-weight: bold;
display: grid;
grid-template-columns: 80px 400px 1fr 250px;
grid-template-rows: 80px 1fr;
}
nav,
section,
main,
aside {
padding-top: 24px;
}
nav {
background-color: #343a40;
color: white;
grid-row: 1 / -1;
}
menu {
background-color: #7048e8;
grid-column: 2 / -1;
display: flex;
align-items: center;
gap: 12px;
padding: 0 40px;
}
button {
display: inline-block;
font-size: 16px;
font-weight: bold;
background-color: #5f3dc4;
border: none;
cursor: pointer;
color: #fff;
padding: 8px 12px;
}
button:last-child {
background-color: #d6336c;
margin-left: auto;
}
section {
background-color: #e9ecef;
padding: 40px;
/* How elements that don't fit into container appear */
overflow: scroll;
display: flex;
flex-direction: column;
gap: 40px;
}
.email {
background-color: #adb5bd;
height: 96px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
aside {
background-color: #e9ecef;
}
</style>
</head>
<body>
<nav>Nav</nav>
<menu>
<button>New</button>
<button>Reply</button>
<button>Forward</button>
<button>Mark unread</button>
<button>Trash</button>
</menu>
<section>
<div class="email">Email 1</div>
<div class="email">Email 2</div>
<div class="email">Email 3</div>
<div class="email">Email 4</div>
<div class="email">Email 5</div>
<div class="email">Email 6</div>
<div class="email">Email 7</div>
<div class="email">Email 8</div>
<div class="email">Email 9</div>
<div class="email">Email 10</div>
</section>
<main>Email view</main>
<aside>Additional info</aside>
</body>
</html>