Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <!-- https://dribbble.com/shots/3513779-Trip-Planner-Things-to-do -->

<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet">

<div class="container">
  <div class="header">
    <div class="arrow"><i data-feather="arrow-left"></i><span class="back">Back</span></div>

    <div class="headerRight"><i data-feather="search"></i><span class="recherche"> Search where you want to go</span></div>
    <div>Asia > South Korea > Seoul</div>
    <div>Other tranding location</div>
  </div>
  <div class="bigColumns">
    <div class="column1">

      <div class="mainBox">
        <div class="mainBoxHeader">
          <div>
            <p>Trip to</p>
            <h1>Seoul</h1>
          </div>
          <div class="mainBoxHeaderRight">
            <div>15 days</div>
            <div class="price">£ 1650</div>
          </div>
        </div> 

        <div class="mainBoxWeather">
          <h1>16<span class="degree">°c</span></h1>
          <p><i data-feather="sun"></i>Sunrise</p>
        </div>
        <p class="mainBoxSmall"><i data-feather="droplet"></i>Humidity : 26%</p>
        <p class="mainBoxSmall"><i data-feather="wind"></i>Wind : 26 km/h</p>

      </div> 

      <!-- Fin du Main Box -->  
      <p>Things to do</p>
      <!-- Début du BoxInfos --> 

      <div class="boxInfos">
        <h3>Gyeongbokgung</h3>
        <div class="rating"><div>4.5</div><div class="ratingStars"><i data-feather="star"></i>
          <i data-feather="star"></i>
          <i data-feather="star"></i>
          <i data-feather="star"></i>
          <i data-feather="star"></i></div>
        </div>
        <p>Open Tomorrow: 9AM - 6PM</p>
        <p>The main palace of the Joseon dysnaty, build in 1395.</p>   
      </div>

      <div class="boxImages">
        <img src="https://thumbs.dreamstime.com/t/gyeongbokgung-palace-night-seoul-south-korea-96900436.jpg">
        <img src="https://media.halaltrip.com/other/wp-content/uploads/2017/06/palace_1496900146.jpg">
        <img src="https://thumbs.dreamstime.com/t/nuit-de-gyeonghoeru-au-palais-de-gyeongbokgung-%C3%A0-s%C3%A9oul-cor%C3%A9e-86858907.jpg">
        <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Opening_at_night_of_Gyeongbokgung_Palace.JPG/220px-Opening_at_night_of_Gyeongbokgung_Palace.JPG">
      </div>
    </div>
    <!-- Début de la Colonne 2 -->     
    <div class="column2">
      <div class="travel reyk">
        <div>Trip to</div>
        <h1>Reykjavik</h1>
        <p>5 days</p>
        <div class="price">£ 680</div>
      </div>
      
      <div class="travel phnom"> 
        <p>Trip to</p>
        <h1>Phnom Penh</h1>
        <p>10 days</p>
        <div class="price">£ 1370</div>
      </div>
      
      <div class="travel well">
        <p>Trip to</p>
        <h1>Wellington</h1>
        <p>14 days</p>
        <div class="price">£ 2900</div>
      </div>
      
      <div class="travel syd">
        <p>Trip to</p>
        <h1>Sydney</h1>
        <p>6 days</p>
        <div class="price">£ 1800</h3>
      </div>  
    </div>
  </div>
</div>
              
            
!

CSS

              
                *,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #100d26;
  font-family: PT Sans;
  color: white;
  margin: 0;
  
} 

.container {
  max-width: 800px;
  margin: 30px auto;
}

.header {
  display: grid;
  grid-template-columns: auto min-content;
  padding: 20px;
 
  color: #9e9e9e;
}

.arrow {
  color: #F373A7;
  padding: 0px 0px 30px 0px;
}

.back {
  color: #2DCD9F;
  padding: 20px;
  font-size: 20px;
}

.bigColumns {
  display: grid;
  grid-template-columns: 60% 40%;
  padding: 20px;
  color: #d6d6d6;
  grid-gap: 20px;
}

.column1 {
}

