Galeria De Fotos Carrossel

Galeria de fotos com carrossel

GALERIA

Código

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Dark Photo Gallery Carousel</title>
  <!-- Bootstrap CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">

  <style>
    body {
      background-color: #1c1c1e;
      color: white;
    }

    /* Estilo do card mais claro que o background */
    .carousel-item {
      transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .carousel .card {
      background-color: #2c2c2e;
      border: none;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    }

    .carousel .card img {
      border-radius: 10px;
    }

    .carousel .card-body {
      text-align: center;
      padding: 15px;
    }

    /* Botões do carrossel */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      filter: invert(100%);
    }

    /* Estilo de hover nas imagens */
    .carousel .card:hover {
      transform: scale(1.05);
      transition: transform 0.3s ease;
    }
  </style>
</head>
<body>

<div class="container mt-5">
  <h2 class="text-center mb-4">Galeria de Fotos - Enepta</h2>

  <!-- Carrossel -->
  <div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">
    <div class="carousel-inner">
      <!-- Slide 1 -->
      <div class="carousel-item active">
        <div class="card">
          <a href="https://enepta.com" target="_blank">
            <img src="https://via.placeholder.com/600x400/ff6b6b/ffffff?text=Foto+1" class="d-block w-100" alt="Foto 1">
          </a>
          <div class="card-body">
            <h5 class="card-title">Foto 1</h5>
            <p class="card-text">Descrição breve sobre a Foto 1.</p>
          </div>
        </div>
      </div>

      <!-- Slide 2 -->
      <div class="carousel-item">
        <div class="card">
          <a href="https://enepta.com" target="_blank">
            <img src="https://via.placeholder.com/600x400/1e90ff/ffffff?text=Foto+2" class="d-block w-100" alt="Foto 2">
          </a>
          <div class="card-body">
            <h5 class="card-title">Foto 2</h5>
            <p class="card-text">Descrição breve sobre a Foto 2.</p>
          </div>
        </div>
      </div>

      <!-- Slide 3 -->
      <div class="carousel-item">
        <div class="card">
          <a href="https://enepta.com" target="_blank">
            <img src="https://via.placeholder.com/600x400/32cd32/ffffff?text=Foto+3" class="d-block w-100" alt="Foto 3">
          </a>
          <div class="card-body">
            <h5 class="card-title">Foto 3</h5>
            <p class="card-text">Descrição breve sobre a Foto 3.</p>
          </div>
        </div>
      </div>

      <!-- Slide 4 -->
      <div class="carousel-item">
        <div class="card">
          <a href="https://enepta.com" target="_blank">
            <img src="https://via.placeholder.com/600x400/f39c12/ffffff?text=Foto+4" class="d-block w-100" alt="Foto 4">
          </a>
          <div class="card-body">
            <h5 class="card-title">Foto 4</h5>
            <p class="card-text">Descrição breve sobre a Foto 4.</p>
          </div>
        </div>
      </div>
    </div>

    <!-- Controles do carrossel -->
    <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">
      <span class="carousel-control-prev-icon" aria-hidden="true"></span>
      <span class="visually-hidden">Previous</span>
    </button>
    <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">
      <span class="carousel-control-next-icon" aria-hidden="true"></span>
      <span class="visually-hidden">Next</span>
    </button>
  </div>
</div>

<!-- Bootstrap JS and Popper.js -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>

</body>
</html>