From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:02:38 +0800 Subject: [PATCH] TODO#139884 Banner 1 文案調整 --- PAMapp/components/Ui/UiCarousel.vue | 75 ++++++++++++++++++++++++++++++++----- 1 files changed, 65 insertions(+), 10 deletions(-) diff --git a/PAMapp/components/Ui/UiCarousel.vue b/PAMapp/components/Ui/UiCarousel.vue index 44425b3..c446a01 100644 --- a/PAMapp/components/Ui/UiCarousel.vue +++ b/PAMapp/components/Ui/UiCarousel.vue @@ -1,17 +1,26 @@ <template> <div> <el-carousel - height="200px" - :autoplay="true" indicator-position="outside" arrow="never" trigger="click" + class="pam-home-carousel" > - <el-carousel-item - v-for="(item, index) in 3" - :key="index" - > - <h3>{{ item }}</h3> + <el-carousel-item class="banner-img-style banner1-img"> + <div class="text--center mt-30 banner-info"> + <h1 class="banner-title mb-10">撠惇雿��憿批��ㄐ</h1> + <p class="banner-txt text--PRIMARY_WHITE">�����瘙銝敺����?</p> + <p class="banner-txt text--PRIMARY_WHITE">頛詨璇辣�翰�祟��憯����</p> + <p class="banner-txt text--PRIMARY_WHITE">蝪∪銝郊撽�����兢蝳犖���!</p> + </div> + </el-carousel-item> + + <el-carousel-item class="banner-img-style banner2-img"> + <div class="text--center mt-30 banner-info"> + <h1 class="banner-title mb-10">憭���撘�</h1> + <p class="banner-txt text--PRIMARY_WHITE">頛����憿批��</p> + <p class="banner-txt text--PRIMARY_WHITE">慦���“��蜓��蝜�</p> + </div> </el-carousel-item> </el-carousel> </div> @@ -27,7 +36,53 @@ </script> <style lang="scss" scoped> -.el-carousel__item { - background-color: #d3dce6; +.banner-img-style { + width: 100%; + height: 100%; + background-repeat: no-repeat; + background-size: cover; + background-position: bottom; } -</style> \ No newline at end of file +.banner1-img { + background-image: url('~/assets/images/index_banner_mob.svg'); +} + +.banner2-img { + background-image: url('~/assets/images/index_banner2_mob.svg'); +} + +.banner-info { + .banner-title { + @extend .title; + } + + .banner-txt { + @extend .smTxt_bold; + line-height: 21px; + } +} + +@media (min-width: 576px) { + .banner1-img { + background-image: url('~/assets/images/index_banner_web.svg'); + } + + .banner2-img { + background-image: url('~/assets/images/index_banner2_web.svg'); + } +} + +@include desktop { + .banner-info { + .banner-title { + font-size: 40px; + } + + .banner-txt { + font-size: 18px; + line-height: 24px; + } + } +} + +</style> -- Gitblit v1.8.0