<!--
  Copyright (c) 2020.
  author: song
  email: 15235360226@163.com
  -->

<template>
  <div>
    <div class="contact d-flex flex-nowrap">
      <contact-map class="flex-1" />
      <div class="contact-right">
        <div>
          <a-icon class="baseColor icon-size" type="user" />
          <p>
            高璨
            <span class="ml-6">19935658782</span>
          </p>
        </div>
        <div>
          <a-icon class="baseColor icon-size" type="phone" />
          <p>
            0351 5223175
            <span class="ml-6">0351 5223179</span>
          </p>
        </div>
        <div>
          <a-icon class="baseColor icon-size" type="mail" />
          <p>lgzc2020@163.com</p>
        </div>
        <div>
          <i class="iconfont icon-local baseColor"></i>
          <p>山西省太原市晋阳街202号英语周报大厦八层</p>
        </div>
        <div class="code-box">
          <a-icon class="baseColor icon-size" type="wechat" />
          <img
            alt
            src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2059927486,2456161292&fm=26&gp=0.jpg"
          />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import ContactMap from './ContactMap.vue';

export default {
  name: 'RichText',
  components: { ContactMap },
  data() {
    return {
      sort: [
        { id: 1, component: 'title' },
        { id: 2, component: 'content' },
        { id: 3, component: 'picture' },
      ],
      str: '联系我们组件',
      img: 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1641353646,126669045&fm=26&gp=0.jpg',
    };
  },
  methods: {},
};
</script>

<style lang="stylus" scoped>
.contact {
  height: 394px;
  position: relative;
  border: 1px solid rgba(112, 112, 112, 0.14901960784313725);
  background: #fff;
}

.contact-img {
  width: 790px;
  height: 100%;
}

.contact-right {
  height: 100%;
  width: 360px;
  padding: 0 24px;

  div {
    margin-top: 24px;
    height: 24px;
    line-height: 24px;
    position: relative;

    p {
      position: absolute;
      left: 40px;
      top: 0;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      line-height: 24px;
      color: rgba(0, 0, 0, 0.65);
      opacity: 1;
    }
  }
}

.code-box {
  margin-top: 44px !important;

  img {
    position: absolute;
    width: 120px;
    height: 120px;
    left: 40px;
  }
}
</style>
