<script setup>
const { t, locale, setLocale } = useI18n()
const dataList = ref([
  {
    bg: '',
    abg: '',
    id: 'teacher0',
    wowDelay: '0.3s',
    img: '/picture/01.jpg',
    name: 'Aria Lan',
    tType: 'English teacher',
    subSchool: "Bachelor's Degree in English",
    introduce:
      'Five years of extensive teaching experience. Former outstanding instructor and former excellent teacher at an international kindergarten.  Holds a Teaching Certificate issued by the Ministry of Education, TEM-4, and Mandarin Level 2-A Certificate. Proficient in standard pronunciation and intonation, skilled in Chinese picture book reading, phonics, and oral Chinese teaching'
  },
  {
    bg: 'bg-2',
    abg: 'style-2',
    id: 'teacher1',
    wowDelay: '0.5s',
    img: '/picture/02.jpg',
    name: 'Wendy Chen',
    tType: 'English teacher',
    subSchool: '',
    introduce:
      'Graduated from a normal college with a Bachelor’s degree and holds CET6 (National College English Test Band 4 and 6) certificate, TEM4 (Test for English Major) certificate, BEC (BUSINESS ENGLISH CERTIFICATE) Intermediate certificate, Mandarin Level 1 B certificate.With strong affinity, she is good at mobilizing the classroom atmosphere with rich teaching methods.'
  },
  {
    bg: 'bg-3',
    abg: 'style-3',
    id: 'teacher2',
    wowDelay: '0.7s',
    img: '/picture/03.jpg',
    name: 'Aspen Chou',
    tType: 'English teacher',
    subSchool: 'Graduated from a normal university.',
    introduce:
      "I have the Ministry of Education's teaching certification and a Level 2A Mandarin proficiency certificate. I have three years of one-on-one teaching experience. I've participated in public - welfare volunteer teaching activities multiple times. Proficient in oral Chinese teaching with standard pronunciation and intonation, I create a child - loved atmosphere."
  },
  {
    bg: 'bg-3',
    abg: 'style-3',
    id: 'teacher3',
    wowDelay: '0.7s',
    img: '/picture/04.jpg',
    name: 'Olivia Huang',
    tType: 'English teacher',
    subSchool: '',
    introduce:
      "Graduated from the University of Valencia, Spain with a doctorate in linguistics, with TEM-8 Certificate in English and Spanish, Mandarin Level 2A Certificate and the“National Outstanding Teacher”. Has American English pronunciation, places emphasis on practice, and cultivates students' practical application abilities."
  }
])
</script>
<style lang="css" scoped>
.multi-line {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.h-color {
  color: white;
}
.clamp-1 {
  -webkit-line-clamp: 1;
}
.clamp-2 {
  -webkit-line-clamp: 2;
}
.clamp-3 {
  -webkit-line-clamp: 3;
}

.left-social-profile {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 99;
  width: 40px;
  height: 40px;
  border: 1px solid white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.left-social-profile div {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.left-social-profile div img {
  object-fit: cover;
  cursor: pointer;
}

.introduce {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  -ms-overflow-style: none; /* IE 和 Edge */
  scrollbar-width: none;
  transition: all 0.1s ease-in-out;
  display: none;
  cursor: pointer;
}

.introduce::-webkit-scrollbar {
  width: 0px; /* Chrome, Safari 和 Opera */
}

.left-social-profile:hover + .introduce {
  display: block;
}
.introduce:hover {
  display: block;
}
.bgCover {
  width: 100%;
  height: auto;
  object-fit: contain;
}
</style>

<template>
  <section class="team-section fix section-bg section-padding">
    <div class="top-shape">
      <img class="bgCover" src="/picture/section-top-shape.svg" alt="shape-img" />
    </div>
    <div class="love-shape float-bob-x"><img src="/picture/love.png" alt="shape-img" /></div>
    <div class="frame-shape"><img src="/picture/frame.png" alt="shape-img" /></div>
    <div class="container">
      <div class="section-title-area">
        <div class="section-title mt-60">
          <span class="wow fadeInUp">Our Experts</span>
          <h2 class="wow fadeInUp" data-wow-delay=".3s">Our Expert Instructors</h2>
        </div>
      </div>
      <div class="row">
        <template v-for="(item, index) in dataList" :key="item?.id">
          <div class="col-xl-3 col-lg-6 col-md-6 wow fadeInUp" :data-wow-delay="item?.wowDelay">
            <div class="swiper-slide">
              <div class="team-items">
                <div style="overflow: hidden" class="team-image">
                  <div class="shape-img">
                    <img src="/picture/team-shape.png" alt="img" />
                  </div>
                  <img :src="item?.img" alt="team-img" />
                  <div class="social-profile">
                    <span class="plus-btn"><i class="fas fa-share-alt"></i></span>
                    <ul>
                      <li>
                        <a href="#"><i class="fab fa-facebook-f"></i></a>
                      </li>
                      <li>
                        <a href="#"><i class="fa-brands fa-instagram"></i></a>
                      </li>
                      <li>
                        <a href="#"><i class="fab fa-linkedin-in"></i></a>
                      </li>
                    </ul>
                  </div>
                  <div class="left-social-profile">
                    <div class="w-24 h-24">
                      <img class="w-100 h-100" src="/image/omit.svg" alt="" />
                    </div>
                  </div>
                  <div class="introduce">
                    <p class="fs-5 text-white text-center pb-2">{{ item?.name }}</p>
                    <p class="text-white">{{ item?.subSchool }}</p>
                    {{ item?.introduce }}
                  </div>
                </div>
                <div class="team-content">
                  <h3>
                    <a href="team-details.html">{{ item?.name }}</a>
                  </h3>
                  <p>{{ item?.tType }}</p>
                </div>
              </div>
            </div>
          </div>
        </template>
      </div>
      <!-- <div class="swiper team-slider">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <div class="team-items">
              <div class="team-image">
                <div class="shape-img"><img src="/picture/team-shape.png" alt="img" /></div>
                <img src="/picture/01.jpg" alt="team-img" />
                <div class="social-profile">
                  <span class="plus-btn"><i class="fas fa-share-alt"></i></span>
                  <ul>
                    <li>
                      <a href="#"><i class="fab fa-facebook-f"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fa-brands fa-instagram"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fab fa-linkedin-in"></i></a>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="team-content">
                <h3><a href="team-details.html">Brooklyn Simmons</a></h3>
                <p>Instructors</p>
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="team-items">
              <div class="team-image">
                <div class="shape-img"><img src="/picture/team-shape.png" alt="img" /></div>
                <img src="/picture/02.jpg" alt="team-img" />
                <div class="social-profile">
                  <span class="plus-btn"><i class="fas fa-share-alt"></i></span>
                  <ul>
                    <li>
                      <a href="#"><i class="fab fa-facebook-f"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fa-brands fa-instagram"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fab fa-linkedin-in"></i></a>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="team-content">
                <h3><a href="team-details.html">Leslie Alexander</a></h3>
                <p>Instructors</p>
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="team-items">
              <div class="team-image">
                <div class="shape-img"><img src="/picture/team-shape.png" alt="img" /></div>
                <img src="/picture/03.jpg" alt="team-img" />
                <div class="social-profile">
                  <span class="plus-btn"><i class="fas fa-share-alt"></i></span>
                  <ul>
                    <li>
                      <a href="#"><i class="fab fa-facebook-f"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fa-brands fa-instagram"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fab fa-linkedin-in"></i></a>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="team-content">
                <h3><a href="team-details.html">Ronald Richards</a></h3>
                <p>Instructors</p>
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="team-items">
              <div class="team-image">
                <div class="shape-img"><img src="/picture/team-shape.png" alt="img" /></div>
                <img src="/picture/04.jpg" alt="team-img" />
                <div class="social-profile">
                  <span class="plus-btn"><i class="fas fa-share-alt"></i></span>
                  <ul>
                    <li>
                      <a href="#"><i class="fab fa-facebook-f"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fa-brands fa-instagram"></i></a>
                    </li>
                    <li>
                      <a href="#"><i class="fab fa-linkedin-in"></i></a>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="team-content">
                <h3><a href="team-details.html">Kristin Watson</a></h3>
                <p>Instructors</p>
              </div>
            </div>
          </div>
        </div>
      </div> -->
    </div>
  </section>
</template>
