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