Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>CSS Flexbox</title>
- <!-- Icon library -->
- <link
- rel="stylesheet"
- href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
- />
- <style>
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- :root {
- --logoColor: #37383a;
- }
- .main-container {
- display: flex;
- flex-flow: column wrap;
- min-height: 100vh;
- }
- nav {
- background: #5995db;
- color: white;
- display: flex;
- justify-content: space-around;
- font-size: large;
- }
- .date-area {
- padding: 1rem;
- }
- nav ul {
- text-decoration: none;
- list-style-type: none;
- display: flex;
- min-height: 100%;
- }
- nav li {
- cursor: pointer;
- min-height: 100%;
- padding: 1rem;
- }
- nav li:hover {
- background: rgba(0, 0, 0, 0.4);
- }
- .logo-area {
- height: 25vh;
- background-color: #d8e8ff;
- display: flex;
- justify-content: space-around;
- align-items: center;
- font-size: large;
- }
- a {
- text-decoration: none;
- }
- .down-arrow {
- display: inline-block;
- width: 0;
- height: 0;
- border-left: 5px solid transparent;
- border-right: 5px solid transparent;
- border-top: 7px solid #555;
- }
- .logo {
- font-size: 7vh;
- font-weight: 900;
- color: var(--logoColor);
- }
- .fa {
- padding: 6px 7px;
- height: 30px;
- font-size: 20px;
- width: 30px;
- text-align: center;
- text-decoration: none;
- margin: 5px 2px;
- border-radius: 50%;
- }
- .fa-facebook {
- background: #3b5998;
- color: white;
- }
- .fa-twitter {
- background: #55acee;
- color: white;
- }
- .fa-instagram {
- background: #125688;
- color: white;
- }
- .item-group {
- display: flex;
- justify-content: center;
- height: 23vh;
- width: 100%;
- }
- .item {
- width: 10rem;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 7vh;
- font-weight: bolder;
- color: var(--logoColor);
- }
- .item-group .item-1 {
- background-color: #c9c6fb;
- }
- .item-group .item-2 {
- background-color: #f2999d;
- }
- .item-group .item-3 {
- background-color: #b3d6fe;
- }
- .item-group .item-4 {
- background-color: #c3edfb;
- }
- .item-group .item-5 {
- background-color: #f5cf8e;
- }
- footer {
- display: flex;
- flex-grow: 1;
- background-color: red;
- }
- .left-footer-area {
- background-color: #5995db;
- flex-grow: 1;
- min-height: 100%;
- }
- .center-footer-area {
- flex-grow: 3;
- min-height: 100%;
- background-color: #d8e8ff;
- }
- .right-footer-area {
- flex-grow: 1;
- min-height: 100%;
- background-color: #5995db;
- }
- </style>
- </head>
- <body>
- <div class="main-container">
- <nav>
- <div class="date-area">Aug 14 2016</div>
- <ul class="sign-up-area">
- <li>Sign Up</li>
- <li>Login</li>
- </ul>
- </nav>
- <div class="logo-area">
- <a href="" class="subscribe-area"
- >Subscribe
- <div class="down-arrow"></div
- ></a>
- <div class="logo">AWESOME LOGO</div>
- <div class="social-media-icons">
- <a
- href="https://facebook.com"
- class="fa fa-facebook"
- target="_blank"
- ></a>
- <a
- href="https://twitter.com"
- class="fa fa-twitter"
- target="_blank"
- ></a>
- <a
- href="https://instagram.com"
- class="fa fa-instagram"
- target="_blank"
- ></a>
- </div>
- </div>
- <div class="item-group">
- <div class="item item-1">5</div>
- <div class="item item-2">2</div>
- <div class="item item-3">3</div>
- </div>
- <div class="item-group">
- <div class="item item-4">4</div>
- <div class="item item-5">1</div>
- </div>
- <footer>
- <div class="left-footer-area"></div>
- <div class="center-footer-area"></div>
- <div class="right-footer-area"></div>
- </footer>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement