728x90

1. reserve section

- height 400px 

 

2. pick your favorate section (배경 고정)

- text-group width 362px

 


 

1. reserve section

<!-- RESERVE -->
 <section class="reserve-coffee">
  <div class="inner">
    <img src="./images/reserve_logo.png" alt="" class="reserve-logo" />

    <div class="text-group">
      <img src="./images/reserve_text.png" alt="" class="description" />
      <div class="more">
        <a href="javascript:void(0)" class="btn btn--gold">자세히 보기</a>
      </div>
    </div>

    <img src="./images/reserve_image.png" alt="" class="product" />
  </div>
 </section>
/* RESEVE */
.reserve-coffee {
  background-image: url("../images/reserve_bg.jpg");
}

.reserve-coffee .inner {
  height: 400px;
}

.reserve-coffee .reserve-logo {
  position: absolute;
  top: 100px;
  left: 0;
}

.reserve-coffee .text-group {
  position: absolute;
  top: 100px;
  left: 200px;
}

.reserve-coffee .text-group .title {
  margin-bottom: 10px;
}

.reserve-coffee .text-group .description {
  margin-bottom: 10px;
}

.reserve-coffee .product {
  position: absolute;
  top: 0;
  right: 0;
}

 

 

2. pick your favorate section (배경 고정) 📌

<!-- PICK YOUR FAVORITE -->
 <section class="pick-your-favorite">
  <div class="inner">
    <div class="text-group">
      <img src="./images/favorite_text1.png" alt="" class="title">
      <img src="./images/favorite_text2.png" alt="" class="description">
      <div class="more">
        <a href="javascript:void(0)" class="btn btn--white">자세히 보기</a>
      </div>
    </div>
  </div>
 </section>
/* pick-your-favorite */
.pick-your-favorite {
  background-image: url("../images/favorite_bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

.pick-your-favorite .inner {
  padding: 110px 0;
}

.pick-your-favorite .text-group {
  width: 362px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: 100px;
}

.pick-your-favorite .text-group .title {
  margin-bottom: 40px;
}

.pick-your-favorite .text-group .description {
  margin-bottom: 40px;
}
728x90
+ Recent posts