본문 바로가기
보드게임 긱 추천 게임
Wizard Thumbnail
BoardGameGeek 사이트에서 인기순위 상위 100개 중 랜덤 3개를 보여줍니다.
BGG
귀펀치토끼는 부서지지 않는다.
주소(D)
북마크/메모장

내코드 남코드 비교

<template>
  <div class="bottom_min_bar" v-if="!isMax" v-bind:style="isFold ? 'bottom: 0;' : 'bottom: 43vh;'">
    <div class="bottom_min_button" v-if="isFold && !isMax" @click="toggle">수정이력 / 특이사항 열기 ▲</div>
    <div class="bottom_min_button" v-if="!isFold && !isMax" v-bind:style="'bottom: 44vh;'" @click="toggle">수정이력 / 특이사항 닫기 ▼</div>
  </div>
  <div class="bottom_min_bar" v-if="isMax" v-bind:style="isMax ? 'bottom: 92vh;' : ''">
    <div class="bottom_min_button" v-if="isMax" v-bind:style="'bottom: 93vh;'" @click="minimize">수정이력 / 특이사항 닫기 ▼</div>
  </div>
  <div v-if="!isFold" v-bind:class="isMax ? 'bottom_max_content' : 'bottom_min_content'">
    <div class="inquiry_input_container">
      <div class="inquiry_right_menu">
        <button class="black" @click="maximize" v-if="!isMax">크게보기</button>
        <button class="black" @click="maximize" v-if="isMax">작게보기</button>
      </div>
      <div class="inquiry_input_body">
        <div class="wrap_left_info">
          <div class="bottom_content_left_title"> 변경이력 </div>
          <inquiry-log-list-menu/>
        </div>
        <div class="wrap_right_info">
          <inquiry-log-list-menu/>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>

import {
  onMounted, computed, ref, Ref
} from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { routeHelper } from '@utils';

// 하단 유틸
const isFold = ref(true);
const toggle = () => {
  isFold.value = !isFold.value;
};

const isMax = ref(false);
const maximize = () => {
  isMax.value = !isMax.value;
  console.log(isMax.value);
};

const minimize = () => {
  isMax.value = !isMax.value;
  isFold.value = !isFold.value;
};
</script>

<style lang="scss" scoped>
.inquiry_input_container {
  padding: 0.5%;

  .inquiry_right_menu {
    float: right;

    > button {
      padding: 8px 13px;
      font-size: 13px;
      font-weight: 500;
      color: #fff;
      letter-spacing: -0.65px;
      cursor: pointer;
      border: none;
      border-radius: 5px;
    }

    .blue {
      background-color: #6876f2;
    }

    .black {
      background-color: #2f2f39;
    }

    .gray {
      background-color: #88878f;
    }
  }
}

.inquiry_input_body {
  display: flex;
  gap: 31px;
  margin-top: 3.5vh;

  .wrap_left_info {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex: 83;
    flex-direction: column;
    height: 86vh;
    overflow: auto;
    background-color: pink;
    border-radius: 10px;

    .bottom_content_left_title {
      box-sizing: border-box;
      padding: 15px 25px 12px;
      font-size: 18px;
      font-weight: bold;
      border-radius: 10px 10px 0 0;
    }

    .left_info_button {
      position: sticky;
      bottom: 0;
      left: 0;
      box-sizing: border-box;
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 80px;
      padding: 18px 26px 10px;
      background-color: #fff;
      border-radius: 0 0 10px 10px;

      > button {
        flex: 1;
        height: 52px;
        font-size: 18px;
        font-weight: bold;
        color: #fff;
        cursor: pointer;
        border: none;
        border-radius: 10px;
      }

      .escalation {
        background-color: #2f2f39;
      }

      .submit {
        background-color: #6876f2;
      }
    }
  }

  .wrap_left_info::-webkit-scrollbar {
    width: 3px;
    background-color: #e8e8e8;
    border-radius: 5px;
    scroll-margin-right: 10px;
  }

  .wrap_left_info::-webkit-scrollbar-thumb {
    height: 100px;
    background-color: #2f2f39;
    background-clip: padding-box;
    border-radius: 5px;
  }

  .wrap_left_info::-webkit-scrollbar-track {
    height: 606px;
    background-color: #e8e8e8;
    border-radius: 5px;
  }

  .wrap_right_info {
    flex: 76;
    height: 86vh;
    background-color: wheat;
    border-radius: 10px;

    .wrap_right_info_nav {
      box-sizing: border-box;
      display: flex;
      align-items: center;
      border-bottom: solid 1px #e5e5e5;

      > p {
        box-sizing: border-box;
        flex: 1;
        padding: 17px 0 14px;
        font-size: 15px;
        color: #b8b8b8;
        text-align: center;
        letter-spacing: -0.75px;
        cursor: pointer;
      }

      .active {
        font-size: 15px;
        font-weight: bold;
        color: #2f2f39;
        border-bottom: solid 2px #2f2f39;
      }
    }
  }
}

.bottom_max_content {
  position: fixed;
  bottom: 0;
  width: 87vw;
  height: 92vh;
  background: white;
}

.bottom_min_content {
  position: fixed;
  bottom: 0;
  width: 87vw;
  height: 42.7vh;
  background: white;
}

.bottom_min_bar {
  position: fixed;
  bottom: 0;
  width: 87vw;
  height: 1.5vh;
  background: black;
  border-radius: 10px 10px 0 0;

  .bottom_min_button {
    position: fixed;
    bottom: 1vh;
    left: 46vw;
    width: 15vw;
    height: 2vh;
    padding-top: 0.8vh;
    color: white;
    text-align: center;
    cursor: pointer;
    background: black;
    border-radius: 10px 10px 0 0;
  }
}
</style>
완료
내 컴퓨터