Button Tiktok

Preview

Nội dung

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Button Tiktok</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
    <img src="https://i0.wp.com/tienghoahangngay.com/wp-content/uploads/2020/09/logo-tik-tok.png?resize=240%2C272&ssl=1" alt="" class="logo-tiktok">
    <p><button class="btn-tiktok">Button Tiktok</button></p>
</body>
</html>

CSS

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
  :root {
    --font: "Poppins", sans-serif;
}

body {
    background-color: #1C0815;
    font-family: var(--font);
    font-size: 1.4rem;
    overflow-x: hidden;
    font-weight: 300;
    text-align: center;
}

button {
    margin-top: 100px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 300;
    top: 50%;
    outline: none;
    border: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    -webkit-appearance: none;
    cursor: pointer;
}
  
.logo-tiktok{
      margin-top: 55px;
      text-align: center;
}

.btn-tiktok {
    margin-top: 55px;
    text-align: center;
    padding: 10px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    background-color: #000;
    cursor: pointer;
    outline: none;
    border: none;
    box-shadow: 3px 3px 0 0 #fb014e,
        calc(-1 * 3px) calc(-1 * 3px) 0 0 #69f0f7;
}