|
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 | 7 | <title>Web Application</title>
|
8 |
| - <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet" /> |
9 | 8 | <style>
|
10 | 9 | /*
|
11 | 10 | SPACING SYSTEM (px)
|
|
25 | 24 | /* GENERAL STYLES */
|
26 | 25 | /* ------------------------ */
|
27 | 26 | body {
|
28 |
| - font-family: "Inter", sans-serif; |
| 27 | + font-family: sans-serif; |
29 | 28 | color: #343a40;
|
30 | 29 | line-height: 1;
|
| 30 | + font-size: 24px; |
| 31 | + height: 100vh; |
| 32 | + text-align: center; |
| 33 | + font-weight: bold; |
| 34 | + |
| 35 | + display: grid; |
| 36 | + grid-template-columns: 80px 400px 1fr 250px; |
| 37 | + grid-template-rows: 80px 1fr; |
| 38 | + } |
| 39 | + |
| 40 | + nav, |
| 41 | + section, |
| 42 | + main, |
| 43 | + aside { |
| 44 | + padding: 24px; |
| 45 | + } |
| 46 | + |
| 47 | + nav { |
| 48 | + background-color: #343a40; |
| 49 | + color: #fff; |
| 50 | + grid-row: 1 / -1; |
| 51 | + justify-self: center; |
| 52 | + } |
| 53 | + |
| 54 | + menu { |
| 55 | + background-color: #7048e8; |
| 56 | + grid-column: 2 / -1; |
| 57 | + |
| 58 | + display: flex; |
| 59 | + align-items: center; |
| 60 | + gap: 12px; |
| 61 | + padding: 0 40px; |
| 62 | + } |
| 63 | + |
| 64 | + button { |
| 65 | + display: inline-block; |
| 66 | + font-size: 16px; |
| 67 | + font-weight: bold; |
| 68 | + background-color: #5f3dc4; |
| 69 | + border: none; |
| 70 | + cursor: pointer; |
| 71 | + color: #fff; |
| 72 | + padding: 8px 12px; |
| 73 | + } |
| 74 | + |
| 75 | + button:last-child { |
| 76 | + background-color: #d6336c; |
| 77 | + margin-left: auto; |
| 78 | + } |
| 79 | + |
| 80 | + section { |
| 81 | + background-color: #e9ecef; |
| 82 | + padding: 40px; |
| 83 | + |
| 84 | + overflow: scroll; |
| 85 | + |
| 86 | + display: flex; |
| 87 | + flex-flow: column; |
| 88 | + gap: 40px; |
| 89 | + } |
| 90 | + |
| 91 | + .email { |
| 92 | + background-color: #adb5bd; |
| 93 | + height: 90px; |
| 94 | + flex-shrink: 0; |
| 95 | + |
| 96 | + display: flex; |
| 97 | + align-items: center; |
| 98 | + justify-content: center; |
| 99 | + } |
| 100 | + |
| 101 | + aside { |
| 102 | + background-color: #e9ecef; |
31 | 103 | }
|
32 | 104 | </style>
|
33 | 105 | </head>
|
34 |
| - <body></body> |
| 106 | + <body> |
| 107 | + <nav>Nav</nav> |
| 108 | + <menu> |
| 109 | + <button>New</button> |
| 110 | + <button>Reply</button> |
| 111 | + <button>Forward</button> |
| 112 | + <button>Mark as unread</button> |
| 113 | + <button>Trash</button> |
| 114 | + </menu> |
| 115 | + <section> |
| 116 | + <div class="email">Email 1</div> |
| 117 | + <div class="email">Email 2</div> |
| 118 | + <div class="email">Email 3</div> |
| 119 | + <div class="email">Email 4</div> |
| 120 | + <div class="email">Email 5</div> |
| 121 | + <div class="email">Email 6</div> |
| 122 | + <div class="email">Email 7</div> |
| 123 | + <div class="email">Email 8</div> |
| 124 | + <div class="email">Email 9</div> |
| 125 | + <div class="email">Email 10</div> |
| 126 | + </section> |
| 127 | + <main>Email view</main> |
| 128 | + <aside>Additional info</aside> |
| 129 | + </body> |
35 | 130 | </html>
|
0 commit comments