Layout 3212115

by davidxmartins

HTML

<div class="hero-container">

  <div class="hero-column-left">
    <h1>Somos<br>
      Especialistas<br>
      em LSF<br>
      Construção<br>
      em Aço Leve</h1>
  </div>

  <div class="hero-column-right">

    <div class="hero-icons-container">

      <div class="hero-icon">
        <!-- Replace 'icon1.svg' with the path to your first SVG icon -->
        <img src="icon1.svg" alt="Icon 1">
        <p>Word1</p>
      </div>

      <div class="hero-icon">
        <!-- Replace 'icon2.svg' with the path to your second SVG icon -->
        <img src="icon2.svg" alt="Icon 2">
        <p>Word2</p>
      </div>

      <div class="hero-icon">
        <!-- Replace 'icon3.svg' with the path to your third SVG icon -->
        <img src="icon3.svg" alt="Icon 3">
        <p>Word3</p>
      </div>

    </div>
  </div>
</div>

CSS

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: green;
  color: white;
}

.hero-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-column-left {
  width: 40%;
  box-sizing: border-box;
  text-align: left;
  padding-left: 50px;
}

.hero-column-right {
  width: 60%;
  box-sizing: border-box;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1;
}

.hero-icons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-icon {
  width: 100px; /* Adjust the width of the icons as needed */
  height: 100px; /* Adjust the height of the icons as needed */
  margin: 10px; /* Adjust the spacing between icons as needed */
}

@media screen and (max-width: 1200px) {
  .hero-container {
    flex-direction: column;
  }

  .hero-icons-container {
    margin-top: 20px; /* Adjust the margin between h1 and icons as needed */
    flex-direction: column; /* Change to column layout for small screens */
    align-items: center; /* Center icons below 1200px */
  }
}

@media screen and (max-width: 900px) {
  .hero-container {
    flex-direction: column;
  }

  .hero-icons-container {
    margin-top: 20px; /* Adjust the margin between h1 and icons as needed */
    flex-direction: row;
    justify-content: flex-start; /* Align icons to the left below 900px */
  }
  .hero-column-left,
  .hero-column-right {
    width: 100%;
    text-align: left; /* Align text to the left */
  }
  .hero-column-right {
    width: 100%;
    text-align: left; /* Align text to the left */
    padding-left: 50px;
  }
}