Untitled

Anonymous
HTML
10/02/2025 10:12 PM
3.4 KB
16
Indexable
Never
<!DOCTYPE html>
<html>
<head>
  <title>Green Gardens</title>
  <style>
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background-image: url('background.jpg'); /* your full-page background image */
      background-size: cover;
      background-position: center;
      position: relative;
      min-height: 100vh;
    }

    /* side color strips */
    body::before, body::after {
      content: "";
      position: fixed;
      top: 0;
      bottom: 0;
      width: 60px; /* adjust thickness of the strips */
      background-color: #295e11; /* green side color */
      z-index: 1;
    }
    body::before {
      left: 0;
    }
    body::after {
      right: 0;
    }

    /* content area */
    .main-container {
      max-width: 1000px;
      margin: 0 auto;
      position: relative;
      z-index: 2; /* above the side strips */
      padding: 0 20px;
      color: white; /* so text shows on background */
      text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    }

    header {
      background-color: rgba(41, 94, 17, 0.9); /* transparent green */
      color: white;
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    header h1 {
      margin: 0;
      font-size: 26px;
      font-family: 'Impact';
      letter-spacing: 4px;
    }

    nav a {
      color: white;
      text-decoration: none;
      margin: 0 10px;
      font-weight: bold;
    }
    nav a:hover {
      color: #ffdd57;
    }

    /* Banner panel above search bar */
    .banner {
      width: 100%;
      height: 250px;
      background-image: url('banner.jpg'); /* replace with your banner */
      background-size: cover;
      background-position: center;
      margin: 20px 0;
      border-radius: 8px;
    }

    /* Search bar */
    .search-bar {
      text-align: center;
      margin: 20px 0;
    }
    .search-bar input[type="text"] {
      padding: 10px;
      width: 250px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    .search-bar input[type="submit"] {
      padding: 10px 15px;
      background: #295e11;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    .search-bar input[type="submit"]:hover {
      background: #1e460c;
    }

    h2 {
      text-align: center;
      color: #ffdd57;
    }
    p {
      text-align: center;
      max-width: 700px;
      margin: 20px auto;
    }

    footer {
      background-color: rgba(207, 50, 35, 0.9);
      color: white;
      padding: 20px;
      margin-top: 40px;
      text-align: center;
      font-size: small;
    }
  </style>
</head>
<body>

  <div class="main-container">

    <header>
      <h1>GREEN GARDENS</h1>
      <nav>
        <a href="#">Home</a>
        <a href="#">About</a>
        <a href="#">Products</a>
        <a href="#">Contact</a>
      </nav>
    </header>

    <!-- Banner above search bar -->
    <div class="banner"></div>

    <!-- Search bar -->
    <div class="search-bar">
      <form>
        <input type="text" placeholder="Search...">
        <input type="submit" value="Search">
      </form>
    </div>

    <h2>Vegetable Seeds and Plants</h2>
    <p>
      Nothing compares to home grown! Shop and grow vegetable seeds and plants perfect for your garden. 
      Prize-winning tomatoes, peppers, beans and more.
    </p>

    <footer>
      &copy; 2025 Green Gardens | All Rights Reserved
    </footer>
  </div>

</body>
</html>
Editor is loading...
Leave a Comment