Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <head>
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
</head>

<div class="base">
  <div class="appframe" style="background:#e0e5ec;">
     <div class="top" style="color:#000;">
        8:51                
        <i class="fas fa-signal"></i>
        <i class="fas fa-wifi"></i>
        <i class="fas fa-battery-full"></i>
      </div>
     
    <div class="appframe2">
      <div class="run1">
        <div class="km" style="color:#000;">
        5km
      </div>
      </div>
    </div>
      <div class="appframe3">
        <div class="appframe4" style="color:#fd981a;">
          120
          <p style="color:#000;">Heart Rate<p>
        </div>
        <div class="appframe4" style="color:#fd981a;">
          30:54
          <p style="color:#000;">Time<p>
        </div>
        <div class="appframe4" style="color:#fd981a;">
          290
          <p style="color:#000;">Calories<p>
        </div>    
     </div>
  <div class ="appframe5">
    <a href="#" class="appbtn2">
  <i class="fas fa-camera"></i>
</a>
    <a href="#" class="btn-real-dent2">
  <i class="fas fa-play"></i>
</a>
    <a href="#" class="appbtn2">
  <i class="fab fa-spotify"></i>
</a>
  </div>
    </div>


  <div class="appframe">
     <div class="top">
        8:51                
        <i class="fas fa-signal"></i>
        <i class="fas fa-wifi"></i>
        <i class="fas fa-battery-full"></i>
      </div>
     
    <div class="appframe2">
      <div class="run2">
        <div class="km">
        5km
      </div>
      </div>
    </div>
      <div class="appframe3">
        <div class="appframe4">
          120
          <p>Heart Rate<p>
        </div>
        <div class="appframe4">
          30:54
          <p>Time<p>
        </div>
        <div class="appframe4" style="border: none;">
          290
          <p>Calories<p>
        </div>    
     </div>
  <div class ="appframe5">
    <a href="#" class="appbtn">
  <i class="fas fa-camera"></i>
</a>
    <a href="#" class="btn-real-dent">
  <i class="fas fa-play"></i>
</a>
    <a href="#" class="appbtn">
  <i class="fab fa-spotify"></i>
</a>
  </div>
    </div>
    </div>
</div>
              
            
!

CSS

              
                .base {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  margin: -8px;
  background: #2d3454;
} 

.appframe{
  margin: 15px;
  position: relative;
  height: 500px;
  width: 250px;
  border-radius: 20px;
  background: #141725;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  user-select: none;
  color: #fff;
}
.top{
  width: 90%;
  position: absolute;
  top: 10px;
  font-family: arial;
  font-size: 12px;
}
.appframe2{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 200px;
  position: absolute;
  top: 40px;
}

.appframe3{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  width: 200px;
  position: absolute;
  bottom: 150px;
}

.appframe4{
  height: 20%;
  width: 40%;
  margin-right: 5px;
   margin-left: 5px;
  color: #8AEC04;
  font-family: Arial;
  font-size: 20px;
  text-align: center;
}

.appframe, .appframe4 p{
  font-family: Arial;
  font-size: 11px;
 color: #fff;
}

.appframe5{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  height: 100px;
  width: 200px;
  position: absolute;
  bottom: 20px;
}

  
.run1{
  position: relative;
  height: 180px;
  width: 180px;
  border-radius: 100%;
  background: #e0e5ec;
  box-shadow:  -4px -4px 10px 0 rgba(255, 255, 255, .4),
              10px 10px 10px  0 rgba(8, 10, 19, .4), 
    inset 4px 4px 6px 0 #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.run1:before,
.run1:after{
  content:'';
  position: absolute;
  border-radius: 100%;
  background: #e0e5ec;
}
.run1:before{
  height: 80%;
  width: 80%;
  box-shadow:  -4px -4px 6px 0 rgba(255, 255, 255, .4),
              10px 10px 10px  0 rgba(8, 10, 19, .4), 
    inset 4px 4px 6px 0 #fff;
  border-top: 5px solid #fd981a;
} 

.run2{
  position: relative;
  height: 180px;
  width: 180px;
  border-radius: 100%;
  background: #141725;
  box-shadow:  -4px -4px 10px 0 rgba(42, 48, 74, .4),
              10px 10px 10px  0 rgba(8, 10, 19, .4), 
    inset 4px 4px 6px 0 #2a304a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.run2:before,
.run2:after{
  content:'';
  position: absolute;
  border-radius: 100%;
  background: #141725;
}
.run2:before{
  height: 80%;
  width: 80%;
  box-shadow:  -4px -4px 6px 0 rgba(42, 48, 74, .4),
              10px 10px 10px  0 rgba(8, 10, 19, .4), 
    inset 4px 4px 6px 0 #2a304a;
  border-top: 5px solid #8AEC04;
}

.km{
  position: relative;
  font-family: Arial;
  color: #fff;
  z-index: 2;
  font-size: 28px;
}

.btn-real-dent {
  /*周りの凹み*/
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: rgba(42, 52, 84, 0.54);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  background: #559C01;
  box-shadow: inset 0 0 4px rgba(0, 71, 82, 41 .08);
}
.btn-real-dent i {
  /*ボタン自体*/
  position: absolute;
  content: '';
  width: 50px;
  height: 50px;
  line-height: 50px;
  left: 5px;
  top: 5px;
  border-radius: 50%;
  font-size: 20px;
  background-image: linear-gradient(#8AEC04 0%, #74CE01 100%);
  text-shadow: 1px 1px 1px rgba(153, 247, 26, 0.66);
  box-shadow: inset 0 2px 0 rgba(153,247,26,0.5), 0 2px 2px rgba(85, 156, 1, 0.19);
  border-bottom: solid 2px #45770a;
}

.appbtn{
  height: 40px;
  width: 40px;
  line-height: 40px;
  background: rgba(42, 52, 84, 0.5);
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
  color: rgba(42, 52, 84, 1);
}

.btn-real-dent2 {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: rgba(42, 52, 84, 0.54);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  background: #e2830e;
  box-shadow: inset 0 0 4px rgba(0, 71, 82, 41 .08);
}
.btn-real-dent2 i {
  position: absolute;
  content: '';
  width: 50px;
  height: 50px;
  line-height: 50px;
  left: 5px;
  top: 5px;
  border-radius: 50%;
  font-size: 20px;
  background-image: linear-gradient(orange 0%, #fd700c 100%);
  text-shadow: 1px 1px 1px rgba(253, 183, 26, 0.66);
  box-shadow: inset 0 2px 0 rgba(253,187,26,0.5), 0 2px 2px rgba(253, 112, 12, 0.19);
  border-bottom: solid 2px ;
}

.appbtn2{
  height: 40px;
  width: 40px;
  line-height: 40px;
  background: rgba(42, 52, 84, 0.2);
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
  color: rgba(42, 52, 84, .5);
}
              
            
!

JS

              
                //inspired from https://dribbble.com/shots/6594927-Running-App-Design
              
            
!
999px

Console