|
| 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>Carousel</title> |
| 8 | + <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| 9 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| 10 | + <link |
| 11 | + href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" |
| 12 | + rel="stylesheet" |
| 13 | + /> |
| 14 | + |
| 15 | + <style> |
| 16 | + * { |
| 17 | + margin: 0; |
| 18 | + padding: 0; |
| 19 | + box-sizing: border-box; |
| 20 | + } |
| 21 | + |
| 22 | + body { |
| 23 | + font-family: "Inter", sans-serif; |
| 24 | + color: #343a40; |
| 25 | + font-size: 24px; |
| 26 | + line-height: 1; |
| 27 | + height: 100vh; |
| 28 | + text-align: center; |
| 29 | + font-weight: bold; |
| 30 | + |
| 31 | + display: grid; |
| 32 | + grid-template-columns: 80px 400px 1fr 250px; |
| 33 | + grid-template-rows: 80px 1fr; |
| 34 | + } |
| 35 | + |
| 36 | + nav, |
| 37 | + menu, |
| 38 | + main, |
| 39 | + section, |
| 40 | + aside { |
| 41 | + padding-top: 24px; |
| 42 | + } |
| 43 | + nav { |
| 44 | + background-color: #343a40; |
| 45 | + grid-row: 1 / -1; |
| 46 | + color: #fff; |
| 47 | + } |
| 48 | + |
| 49 | + menu { |
| 50 | + background-color: #7048e8; |
| 51 | + color: #fff; |
| 52 | + grid-column: 2 / -1; |
| 53 | + display: flex; |
| 54 | + align-items: center; |
| 55 | + gap: 12px; |
| 56 | + padding: 0 40px; |
| 57 | + } |
| 58 | + |
| 59 | + section { |
| 60 | + background-color: #e9ecef; |
| 61 | + padding: 40px; |
| 62 | + display: flex; |
| 63 | + flex-direction: column; |
| 64 | + gap: 40px; |
| 65 | + |
| 66 | + overflow: scroll; |
| 67 | + } |
| 68 | + button { |
| 69 | + display: inline-block; |
| 70 | + font-size: 16px; |
| 71 | + font-weight: bold; |
| 72 | + background-color: #5f3dc4; |
| 73 | + border: none; |
| 74 | + cursor: pointer; |
| 75 | + color: #fff; |
| 76 | + padding: 8px 12px; |
| 77 | + } |
| 78 | + |
| 79 | + button:last-child { |
| 80 | + background-color: red; |
| 81 | + margin-left: auto; |
| 82 | + } |
| 83 | + |
| 84 | + aside { |
| 85 | + background-color: #e9ecef; |
| 86 | + } |
| 87 | + |
| 88 | + .email { |
| 89 | + background-color: #adb6bd; |
| 90 | + height: 96px; |
| 91 | + flex-shrink: 0; |
| 92 | + |
| 93 | + display: flex; |
| 94 | + align-items: center; |
| 95 | + justify-content: center; |
| 96 | + } |
| 97 | + </style> |
| 98 | + </head> |
| 99 | + <body> |
| 100 | + <nav>NAV</nav> |
| 101 | + <menu> |
| 102 | + <button>New</button> |
| 103 | + <button>Reply</button> |
| 104 | + <button>Forward</button> |
| 105 | + <button>Mark unread</button> |
| 106 | + <button>Trash</button> |
| 107 | + </menu> |
| 108 | + <section> |
| 109 | + <div class="email">Email 1</div> |
| 110 | + <div class="email">Email 2</div> |
| 111 | + <div class="email">Email 3</div> |
| 112 | + <div class="email">Email 4</div> |
| 113 | + <div class="email">Email 5</div> |
| 114 | + <div class="email">Email 6</div> |
| 115 | + <div class="email">Email 7</div> |
| 116 | + <div class="email">Email 8</div> |
| 117 | + <div class="email">Email 9</div> |
| 118 | + <div class="email">Email 10</div> |
| 119 | + </section> |
| 120 | + <main>Email view</main> |
| 121 | + <aside>Additional info</aside> |
| 122 | + </body> |
| 123 | +</html> |
0 commit comments