<template>
  <div :class="{bottomBanner: !mobile, bottomBannerMobile: mobile}">
    <div class="title">兼职招聘</div>
    <div class="desc">兼职招聘正式上线！40W+程序员、7000+企业方，急速触达！</div>
    <div class="btnList">
      <div class="left" @click="jumpToCatHandler">
        <p>我要找兼职</p>
      </div>
      <div class="right" @click="needFindJobHandler">
        <p>我要招聘</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: [],
  components: {},
  data() {
    return {
      mobile: false,
    };
  },
  computed: {},
  mounted() {},
  methods: {
    /** banner挑战 **/
    jumpToCatHandler() {
      location.href = this.$store.state.domainConfig.jobUrl + "/?from=top_nav";
    },
    needFindJobHandler() {
      this.$message.warning("请前往程序员客栈APP，发布兼职招聘");
    },
  },
};
</script>

<style lang="scss">
@import "~@/assets/css/scssCommon.scss";

.bottomBanner {
  width: 1000px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: url("~@/assets/img/job/banner_bottom.png") no-repeat;
  background-size: contain;
  margin: 10px auto;

  .title {
    height: 72px;
    font-size: 41px;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    line-height: 72px;
    letter-spacing: 2px;
  }
  .desc {
    height: 26px;
    font-size: 19px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    line-height: 26px;
  }
  .btnList {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    .left,
    .right {
      width: 165px;
      height: 43px;
      background: rgba(255, 255, 255, 1);
      border-radius: 2px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      p {
        height: 22px;
        font-size: 16px;
        font-weight: 500;
        color: rgba(61, 108, 255, 1);
        line-height: 22px;
      }
    }
    .right {
      margin-left: 20px;
      border: 1px solid rgba(255, 255, 255, 1);
      background: transparent;
      p {
        color: rgba(255, 255, 255, 1);
      }
    }
  }
}
</style>
