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 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

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.

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

              
                <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<div class="outer-body-1">
  <div class="outer-body-2">
    <!--     upper container -->
    <div class="upper-cont">
      <div class="ups-1">
        <div class="ups-2">
          <div class="button-1">
            <div class="button"></div>
            <div class="label">ARTISTS</div>
          </div>
          <div class="button-2">
            <div class="button"></div>
            <div class="label">SPECIALS</div>
          </div>
          <div class="button-3">
            <div class="button"></div>
            <div class="label">PLAYLISTS</div>
          </div>
        </div>
      </div>
    </div>
    <!--     middle container -->
    <div class="middle-cont">
      <div class="space-1"></div>
      <div class="mtop-cont">
        <div class="mborder-1"></div>
        <div class="mborder-2"></div>
        <div class="mborder-3"></div>
      </div>
      <div class="mmid-cont">
        <div class="m1"></div>
        <div class="m2"></div>
        <div class="m3">
          <div class="spacer-1"></div>
          <div class="spacer-2">
            <div class="blueplate">
              <div class="icon-cont">
                <div class="one">
                  <span class="material-icons" style="font-size:12px; color:#9FBCCE;">
                    blur_on
                  </span>

                </div>
                <div class="two">
                  <span class="material-icons" style="font-size:12px; color:#9FBCCE;">
                    headset
                  </span></div>
                <div class="three"></div>
                <div class="four">
                  <span class="material-icons" style="font-size:12px; color:#9FBCCE;">
                    bluetooth
                  </span></div>
                <div class="five">
                  <span class="material-icons" style="font-size:12px; color:#9FBCCE;">
                    favorite
                  </span></div>
                <div class="six">
                  <span class="material-icons" style="font-size:12px; color:#9FBCCE; transform:rotate(270deg);">
                    battery_charging_full
                  </span></div>
              </div>
              <div class="artist-name">
                LATA MANGESHKAR
              </div>
              <div class="song-name">LAG JA GALE KI PHIR YEH</div>
            </div>
          </div>
          <div class="spacer-3"></div>
        </div>
        <div class="m4"></div>
        <div class="m5"></div>
      </div>
      <div class="mbottom-cont">
        <div class="mborder-1"></div>
        <div class="mborder-2"></div>
        <div class="mborder-3"></div>
      </div>
      <div class="space-2"></div>
    </div>
    <!--     lower container -->
    <div class="lower-cont">
      <div class="lows-1">
      
        <div class="line-1"></div>
        <div class="line-2"></div>
        <span class="heart material-icons " style="font-size:18px;">
          favorite_border
        </span>
        <span class="forward material-icons " style="font-size:18px;">
          last_page
        </span>
        <span class="back material-icons " style="font-size:18px;">
          first_page
        </span>
        <span class="pause material-icons " style="font-size:18px;">
          pause
        </span>
     
        <div class="btn-content-2"></div>
        <div class="btn-cont">
          <div class="btn-cont-1">

          </div>
        </div>
      </div>
    </div>

  </div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Castoro&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Castoro&family=Press+Start+2P&display=swap");
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 98vh;
background:#f7f7f7;
   overflow:hidden;
}
.outer-body-1 {
  position: relative;
  width: 300px;
  height: 500px;
  background: white;
  border-radius: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2.5px solid #bdbdbd;
}
.outer-body-2 {
  position: absolute;
  width: 296px;
  height: 496px;
  display: grid;
  grid-template-rows: 140px 175px 181px;
  justify-content: center;
  align-items: center;
}
.upper-cont {
  position: absolute;
  grid-row: 1 / span 1;
  background: #a7a7a7;
  width: 296px;
  height: 140px;
  border-radius: 85px 85px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px #434343;
}
.ups-1 {
  position: absolute;
  top: 5%;
  width: 291px;
  height: 145px;
  border-radius: 85px 85px 0 0;
  background: white;
  box-shadow: inset 0 0 30px #545454;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lower-cont {
  position: absolute;
  grid-row: 3 / span 1;
  background: #a7a7a7;
  width: 296px;
  height: 181px;
  border-radius: 0 0 85px 85px;
  box-shadow: 0 0 5px #434343;
}

