File tree Expand file tree Collapse file tree 2 files changed +113
-0
lines changed
starter/06-Components/Layout Expand file tree Collapse file tree 2 files changed +113
-0
lines changed Original file line number Diff line number Diff line change
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
+
9
+ < link rel ="stylesheet " href ="./style.css " />
10
+ </ head >
11
+ < body >
12
+ < nav > Nav</ nav >
13
+ < menu >
14
+ < button > New</ button >
15
+ < button > Reply</ button >
16
+ < button > Forward</ button >
17
+ < button > Mark unread</ button >
18
+ < button > Trash</ button >
19
+ </ menu >
20
+ < section >
21
+ < div class ="email "> Email 1</ div >
22
+ < div class ="email "> Email 2</ div >
23
+ < div class ="email "> Email 3</ div >
24
+ < div class ="email "> Email 4</ div >
25
+ < div class ="email "> Email 5</ div >
26
+ < div class ="email "> Email 6</ div >
27
+ < div class ="email "> Email 7</ div >
28
+ < div class ="email "> Email 8</ div >
29
+ < div class ="email "> Email 9</ div >
30
+ < div class ="email "> Email 10</ div >
31
+ </ section >
32
+ < main > Email view</ main >
33
+ < aside > Additional info</ aside >
34
+ </ body >
35
+ </ html >
Original file line number Diff line number Diff line change
1
+ * {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ box-sizing : border-box;
5
+ }
6
+
7
+ body {
8
+ font-family : sans-serif;
9
+ color : # 343a40 ;
10
+ font-size : 24px ;
11
+ height : 100vh ;
12
+ text-align : center;
13
+ font-weight : bold;
14
+
15
+ display : grid;
16
+ grid-template-columns : 80px 400px 1fr 250px ;
17
+ grid-template-rows : 80px 1fr ;
18
+ }
19
+
20
+ nav ,
21
+ main ,
22
+ aside {
23
+ padding-top : 24px ;
24
+ }
25
+
26
+ nav {
27
+ color : # fff ;
28
+ background-color : # 343a40 ;
29
+ grid-row : 1 / -1 ;
30
+ }
31
+
32
+ menu {
33
+ background-color : # 7048e8 ;
34
+ grid-column : 2 / -1 ;
35
+ display : flex;
36
+ align-items : center;
37
+ gap : 12px ;
38
+ padding : 0 40px ;
39
+ }
40
+
41
+ button {
42
+ display : inline-block;
43
+ font-size : 16px ;
44
+ font-weight : bold;
45
+ background-color : # 5f3dc4 ;
46
+ border : none;
47
+ cursor : pointer;
48
+ color : # fff ;
49
+ padding : 8px 12px ;
50
+ }
51
+
52
+ button : last-child {
53
+ background-color : # d6336c ;
54
+ margin-left : auto;
55
+ }
56
+
57
+ section {
58
+ background-color : # e9ecef ;
59
+ padding : 40px ;
60
+ display : flex;
61
+ flex-direction : column;
62
+ gap : 40px ;
63
+ overflow : scroll;
64
+ }
65
+
66
+ .email {
67
+ background-color : # adb5bd ;
68
+ height : 90px ;
69
+ flex-shrink : 0 ;
70
+
71
+ display : flex;
72
+ align-items : center;
73
+ justify-content : center;
74
+ }
75
+
76
+ aside {
77
+ background-color : # e9ecef ;
78
+ }
You can’t perform that action at this time.
0 commit comments