Header Ads

Niagahoster

User Profile

User Profile

CSS Code

* {
  font-family: "Roboto", sans-serif;
  margin: 0;
  text-decoration: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.wrapper {
  background: #e9e9e9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100vh;
}

.application {
  box-shadow: 0px 10px 50px -4px rgba(0, 0, 0, 0.58);
  border-radius: 2px;
  background: #cccccc;
  width: 405px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: hidden;
}
.application .header {
  z-index: 3;
  height: 251px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #fff;
}
.application .header .user {
  margin-top: 16px;
  height: 164px;
  z-index: 30;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
}
.application .header .user .ava {
  border: 3px solid #ff7141;
  background: url("https://pbs.twimg.com/profile_images/783621732565266432/kOYKOa39.jpg") center center/cover no-repeat;
  width: 118px;
  height: 118px;
  border-radius: 50%;
}
.application .header .user .nickname {
  color: #38190c;
  font-size: 32px;
  font-weight: 400;
}
.application .header .button {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #ff7141;
  border-radius: 4px;
  padding: 9px 16px;
  z-index: 30;
  width: 109px;
}
.application .header .button .label {
  color: #ff7141;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
}
.application .content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
}
.application .content .tabs {
  width: 100%;
  height: 83px;
  background: #ff7141;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.application .content .tabs .tab {
  font-size: 22px;
  text-align: center;
  color: #fff;
  width: 33%;
  cursor: pointer;
}
.application .content .tabs .tab:nth-child(2) {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}
.application .content .tabs .tab .label {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 600;
}
.application .content .tabs .tab .count {
  font-size: 32px;
}
.application .content .friends {
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  padding: 16px;
  width: 100%;
}
.application .content .friends .friend {
  margin: 0 8px;
  width: 56px;
  height: 56px;
  background: #e9e9e9;
  border-radius: 50%;
  cursor: pointer;
}
.application .content .friends .friend.more {
  font-size: 32px;
  text-align: center;
}
.application .content .friends .friend:nth-child(1) {
  background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5Qj6CQu3wRF3VVs-9k9PedtfAWYaY1TqzRXtnpAsmhlw-Yg0IvXwmexVsKewedK40iNkU55aqT9ZvXmF3i5gEZjwDleFNBafN64hWjPtNzReBgyK2Du1tCNfU7LnPLxI1ap2ifELYEQ/s1600/girl-in-the-station.jpg") center center/cover no-repeat;
}
.application .content .friends .friend:nth-child(2) {
  background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGhRWgy_vH9FZsVpUZpQ9ijHmjKseke87AsVK57OnX-a7YBP31-D-bbmpMLahUXDc-6uYlVhUQrESjoGlNdweIc5R-c62w1WldcsJqtNVmMIqYqujvsdvjU0eN-68H5CFDZ_IqaBnwrw/s1600/multiple-gears.jpg") center center/cover no-repeat;
}
.application .content .friends .friend:nth-child(3) {
  background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK40BJdMXWKxHGIH_l8IC8ErFssRONPetbGzXhCBMfhC3pmwxWasYOyws_OHMO8-u2k0vPULYDVSGJPjcPLveG52tdhnkgH9lNWzbAdO7EHcM1-AxZ5W3R9TIzmtZeKe1IZadcn3NpFg/s1600/light-pink.jpg") center center/cover no-repeat;
}
.application .content .friends .friend:nth-child(4) {
  background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc5y5AhcDd1f2RjfnlrSTYqE5gIAz_rSqr_Isd0AUWLsW0nFVtUR76Rfrk54IYc9nrJAYSAlloxqAcNgTxFvOsIbgidi8_OpmQSy2fY0tenPTOETiBAFRxt24XpCNEeq5522Pl9iI0ow/s1600/chemical-reaction.jpg") center center/cover no-repeat;
}

@media all and (max-height: 450px) {
  .application {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 80vh;
  }
  .application .header {
    height: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  .application .content {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    height: 100%;
  }
  .application .content .tabs {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: auto;
    height: 100%;
    width: 100%;
    padding: 0 8px;
  }
  .application .content .tabs .tab {
    width: 100%;
    padding: 4px;
  }
  .application .content .tabs .tab:nth-child(2) {
    border-right: none;
    border-left: none;
  }
  .application .content .friends {
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-pack: distribute;
        justify-content: space-around;
  }
  .application .content .friends .friend {
    width: 40px;
    height: 40px;
    margin: 8px 0;
  }
}
@media all and (max-width: 430px) {
  .application {
    width: 100%;
  }
}

HTML Code

<div class="wrapper">
  <div class="application">
    <div class="header">
      <div class="user">
        <div class="ava"></div>
        <div class="nickname">
          Rancage
        </div>
      </div>
      <a class="button" href="https://twitter.com/dirkz07" target="_blank">
        <div class="label">
          Follow
        </div>
      </a>
    </div>
    <div class="content">
      <div class="tabs">
        <div class="tab">
          <div class="label">
            Followers
          </div>
          <div class="count">
            22
          </div>
        </div>
        <div class="tab">
          <div class="label">
            Following
          </div>
          <div class="count">
            15
          </div>
        </div>
        <div class="tab">
          <div class="label">
            Tweets
          </div>
          <div class="count">
            580
          </div>
        </div>
      </div>
      <div class="friends">
        <div class="friend"></div>
        <div class="friend"></div>
        <div class="friend"></div>
        <div class="friend"></div>
        <div class="friend more">
          ...
        </div>
      </div>
    </div>
  </div>
</div>

LIVE PREVIEW

See the Pen CSS Gallery - User Profile by Peternak Blog (@peternakblog) on CodePen.

Credit: Alex
Powered by Blogger.