.middle-cont {
  position: absolute;
  grid-row: 2 / span 1;
  background: black;
  width: 296px;
  height: 175px;
  box-shadow: 0 0 5px #434343;
  display: grid;
  grid-template-rows: 1.5px 8.5px 155px 8.5px 1.5px;
  align-items: center;
  justify-content: center;
}
.space-1 {
  position: absolute;
  grid-row: 1 / span 1;
  height: 1.5px;
  width: 296px;
}
.space-2 {
  position: absolute;
  grid-row: 5 / span 1;
  height: 1.5px;
  width: 296px;
}
.mtop-cont {
  position: absolute;
  grid-row: 2 / span 1;
  width: 296px;
  height: 8.5px;
  display: grid;
  grid-template-columns: 60px 176px 60px;
}
.mbottom-cont {
  position: absolute;
  grid-row: 4 / span 1;
  width: 296px;
  height: 8.5px;
  display: grid;
  grid-template-columns: 60px 176px 60px;
}
.mmid-cont {
  position: absolute;
  grid-row: 3 / span 1;
  width: 296px;
  height: 155px;
  display: grid;
  grid-template-columns: 8.5px 25px 229px 25px 8.5px;
}
.mborder-1 {
  position: absolute;
  width: 60px;
  grid-column: 1 / span 1;
  background-image: linear-gradient(
    to right,
    white,
    #b3b3b3,
    #5d5d5d,
    #5d5d5d,
    #b3b3b3,
    white
  );
  height: 8.5px;
}
.mborder-2 {
  position: absolute;
  width: 176px;
  grid-column: 2 / span 1;
  background-image: linear-gradient(
    to right,
    white,
    white,
    #adadad,
    #606060,
    #606060,
    #606060,
    #adadad,
    white,
    white
  );
  height: 8.5px;
}
.mborder-3 {
  position: absolute;
  width: 60px;
  grid-column: 3 / span 1;
  height: 8.5px;
  background-image: linear-gradient(
    to right,
    white,
    #b3b3b3,
    #5d5d5d,
    #5d5d5d,
    #b3b3b3,
    white
  );
}
.m1 {
  position: absolute;
  grid-column: 1 / span 1;
  width: 8.5px;
  height: 155px;
}
.m2 {
  position: absolute;
  grid-column: 2 / span 1;
  width: 25px;
  height: 155px;
  background-image: linear-gradient(
    to right,
    #a0a0a0,
    #949494,
    #888888,
    #7c7c7c,
    #707070,
    #676767,
    #5e5e5e,
    #555555,
    #4d4d4d,
    #444444,
    #3c3c3c,
    #343434
  );
}
.m3 {
  position: absolute;
  grid-column: 3 / span 1;
  width: 229px;
  height: 155px;
  display: grid;
  grid-template-columns: 20px 189px 20px;
  justify-content: center;
  align-items: center;
}
.m4 {
  position: absolute;
  grid-column: 4 / span 1;
  width: 25px;
  height: 155px;
  background-image: linear-gradient(
    to left,
    #a0a0a0,
    #949494,
    #888888,
    #7c7c7c,
    #707070,
    #676767,
    #5e5e5e,
    #555555,
    #4d4d4d,
    #444444,
    #3c3c3c,
    #343434
  );
}
.m5 {
  position: absolute;
  grid-column: 5 / span 1;
  width: 8.5px;
  height: 155px;
}
.spacer-1 {
  position: absolute;
  width: 20px;
  height: 155px;
  grid-column: 1 / span 1;
}
.spacer-2 {
  position: absolute;
  width: 189px;
  height: 155px;
  grid-column: 2 / span 1;
  display: grid;
  grid-template-columns: 189px;
  justify-content: center;
  align-items: center;
}

.spacer-3 {
  position: absolute;
  width: 20px;
  height: 155px;
  grid-column: 3 / span 1;
}

