<template>
  <div class="app-container">
    <div class="top">
      <label>“流利说-英语”的搜索结果</label>
    </div>
    <div class="content">
      <div class="item">
        <img src="../../assets/images/evue-logo.png" alt="icon" />
        <div class="text">
          <p class="title">EVUE</p>
          <p class="subtitle">
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
          </p>
          <p class="subtitle">八零八零八附带上方</p>
        </div>
        <button class="install">安装</button>
      </div>
      <div class="item">
        <img src="../../assets/images/evue-logo.png" alt="icon" />
        <div class="text">
          <p class="title">EVUE</p>
          <p class="subtitle">
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
          </p>
          <p class="subtitle">八零八零八附带上方</p>
        </div>
        <button class="install">安装</button>
      </div>
      <div class="item">
        <img src="../../assets/images/evue-logo.png" alt="icon" />
        <div class="text">
          <p class="title">EVUE</p>
          <p class="subtitle">
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
          </p>
          <p class="subtitle">八零八零八附带上方</p>
        </div>
        <button class="install">安装</button>
      </div>
      <div class="item">
        <img src="../../assets/images/evue-logo.png" alt="icon" />
        <div class="text">
          <p class="title">EVUE</p>
          <p class="subtitle">
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
          </p>
          <p class="subtitle">八零八零八附带上方</p>
        </div>
        <button class="install">安装</button>
      </div>
      <div class="item">
        <img src="../../assets/images/evue-logo.png" alt="icon" />
        <div class="text">
          <p class="title">EVUE</p>
          <p class="subtitle">
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
          </p>
          <p class="subtitle">八零八零八附带上方</p>
        </div>
        <button class="install">安装</button>
      </div>
      <div class="item">
        <img src="../../assets/images/evue-logo.png" alt="icon" />
        <div class="text">
          <p class="title">EVUE</p>
          <p class="subtitle">
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
          </p>
          <p class="subtitle">八零八零八附带上方</p>
        </div>
        <button class="install">安装</button>
      </div>
    </div>
  </div>
</template>
<script>
import StarRating from "vue-star-rating";
export default {
  name: "AppSearch",
  components: {
    StarRating,
  },
  data() {
    return {};
  },
  computed: {},
  methods: {},
  beforeMount() {},
};
</script>
<style lang="scss" scoped>
div.app-container {
  margin: 20px 0px;
  & > div.top {
    display: flex;
    justify-content: space-between;
    margin: 20px 0px;
    & > label {
      margin: 0px;
      font-size: 20px;
    }
    & > p {
      cursor: pointer;
      margin: 0px;
      display: inline-flex;
      align-items: center;
      font-size: 14px;
      & > img {
        width: 20px;
        height: 20px;
      }
    }
  }
  & > div.content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-shrink: 0;
    & > div.item {
      flex: 1;
      cursor: pointer;
      display: inline-flex;
      flex-direction: row;
      box-sizing: border-box;
      border: none;
      margin: 0px;
      padding: 10px 20px;
      & > img {
        width: 80px;
        height: 80px;
      }
      & > button {
        width: 100px;
      }
      & > button.install {
        width: auto;
        min-width: 72px;
        max-width: 100px;
        height: 28px;
        margin: 10px auto;
        padding: 0 12px;
        font-size: 14px;
        font-weight: bolder;
        border-radius: 14px;
        color: #007dff;
        background: rgba(0, 0, 0, 0.05);
        border: 0;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 1;
        outline: none;
      }
      & > div.text {
        flex: 1;
        padding: 15px 0px;
        margin-left: 20px;
        border-bottom: 1px solid #f2f2f2;
        & > p {
          margin: 1px 0px;
        }
        & > p.title {
          line-height: 18px;
        }
        & > p.subtitle {
          color: grey;
          font-size: 12px;
          line-height: 18px;
        }
      }
    }
  }
}
</style>