Skip to content

Commit 271abb1

Browse files
committed
layout
1 parent a1e4169 commit 271abb1

File tree

1 file changed

+124
-0
lines changed

1 file changed

+124
-0
lines changed
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Layout</title>
8+
<style>
9+
* {
10+
padding: 0;
11+
margin: 0;
12+
box-sizing: border-box;
13+
}
14+
15+
body {
16+
font-family: sans-serif;
17+
font-size: 24px;
18+
height: 100vh;
19+
color: #343a40;
20+
display: grid;
21+
grid-template-columns: 80px 400px 1fr 250px;
22+
grid-template-rows: 80px 1fr;
23+
24+
text-align: center;
25+
font-weight: 700;
26+
}
27+
28+
nav {
29+
background-color: #343a40;
30+
grid-row: 1/-1;
31+
color: #fff;
32+
33+
padding-top: 24px;
34+
}
35+
36+
menu {
37+
background-color: #7048e8;
38+
color: #fff;
39+
grid-column: 2/-1;
40+
41+
display: flex;
42+
align-items: center;
43+
gap: 16px;
44+
padding: 0px 32px;
45+
}
46+
47+
section {
48+
background-color: #e9ecef;
49+
50+
padding: 24px;
51+
52+
overflow-y: scroll;
53+
}
54+
55+
aside {
56+
background-color: #e9ecef;
57+
58+
padding-top: 24px;
59+
}
60+
61+
main {
62+
padding-top: 24px;
63+
}
64+
65+
ul {
66+
list-style: none;
67+
display: flex;
68+
flex-direction: column;
69+
gap: 48px;
70+
}
71+
72+
li {
73+
background-color: #aeb5bc;
74+
width: 100%;
75+
height: 96px;
76+
display: flex;
77+
justify-content: center;
78+
align-items: center;
79+
}
80+
81+
button {
82+
background-color: #5f3dc4;
83+
color: #fff;
84+
padding: 8px 12px;
85+
border: none;
86+
cursor: pointer;
87+
font-size: 16px;
88+
font-weight: bold;
89+
}
90+
91+
menu button:last-child {
92+
margin-left: auto;
93+
94+
background-color: #d20f0f;
95+
}
96+
</style>
97+
</head>
98+
<body>
99+
<nav>Nav</nav>
100+
<menu>
101+
<button>New</button>
102+
<button>Reply</button>
103+
<button>Forward</button>
104+
<button>Mark unread</button>
105+
<button>Trash</button>
106+
</menu>
107+
<section>
108+
<ul>
109+
<li class="email-item">Email 1</li>
110+
<li class="email-item">Email 2</li>
111+
<li class="email-item">Email 3</li>
112+
<li class="email-item">Email 4</li>
113+
<li class="email-item">Email 5</li>
114+
<li class="email-item">Email 6</li>
115+
<li class="email-item">Email 7</li>
116+
<li class="email-item">Email 8</li>
117+
<li class="email-item">Email 9</li>
118+
<li class="email-item">Email 10</li>
119+
</ul>
120+
</section>
121+
<main>Email View</main>
122+
<aside>Additional Info</aside>
123+
</body>
124+
</html>

0 commit comments

Comments
 (0)