Template De Blog

template de blog

TEMPLATE

Código

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Blog Enepta</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">
  <!-- Bootstrap Icons -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">

  <style>
    /* Navbar transparente no topo */
    .navbar {
      transition: background-color 0.4s ease;
    }
    
    .navbar-light .navbar-nav .nav-link {
      color: #fff;
      transition: color 0.3s ease;
    }

    .navbar.scrolled {
      background-color: #343a40 !important;
    }

    .navbar.scrolled .nav-link {
      color: #ffffff !important;
    }

    body {
      padding-top: 75px;
    }

    .highlight {
      background-color: #f8f9fa;
      padding: 60px 0;
    }

    .footer {
      background-color: #343a40;
      color: #ffffff;
      padding: 40px 0;
    }

    .footer a {
      color: #ffffff;
    }
  </style>
</head>
<body>

<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top">
  <div class="container-fluid">
    <a class="navbar-brand" href="https://enepta.com">Enepta Blog</a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav ms-auto">
        <li class="nav-item">
          <a class="nav-link" href="https://enepta.com"><i class="bi bi-house-door"></i> Início</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="https://enepta.com"><i class="bi bi-person"></i> Login</a>
        </li>
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
            Categorias
          </a>
          <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
            <li><a class="dropdown-item" href="https://enepta.com">Tecnologia</a></li>
            <li><a class="dropdown-item" href="https://enepta.com">Negócios</a></li>
            <li><a class="dropdown-item" href="https://enepta.com">Design</a></li>
          </ul>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="https://enepta.com"><i class="bi bi-envelope"></i> Contato</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="https://enepta.com">Sobre</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="https://enepta.com">Portfólio</a>
        </li>
      </ul>
    </div>
  </div>
</nav>

<!-- Destaques -->
<div class="highlight text-center">
  <div class="container">
    <h1 class="mb-4">Destaques do Blog</h1>
    <div class="row">
      <div class="col-md-4">
        <a href="https://enepta.com" class="text-dark">
          <div class="card">
            <img src="https://via.placeholder.com/400x300" class="card-img-top" alt="Post 1">
            <div class="card-body">
              <h5 class="card-title">Post 1: Tecnologia</h5>
              <p class="card-text">Descubra as últimas novidades tecnológicas e inovações do setor.</p>
            </div>
          </div>
        </a>
      </div>
      <div class="col-md-4">
        <a href="https://enepta.com" class="text-dark">
          <div class="card">
            <img src="https://via.placeholder.com/400x300" class="card-img-top" alt="Post 2">
            <div class="card-body">
              <h5 class="card-title">Post 2: Design</h5>
              <p class="card-text">Como o design está transformando o mundo digital e além.</p>
            </div>
          </div>
        </a>
      </div>
      <div class="col-md-4">
        <a href="https://enepta.com" class="text-dark">
          <div class="card">
            <img src="https://via.placeholder.com/400x300" class="card-img-top" alt="Post 3">
            <div class="card-body">
              <h5 class="card-title">Post 3: Negócios</h5>
              <p class="card-text">O impacto das novas tendências de negócios no mercado global.</p>
            </div>
          </div>
        </a>
      </div>
    </div>
  </div>
</div>

<!-- Blog Posts -->
<div class="container my-5">
  <h2 class="mb-4">Últimos Artigos</h2>
  <div class="row">
    <div class="col-md-6 mb-4">
      <div class="card">
        <a href="https://enepta.com" class="text-dark">
          <img src="https://via.placeholder.com/600x400" class="card-img-top" alt="Post 4">
          <div class="card-body">
            <h5 class="card-title">Post 4: Tecnologia no Cotidiano</h5>
            <p class="card-text">Como a tecnologia está mudando nossas vidas diariamente.</p>
          </div>
        </a>
      </div>
    </div>
    <div class="col-md-6 mb-4">
      <div class="card">
        <a href="https://enepta.com" class="text-dark">
          <img src="https://via.placeholder.com/600x400" class="card-img-top" alt="Post 5">
          <div class="card-body">
            <h5 class="card-title">Post 5: Inovação em Design</h5>
            <p class="card-text">As últimas tendências de design gráfico que você precisa conhecer.</p>
          </div>
        </a>
      </div>
    </div>
  </div>
</div>

<!-- Footer -->
<footer class="footer">
  <div class="container text-center">
    <p>&copy; 2024 Enepta Blog. Todos os direitos reservados.</p>
    <p>
      <a href="https://enepta.com">Política de Privacidade</a> | 
      <a href="https://enepta.com">Termos de Uso</a> | 
      <a href="https://enepta.com">Contato</a>
    </p>
  </div>
</footer>

<!-- 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>

<script>
  // Script para mudar a cor do navbar ao rolar a página
  window.addEventListener('scroll', function() {
    const navbar = document.querySelector('.navbar');
    if (window.scrollY > 50) {
      navbar.classList.add('scrolled');
    } else {
      navbar.classList.remove('scrolled');
    }
  });
</script>

</body>
</html>