.ups-2 {
  position: absolute;
  width: 190px;
  height: 82px;
  display: grid;
  grid-template-columns: 63.3px 63.3px 63.3px;
  gap: 2px;
}
.button-1 {
  position: absolute;
  grid-column: 1;
  width: 63.3px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.button-2 {
  position: absolute;
  grid-column: 2;
  width: 63.3px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.button-3 {
  position: absolute;
  grid-column: 3;
  width: 63.3px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.button {
  width: 40px;
  height: 38px;
  background-image: conic-gradient(
    #7e7e7e,
    #b5b5b5,
    white,
    #b5b5b5,
    #7e7e7e,
    #7e7e7e,
    #b5b5b5,
    white,
    #b5b5b5,
    #7e7e7e,
    #7e7e7e,
    #b5b5b5,
    white,
    #b5b5b5,
    #7e7e7e,
    #7e7e7e,
    #b5b5b5,
    white,
    #b5b5b5,
    #7e7e7e
  );
  border-radius: 19px;
  border: 2.1px solid #848484;
}
.label {
  padding-top: 10px;
  font-size: 10px;
  color: #848484;
  font-family: "Amazon Ember", Arial, sans-serif;
  font-weight: 400;
}
.lows-1 {
  position: absolute;
  bottom: 5%;
  width: 291px;
  height: 171px;
  border-radius: 0 0 85px 85px;
  background: white;
  box-shadow: inset 0 0 33px #545454;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.btn-cont {
  position: absolute;
  background: #3d3939;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-cont-1 {
  position: absolute;
  background: white;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  box-shadow: inset 0 0 30px #545454;
  background-image: conic-gradient(
    white,
    #bbbbbb,
    #e5e6ea,
    #838383,
    white,
    #bbbbbb,
    #e5e6ea,
    #838383,
    white
  );
  transform: rotate(90deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.line-1 {
  z-index: 2;
  position: absolute;
  width: 128px;
  height: 3px;
  border: 1px solid gray;
  background-image: linear-gradient(
    to right,
    #a7a7a7,
    #b7b7b7,
    #c7c7c7,
    #d7d7d7,
    #e8e8e8,
    #e8e8e8,
    #e8e8e8,
    #e8e8e8,
    #d7d7d7,
    #c7c7c7,
    #b7b7b7,
    #a7a7a7
  );
  left: 28%;
  transform: rotate(45deg);
}

.line-2 {
  z-index: 2;
  position: absolute;
  width: 128px;
  height: 3px;
  border: 1px solid gray;
  background-image: linear-gradient(
    to right,
    #a7a7a7,
    #b7b7b7,
    #c7c7c7,
    #d7d7d7,
    #e8e8e8,
    #e8e8e8,
    #e8e8e8,
    #e8e8e8,
    #d7d7d7,
    #c7c7c7,
    #b7b7b7,
    #a7a7a7
  );
  left: 28%;
  transform: rotate(-45deg);
}
.btn-content-2 {
  position: absolute;
  background: white;
  width: 70px;
  z-index: 15;
  height: 70px;
  border-radius: 50%;
  border: 1px solid #4e4e4e;
  box-shadow: inset 0 0 30px #545454;
  background-image: conic-gradient(
    white,
    #bbbbbb,
    #e5e6ea,
    #838383,
    white,
    #bbbbbb,
    #e5e6ea,
    #838383,
    white
  );
  transform: rotate(45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.heart {
  position: absolute;
  width: 8px;
  height: 8px;
  z-index: 2;
  top: 15%;
  color: #2d2d2d;
  left: 47%;
}
.forward {
  position: absolute;
  width: 8px;
  height: 8px;
  z-index: 2;
  top: 43%;
  color: #2d2d2d;
  left: 64%;
}
.back {
  position: absolute;
  width: 8px;
  height: 8px;
  z-index: 2;
  top: 43%;
  color: #2d2d2d;
  left: 30%;
}
.pause {
  position: absolute;
  width: 8px;
  height: 8px;
  z-index: 2;
  top: 74%;
  color: #2d2d2d;
  left: 47%;
}
.blueplate {
  position: absolute;
  width: 189px;
  height: 98px;
  background: #1c1a30;
  grid-column: 1 / span 1;
  display: grid;
  grid-template-rows: 35px 30px 33px;
}
.icon-cont {
  width: 189px;
  height: 35px;
  text-align: center;
  grid-row: 1;
  position: absolute;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 20px 20px 89px 20px 20px 20px;
  align-items: center;
  justify-content: center;
}
.one {
  position: absolute;
  grid-column: 1 / span 1;

  width: 20px;
  height: 35px;
}
.two {
  position: absolute;
  grid-column: 2 / span 1;

  width: 20px;
  height: 35px;
}
.three {
  position: absolute;
  grid-column: 3 / span 1;

  width: 89px;
  height: 35px;
}
.four {
  position: absolute;
  grid-column: 4 / span 1;

  width: 20px;
  height: 35px;
}
.five {
  position: absolute;
  grid-column: 5 / span 1;

  width: 20px;
  height: 35px;
}
.six {
  position: absolute;
  grid-column: 6 / span 1;

  width: 20px;
  height: 35px;
}
.artist-name {
  grid-row: 2;
  width: 189px;
  height: 30px;
  position: absolute;
  color: #a1c0d1;
  align-items: center;
  display: flex;
  justify-content: center;
  font-size: 10.5px;
  text-align: center;
  font-family: "Castoro", serif;
  font-family: "Press Start 2P", cursive;
}
.song-name {
  font-size: 10.5px;
  text-align: center;
  width: 189px;
  height: 33px;
  grid-row: 3;
  position: absolute;
  font-family: "Castoro", serif;
  color: #a1c0d1;
}
              
            
!

JS

              
                
              
            
!
999px

Console