Created
July 15, 2020 23:22
-
-
Save ajhyndman/ce15e64f9b68a169ccad5fb4b3b4a627 to your computer and use it in GitHub Desktop.
Code in the Dark @ Dropbox submission — Team Dinky Codepen Devs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <head> | |
| <link | |
| rel="stylesheet" | |
| type="text/css" | |
| href="https://dropbox-appbox-static.s3.amazonaws.com/static/css-reset.css" | |
| /> | |
| <link | |
| rel="stylesheet" | |
| type="text/css" | |
| href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap" | |
| /> | |
| <style type="text/css"> | |
| body { | |
| width: 1000px; | |
| padding-left: 45px; | |
| padding-right: 45px; | |
| padding-bottom: 42px; | |
| box-sizing: border-box; | |
| font-family: Montserrat; | |
| } | |
| #header { | |
| display: flex; | |
| flex-direction: row; | |
| justify-content: space-between; | |
| align-items: center; | |
| height: 80px; | |
| } | |
| .header-right { | |
| display: flex; | |
| align-items: center; | |
| } | |
| .logo { | |
| width: 200px; | |
| } | |
| .chevron-down { | |
| padding-left: 5px; | |
| } | |
| .menu-section { | |
| margin-left: 19px; | |
| width: 70px; | |
| display: flex; | |
| flex-direction: row; | |
| justify-content: space-between; | |
| border: 1px solid #777; | |
| border-radius: 22px; | |
| padding-left: 7px; | |
| padding-right: 7px; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| } | |
| .circle { | |
| height: 24px; | |
| width: 24px; | |
| border-radius: 50%; | |
| background: red; | |
| } | |
| #tabs { | |
| display: flex; | |
| flex-direction: row; | |
| margin-bottom: 14px; | |
| margin-top: 14px; | |
| align-items: center; | |
| } | |
| .tab { | |
| padding-bottom: 4px; | |
| margin-left: 24px; | |
| font-size: 20px; | |
| } | |
| .selected-tab { | |
| border-bottom: 2px solid #222; | |
| margin-left: 0; | |
| } | |
| .new-badge-dark { | |
| background: #222; | |
| color: white; | |
| border-radius: 5px; | |
| padding: 5px 6px; | |
| font-size: 8px; | |
| font-weight: 600; | |
| margin-left: 8px; | |
| } | |
| #nav { | |
| border-radius: 12px; | |
| display: flex; | |
| flex-direction: row; | |
| border: 2px solid #555; | |
| box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | |
| } | |
| .nav-title { | |
| color: #222; | |
| font-size: 8px; | |
| font-weight: 600; | |
| padding-bottom: 8px; | |
| } | |
| .nav-placeholder { | |
| color: #555; | |
| font-size: 12px; | |
| } | |
| .nav-item { | |
| padding-top: 12px; | |
| padding-bottom: 12px; | |
| padding-left: 22px; | |
| border-right: 1px solid #AAA; | |
| } | |
| .location { | |
| flex-grow: 2; | |
| } | |
| .check-in { | |
| flex-grow: 1; | |
| } | |
| .check-out { | |
| flex-grow: 1; | |
| } | |
| .guests { | |
| flex-grow: 2; | |
| display: flex; | |
| flex-direction: row; | |
| justify-content: space-between; | |
| position: relative; | |
| } | |
| .card-heading { | |
| font-size: 36px; | |
| line-height: 1.2; | |
| margin: 50px 0; | |
| color: linear-gradient(#300, #F00); | |
| } | |
| .card-row { | |
| display: flex; | |
| flex-wrap: nowrap; | |
| } | |
| .card { | |
| background: white; | |
| position: relative; | |
| border-radius: 12px; | |
| height: 300px; | |
| overflow: hidden; | |
| margin-right: 14px; | |
| flex-grow: 1; | |
| flex-shrink: 1; | |
| min-width: 0; | |
| box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | |
| } | |
| .card:last-of-type { | |
| margin-right: 0; | |
| } | |
| .card__image { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| } | |
| .card__body { | |
| padding: 15px; | |
| } | |
| .card__title { | |
| color: #222; | |
| font-weight: 600; | |
| font-size: 20px; | |
| line-height: 1; | |
| margin-bottom: 10px; | |
| } | |
| .card__body { | |
| color: #555; | |
| font-size: 12px; | |
| } | |
| .card__label { | |
| background: white; | |
| color: #222; | |
| border-radius: 5px; | |
| position: absolute; | |
| top: 16px; | |
| left: 16px; | |
| padding: 5px 6px; | |
| font-size: 8px; | |
| font-weight: 600; | |
| } | |
| img { | |
| display: block; | |
| } | |
| .globe-section { | |
| display: flex; | |
| flex-direction: row; | |
| align-items: center; | |
| } | |
| .search-div { | |
| border-radius: 12px; | |
| background: red; | |
| margin-right: 8px; | |
| } | |
| .guests-right { | |
| position: absolute; | |
| top: 6px; | |
| right: 8px; | |
| bottom: 6px; | |
| display: flex; | |
| flex-direction-row; | |
| } | |
| .search-icon { | |
| padding-right: 8px; | |
| width: 20px; | |
| } | |
| .search-button { | |
| border-radius: 10px; | |
| background: red; | |
| color:white; | |
| display: flex; | |
| align-items: center; | |
| padding-left: 20px; | |
| padding-right: 20px; | |
| } | |
| </style> | |
| <script> | |
| // while(true) { return 'I wonder if this would crash the commentary screen' } | |
| // box = document.createElement('div'); | |
| // box.classList.push(''); | |
| // font color- #222 for dark colors, secondary color: #555 | |
| </script> | |
| </head> | |
| <body> | |
| <div id="header"> | |
| <div> | |
| <img | |
| class="logo" | |
| src="https://dropbox-appbox-static.s3.amazonaws.com/static/hackergames/production/images/yourhousebnb-logo.png" | |
| /> | |
| </div> | |
| <div class="header-right"> | |
| <div class="globe-section"> | |
| <img | |
| src="https://dropbox-appbox-static.s3.amazonaws.com/static/hackergames/production/images/globe-icon.png" | |
| /> | |
| <img | |
| class="chevron-down" | |
| src="https://dropbox-appbox-static.s3.amazonaws.com/static/hackergames/production/images/down-chevron.png" | |
| /> | |
| </div> | |
| <div class="menu-section"> | |
| <img | |
| src="https://dropbox-appbox-static.s3.amazonaws.com/static/hackergames/production/images/burger-icon.png" | |
| /> | |
| <div class="circle"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div id="tabs"> | |
| <div class="tab selected-tab"> | |
| Places to stay | |
| </div> | |
| <div class="tab"> | |
| Experiences | |
| </div> | |
| <div class="tab"> | |
| Online Experiences | |
| </div> | |
| <div class="new-badge-dark"> | |
| NEW | |
| </div> | |
| </div> | |
| <div id="nav"> | |
| <div class="location nav-item"> | |
| <div class="nav-title"> | |
| LOCATION | |
| </div> | |
| <div class="nav-placeholder"> | |
| Where are you going? | |
| </div> | |
| </div> | |
| <div class="check-in nav-item"> | |
| <div class="nav-title"> | |
| CHECK IN | |
| </div> | |
| <div class="nav-placeholder"> | |
| Add dates | |
| </div> | |
| </div> | |
| <div class="check-out nav-item"> | |
| <div class="nav-title"> | |
| CHECK OUT | |
| </div> | |
| <div class="nav-placeholder"> | |
| Add dates | |
| </div> | |
| </div> | |
| <div class="guests nav-item"> | |
| <div> | |
| <div class="nav-title"> | |
| GUESTS | |
| </div> | |
| <div class="nav-placeholder"> | |
| Add guests | |
| </div> | |
| </div> | |
| <div class="guests-right"> | |
| <div class="search-button"> | |
| <img | |
| class="search-icon" | |
| src="https://dropbox-appbox-media.s3.amazonaws.com/search-icon.png" | |
| /> | |
| <p> | |
| Search | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <h1 class="card-heading">You don't need to go far to find what matters.</h1> | |
| <div class="card-row"> | |
| <div class="card"> | |
| <img | |
| class="card__image" | |
| src="https://dropbox-appbox-static.s3.amazonaws.com/static/hackergames/production/images/livingroom.png" | |
| /> | |
| <div class="card__body"> | |
| <h2 class="card__title">Visit the living room.</h2> | |
| <p class="card__description"> | |
| Unique activities for the whole family, over and over and over. | |
| </p> | |
| </div> | |
| </div> | |
| <div class="card"> | |
| <div class="card__label">NEW</div> | |
| <img | |
| class="card__image" | |
| src="https://dropbox-appbox-static.s3.amazonaws.com/static/hackergames/production/images/bigcat.png" | |
| /> | |
| <div class="card__body"> | |
| <h2 class="card__title">Pet the cat.</h2> | |
| <p class="card__description"> | |
| If that is, in fact, your cat, and not an angry mountain lion. | |
| </p> | |
| </div> | |
| </div> | |
| <div class="card"> | |
| <img | |
| class="card__image" | |
| src="https://dropbox-appbox-static.s3.amazonaws.com/static/hackergames/production/images/fridge.png" | |
| /> | |
| <div class="card__body"> | |
| <h2 class="card__title">Grab something from the fridge.</h2> | |
| <p class="card__description"> | |
| That quaint carton of milk is left over from the pre-pandemic times. | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment