Newer
Older
2025-Tsuji / system / demo / posenet.html
<!DOCTYPE html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>PoseNet農業体験ゲーム</title>
  <style>
    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      color: #333;
    }
    header {
      background-color: #66bb6a;
      color: white;
      padding: 1rem;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    nav {
      margin-top: 1rem;
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
    }
    nav a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }
    .hero {
      text-align: center;
      padding: 3rem 1rem;
    }
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    .hero p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }
    .hero button {
      background-color: #43a047;
      color: white;
      border: none;
      padding: 1rem 2rem;
      font-size: 1rem;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }
    section {
      max-width: 800px;
      margin: 2rem auto;
      padding: 1rem;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    section h2 {
      color: #388e3c;
      margin-top: 0;
    }
    .game-area {
      text-align: center;
      margin: 2rem 0;
      position: relative;
    }
    .slideshow {
      max-width: 100%;
      height: 300px;
      overflow: hidden;
      position: relative;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .slideshow img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      display: none;
      position: absolute;
      top: 0;
      left: 0;
    }
    .slideshow img.active {
      display: block;
    }
    footer {
      background-color: #66bb6a;
      color: white;
      text-align: center;
      padding: 1rem;
      margin-top: 2rem;
    }
    @media (max-width: 600px) {
      .hero h1 {
        font-size: 1.8rem;
      }
      nav {
        gap: 1rem;
      }
      .slideshow {
        height: 200px;
      }
      .slideshow img {
        height: 200px;
      }
    }
  </style>
</head>
<body>

<header>
  <h1>PoseNet農業体験ゲーム</h1>
  <h1>try farming</h1>
  <nav>
    <a href="#about">ゲーム紹介</a>
    <a href="#howto">遊び方</a>
    <a href="#play">ゲーム画面</a>
  </nav>
</header>

<div class="hero">
  <h1>身体を動かして、農業体験!</h1>
  <p>PoseNet技術で、カメラ越しに農業作業を体験しよう。</p>
  <button onclick="location.href='https://www.yatex.org/gitbucket/HiroseLabo./2025-Tsuji/pages/system/demo/start.html'">今すぐプレイする</button>
</div>

<section id="about">
  <h2>ゲーム紹介</h2>
  <p>このゲームは、PoseNet技術を使い、カメラ越しに自分の動きを認識しながら、農業体験ができるゲームです。楽しみながら身体を動かし、野菜を植えたり、水をあげたり、収穫したりしましょう!</p>
</section>

<section id="howto">
  <h2>遊び方</h2>
  <ol>
    <li>今すぐプレイするを押します</li>
    <li>カメラを許可します</li>
    <li>画面の指示に合わせて体を動かします</li>
    <li>畑作業を成功させよう!</li>
  </ol>
</section>

<section id="play">
  <h2>ゲーム画面</h2>
  <div class="game-area">
    <div class="slideshow">
      <img src="screenshot1.jpg" alt="ゲーム画面表示" class="active">
      <img src="screenshot2.jpg" alt="ゲーム画面表示">
      <img src="screenshot3.jpg" alt="ゲーム画面表示">
    </div>
  </div>
</section>

<footer>
  &copy; 2025 農業体験ゲームプロジェクト
</footer>

<script>
  const images = document.querySelectorAll('.slideshow img');
  let current = 0;

  setInterval(() => {
    images[current].classList.remove('active');
    current = (current + 1) % images.length;
    images[current].classList.add('active');
  }, 3000); // 3秒ごとに切り替え
</script>

</body>
</html>