martinms

HTML: Static Profile

Jul 2nd, 2021 (edited)
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.   <meta charset="UTF-8">
  6.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8.  
  9.   <title>Selamat Datang, HTML</title>
  10.  
  11.   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP&amp;display=swapps://github.com/produle/MockFlowFont/blob/master/MockFlowFont1/dist/MockFlowFont1.woff">
  12.  
  13.   <style>
  14.     :root {
  15.       --surface-color: #fff;
  16.       --curve: 30;
  17.     }
  18.  
  19.     * {
  20.       box-sizing: border-box;
  21.     }
  22.  
  23.     body {
  24.       font-family: 'Noto Sans JP', sans-serif;
  25.       background-color: #CDF0EA;
  26.       padding-top: 50px;
  27.     }
  28.  
  29.     .content {
  30.       position: relative;
  31.     }
  32.  
  33.     .card {
  34.       margin: 0 auto;
  35.       padding: 0;
  36.       position: relative;
  37.       display: block;
  38.       height: 100%;
  39.       border-radius: calc(var(--curve) * 1px);
  40.       overflow: hidden;
  41.       text-decoration: none;
  42.       max-width: 30%
  43.     }
  44.  
  45.     .card .image {
  46.       width: 100%;
  47.       height: auto;
  48.     }
  49.  
  50.     .card .overlay {
  51.       position: absolute;
  52.       bottom: 0;
  53.       left: 0;
  54.       right: 0;
  55.       z-index: 1;
  56.       border-radius: calc(var(--curve) * 1px);
  57.       background-color: var(--surface-color);
  58.       transform: translateY(100%);
  59.       transition: .2s ease-in-out;
  60.     }
  61.  
  62.     .card:hover .overlay {
  63.       transform: translateY(0);
  64.     }
  65.  
  66.     .card .header {
  67.       position: relative;
  68.       display: flex;
  69.       align-items: center;
  70.       gap: 2em;
  71.       padding: 2em;
  72.       border-radius: calc(var(--curve) * 1px) 0 0 0;
  73.       background-color: var(--surface-color);
  74.       transform: translateY(-100%);
  75.       transition: .2s ease-in-out;
  76.     }
  77.  
  78.     .card .arc {
  79.       width: 80px;
  80.       height: 80px;
  81.       position: absolute;
  82.       bottom: 100%;
  83.       right: 0;
  84.       z-index: 1;
  85.     }
  86.  
  87.     .card .arc path {
  88.       fill: var(--surface-color);
  89.       d: path("M 40 80 c 22 0 40 -22 40 -40 v 40 Z");
  90.     }
  91.  
  92.     .card:hover .header {
  93.       transform: translateY(0);
  94.     }
  95.  
  96.     .card .thumb {
  97.       flex-shrink: 0;
  98.       width: 50px;
  99.       height: 50px;
  100.       border-radius: 50%;
  101.     }
  102.  
  103.     .card .title {
  104.       font-size: 1em;
  105.       margin: 0 0 .3em;
  106.       color: #6A515E;
  107.     }
  108.  
  109.     .card .tagline {
  110.       display: block;
  111.       margin: 1em 0;
  112.       font-family: "MockFlowFont";
  113.       font-size: .8em;
  114.       color: #D7BDCA;
  115.     }
  116.  
  117.     .card .status {
  118.       font-size: .8em;
  119.       color: #D7BDCA;
  120.     }
  121.  
  122.     .card .description {
  123.       padding: 0 2em 2em;
  124.       margin: 0;
  125.       color: #D7BDCA;
  126.       font-family: "MockFlowFont";
  127.       display: -webkit-box;
  128.       -webkit-box-orient: vertical;
  129.       -webkit-line-clamp: 3;
  130.       overflow: hidden;
  131.     }
  132.   </style>
  133. </head>
  134.  
  135. <body>
  136.   <div class="content">
  137.     <div class="card">
  138.       <img
  139.        src="https://images.unsplash.com/photo-1512486130939-2c4f79935e4f?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80"
  140.        class="image" alt="Cover" />
  141.       <div class="overlay">
  142.         <div class="header">
  143.           <svg class="arc" xmlns="http://www.w3.org/2000/svg">
  144.             <path />
  145.           </svg>
  146.           <img class="thumb" src="https://avatars.githubusercontent.com/u/16255501?v=4" alt="Martin Mulyo Syahidin" />
  147.           <div class="header-text">
  148.             <h3 class="title">Martin Mulyo Syahidin</h3>
  149.             <span class="status">Universitas Bengkulu</span>
  150.           </div>
  151.         </div>
  152.         <p class="description">
  153.           Ini hanya sebuah deskripsi, dimana air mengalir sampai jauh.
  154.         </p>
  155.       </div>
  156.     </div>
  157.   </div>
  158. </body>
  159.  
  160. </html>
Advertisement
Add Comment
Please, Sign In to add comment