<template>
  <HeaderNav headerText="搜索" headerRight="取消"></HeaderNav>
  <div class="search-icon">
    <div class="search-input">
      <input
        type="text"
        class="input pf400 fs16 fc4B5563"
        placeholder="搜索您关心的币种" />
      <img src="../../assets/icon/index/search-input.svg" alt="" />
    </div>
    <div class="icon-list">
      <div class="icon-item" v-for="(item, index) in 5" :key="index">
        <img src="../../assets/img/index/Frame 7.svg" class="icon-img" alt="" />
        <div class="icon-name">
          <div class="upper-name pc600 fs16 fc1F2937">Ethereum</div>
          <div class="letter-name pc400 fs14 fc4B5563">ETH</div>
        </div>
        <div class="icon-love">
          <img src="../../assets/icon/index/Star.svg" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
  import HeaderNav from "./components/HeaderNav.vue";
</script>
<style lang="less" scoped>
  .search-icon {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;

    .search-input {
      position: relative;
      margin-top: 72px;
      width: 343px;
      height: 48px;

      .input {
        padding-left: 40px;
        width: 100%;
        height: 100%;
        border: 1px solid #cbd5e1;
        border-radius: 64px;
        box-sizing: border-box;
        outline: none;
      }

      img {
        position: absolute;
        top: 15px;
        left: 14px;
        width: 17px;
        height: 17px;
      }
    }

    .icon-list {
      margin-top: 24px;
      width: 343px;

      .icon-item {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 78px;
        border-bottom: 1px solid #e2e8f0;
        box-sizing: border-box;

        .icon-img {
          width: 40px;
          height: 40px;
        }

        .icon-name {
          margin-left: 12px;
          width: 255px;
          height: 46px;

          .upper-name {
            height: 22px;
            line-height: 22px;
          }

          .letter-name {
            height: 20px;
            line-height: 20px;
          }
        }

        .icon-love {
          margin-left: 13.5px;
          width: 21px;
          height: 20px;

          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
</style>
