Newer
Older
pj25dx-d / figma7.html
<!DOCTYPE html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <title>写真を撮影</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <!-- Font Awesome を追加 -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-kNU2zH3zOFSvE6QAmP7K7zZcTdxzU5aRtp6pZVw7b6LmyPfh0p6e3ey6cJYf6W0XyPzMZJq4Zs5VZ9Z/6vTgaQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />

  <style>
    body {
      margin: 0;
      display: flex;
      justify-content: center;
      background: #eee;
      font-family: Roboto, sans-serif;
    }

    .screen {
      width: 393px;
      height: 852px;
      position: relative;
      background: linear-gradient(37deg, #9FE7FF 0%, #6072F8 100%);
      overflow: hidden;
    }

    .header {
      position: absolute;
      top: 0;
      left: 0;
      width: 393px;
      height: 78px;
      background: black;
    }

    .back-button {
      position: absolute;
      left: 39px;
      top: 16px;
      width: 26px;
      height: 46px;
      background: white;
    }

    .top-box {
      position: absolute;
      top: 78px;
      left: 0;
      width: 393px;
      height: 193px;
      background: #686868;
    }

    .middle-box {
      position: absolute;
      top: 271px;
      left: 0;
      width: 393px;
      height: 388px;
      background: #9FF5FF;
    }

    .bottom-box {
      position: absolute;
      top: 659px;
      left: 0;
      width: 393px;
      height: 193px;
      background: #686868;
    }

    .title {
      position: absolute;
      top: 145px;
      left: 32px;
      width: 322px;
      height: 80px;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      font-size: 32px;
      font-weight: 500;
      color: white;
    }

    .circle-button {
      position: absolute;
      top: 701px;
      left: 144px;
      width: 110px;
      height: 110px;
      background: white;
      border-radius: 50%;
      border: 3px solid black;
      z-index: 1;
    }

    /* 下灰色ボックスのアイコン */
    .bottom-icon {
      position: absolute;
      top: 725px; /* bottom-box内で少し上に寄せる */
      font-size: 40px;
      color: white;
      cursor: pointer;
    }

    .left-icon {
      left: 49px;
    }

    .right-icon {
      right: 49px;
    }
  </style>
</head>

<body>

  <div class="screen">

    <!-- ヘッダー -->
    <div class="header"></div>
    <div class="back-button"></div>

    <!-- 上灰色ボックス -->
    <div class="top-box"></div>

    <!-- 中央水色ボックス -->
    <div class="middle-box"></div>

    <!-- 下灰色ボックス -->
    <div class="bottom-box"></div>

    <!-- タイトル -->
    <div class="title">写真を撮影</div>

    <!-- 丸い撮影ボタン -->
    <div class="circle-button"></div>

    <!-- 下灰色部分のアイコン -->
    <i class="bottom-icon left-icon fa-solid fa-camera"></i>
    <i class="bottom-icon right-icon fa-solid fa-camera-rotate"></i>

  </div>

</body>
</html>