Contact.vue 7.61 KB
<template>
  <div class="container contact-bg"  :class="{ 'rtl': $i18n.locale === 'ar' }">
    <AppHeader />
    <img src="@/assets/icon1.png" alt="" class="contact-icon1" />
    <img src="@/assets/icon2.png" alt="" class="contact-icon2" />
    <img src="@/assets/icon2.png" alt="" class="contact-icon3" />
    <div class="contact-main">
      <div class="contact-content-wrapper">
        <div class="contact-content">
          <div class="contact-left">
            <div class="phone-mockup">
              <img src="@/assets/about/app3.png" alt="phone" />
            </div>
          </div>
          <div class="contact-right">
            <!-- <div class="contact-title" v-html="$t('contact.title')"></div> -->
            <div class="contact-title">
              {{$t('contact.title1')}} 
              <span class="highlight">{{$t('contact.title2')}}</span> 
              <br />{{$t('contact.title3')}}
            </div>
            <div class="contact-desc">{{$t('contact.desc')}}</div>
            <img
              class="contact-arrow"
              src="@/assets/contact/down.png"
              alt="arrow"
            />
            <div class="contact-btns">
              <img
                src="@/assets/common/google.png"
                class="store-btn"
                :alt="$t('contact.google')"
              />
              <img
                src="@/assets/common/appstore.png"
                class="store-btn"
                :alt="$t('contact.appstore')"
              />
            </div>
            <img
              class="star-deco"
              src="@/assets/contact/icon3.png"
              alt="star"
            />
          </div>
        </div>
      </div>
    </div>
    <div class="footer-wrapper">
      <img
        class="footer-bg-curve"
        src="@/assets/contact/bottom_bg.png"
        alt="footer-bg"
      />
      <div class="footer-content">
        <div class="footer-main">
          <div class="footer-brand">
            <div class="footer-title">{{$t('contact.yahabbi')}}</div>
            <div class="footer-subtitle">{{$t('contact.focus')}}</div>
          </div>
          <div class="footer-links-group">
            <div class="footer-col">
              <div class="footer-col-title">{{$t('contact.contactus')}}</div>
              <div class="footer-col-item">{{$t('contact.email')}}</div>
              <div class="footer-col-item">{{$t('contact.phone')}}</div>
            </div>
            <div class="footer-col">
              <div class="footer-col-title">{{$t('contact.topup')}}</div>
              <div class="footer-col-item">{{$t('contact.recharge')}}</div>
            </div>
            <div class="footer-col">
              <div class="footer-col-title">{{$t('contact.download')}}</div>
              <div class="footer-col-item">{{$t('contact.android')}}</div>
              <div class="footer-col-item">{{$t('contact.apple')}}</div>
            </div>
          </div>
        </div>
        <div class="footer-bottom">
          <div class="copyright">{{$t('contact.copyright')}}</div>
          <div class="legal-links">
            <span>{{$t('contact.aboutus')}}</span>
            <span>{{$t('contact.terms')}}</span>
            <span>{{$t('contact.privacy')}}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import AppHeader from "@/components/AppHeader.vue";
import { useI18n } from 'vue-i18n';
const { t, locale } = useI18n();
</script>

<style scoped lang="scss">
.contact-bg {
  background-color: #000000;
  position: relative;
  overflow-x: hidden;
}
.contact-icon1 {
  position: absolute;
  left: -698px;
  top: -300px;
  width: 1396px;
  object-fit: cover;
  z-index: 0;
}

.contact-icon2 {
  position: absolute;
  right: -422px;
  bottom: -308px;
  width: 1396px;
  object-fit: cover;
  z-index: 0;
}

.contact-icon3 {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 648px;
  height: 458px;
  object-fit: cover;
  z-index: 1;
}
.contact-main {
  width: 100%;
  padding: 34px 102px 39px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}
.contact-content-wrapper {
  background-image: url("@/assets/contact/content_bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.contact-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.contact-left {
  position: absolute;
  bottom: -107px;
  left: 160px;
  //   flex: 1;
  //   transform: translateY(40px);
}
.rtl .contact-left {
  left: auto;
  right: 160px;
}
.phone-mockup img {
  width: 415px;
  height: auto;
  object-fit: contain;
}
.contact-right {
  flex: 1;
  padding: 121px 0 60px 800px;
  position: relative;
}
.rtl .contact-right {
  padding: 121px 800px 60px 0;
}
.contact-title {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}
.highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #c844ff 0%, #982fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 5px;
  &::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 34px;
    background: url(@/assets/leadership/name_desc.png);
    background-size: cover;
    background-repeat: no-repeat;
  }
}
.highlight-underline {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 20px;
  object-fit: fill;
}
.contact-desc {
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 60px;
}
.contact-arrow {
  width: 36px;
  height: auto;
  margin-bottom: 80px;
  animation: arrow-down-bounce 1.5s infinite;
}

@keyframes arrow-down-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(18px);
  }
  60% {
    transform: translateY(8px);
  }
}

.contact-btns {
  display: flex;
  gap: 24px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}
.store-btn:hover {
  transform: translateY(-3px);
}
.main-buttons {
  position: absolute;
  right: 90px;
  bottom: 120px;
  display: flex;
  gap: 74px;
}
.store-btn {
  height: 98px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.store-btn img {
  height: 48px;
}
.store-btn img {
  height: 28px;
}
.star-deco {
  position: absolute;
  top: 210px;
  right: 120px;
  width: 80px;
  height: 80px;
}
.rtl .star-deco {
  right: auto;
  left: 120px;
}

.footer-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}
.footer-bg-curve {
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.footer-content {
  padding-top: 200px;
  padding-bottom: 24px;
  color: #fff;
}
.footer-main {
  width: 100%;
  padding: 0 102px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer-brand {
  flex-shrink: 0;
}
.footer-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-subtitle {
  font-size: 18px;
  opacity: 0.8;
}
.footer-links-group {
  display: flex;
  gap: 80px;
  padding-top: 10px;
}
.footer-col-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col-item {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.8;
}
.footer-bottom {
  width: 100%;
  padding: 20px 102px 0 102px;
  box-sizing: border-box;
  border-top: 1px solid #fff;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  opacity: 0.7;
}
.legal-links {
  display: flex;
  gap: 40px;
}

</style>