.column2 {
}

.mainBox {
  background-color: pink;
  background-image: linear-gradient(135deg, rgba(237,66,157,0.8) 0%,rgba(41,137,216,0.6) 52%,rgba(88,37,170,0.1) 100%), url('https://cdn.ripple.com/wp-content/uploads/2017/09/shutterstock_129286766.jpg');
  background-size: cover;
  padding: 20px;
  border-bottom: 20px solid rgba(41,137,216,0.6);
}

.mainBoxHeader h1,
.mainBoxHeader p {
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.mainBoxHeader {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 20px;
}

.headerRight {
  white-space: nowrap;
}

.mainBoxWeather {
  display: grid;
  grid-template-columns: min-content auto;
  align-items: center;
  margin-bottom: 20px;
}

.mainBoxWeather p {
  align-items: center;
  padding-left: 20px;
}

.mainBoxWeather svg {
  color: white;
  vertical-align: middle;
  margin-right: 10px;
}

.mainBoxSmall {
  margin: 0;
  font-size: 14px;
}

.mainBoxSmall {
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 10px;
  align-items: center;
  margin-bottom: 5px;
}

.degree {
  font-size: 20px;
  font-weight: normal;
  vertical-align: top;
}

.mainBoxWeather h1,
.mainBoxWeather p {
  margin: 0;
}

.mainBoxHeaderRight {
  text-align: right;
}

.recherche {
  padding-left: 20px;
}

.boxInfos {
  margin-bottom: 20px;
  background-color: rgba(44, 26, 79,0.2);
  border: 2px solid #F373A7;
  padding: 20px;
}

.rating {
  display: grid;
  grid-template-columns: min-content auto;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(237,66,157,0.8);
}

.ratingStars {
  padding-left: 10px;
}

.ratingStars svg{
  width: 14px;
  height: auto;
}

.boxInfos h3 {
  margin: 0 0 10px 0;
}

.boxInfos p {
  font-size: 14px;
  margin: 0;
}

.boxImages {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  grid-template-row: 100px;
  overflow: hidden;
}

.boxImages img {
  height: 100px;
  width: auto;
}

img {
  width: 150px; 
}

.travel {
  margin-bottom: 20px;
  background-size: cover;
  padding: 20px;
  border-bottom: 10px solid rgba(0, 0, 0, 0.6);
}

.travel h1,
.travel p {
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.travel h1 {
  font-size: 22px;
  margin-bottom: 20px;
}

.travel p {
  font-size: 14px;
}

.travel .price {
  font-weight: bold;
  color: rgba(0, 0, 0, 0.8);
}

.reyk {
  background-image: linear-gradient(135deg, rgba(54,142,116,1) 0%,rgba(45,205,159,0.4) 100%), url('https://t4.ftcdn.net/jpg/01/07/95/59/240_F_107955947_JBj59HUY0tw45yIaGmLbQjxrXN5TIcES.jpg');
}

.phnom {
  background-image: linear-gradient(135deg, rgba(127,120,39,1) 0%,rgba(247,238,116,0.4) 100%), url('https://blog.frogs-in-nz.com/wp-content/uploads/2015/07/wellingto-cable-car-670x382.png');
}

.well {
  background-image: linear-gradient(135deg, rgba(130,59,58,1) 0%,rgba(226,109,107,0.4) 100%), url('https://lonelyplanetimages.imgix.net/mastheads/65830387.jpg?sharp=10&vib=20&w=1200');
}



.syd {
  background-image: linear-gradient(135deg, rgba(34,102,96,1) 0%,rgba(93,213,203,0.4) 100%), url('https://guidetoiceland.is/image/167234/x/0/voyage-hiver-de-4-jours-blue-lagoon-cercle-d-or-avec-session-motoneige-aurores-boreales.jpg'); 
}

h1{
  color: white;
}

.price {
  font-size: 20px ;
  color: #f24000; 
}

.stars {
  padding: 0px 20px ;
  color: pink;
}
              
            
!

JS

              
                feather.replace()
              
            
!
999px

Console