Skip to content

Commit

Permalink
fix home ads style
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Nov 29, 2023
1 parent 369523d commit b55e44c
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions docs/.vuepress/components/HomeAds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,27 @@ const isApple = computed(() => {
</script>

<template>
<div class="hero-info-wrapper wwads-container">
<div
class="wwads wwads-cn wwads-horizontal"
data-id="213"
style="width: 100% !important"
v-if="!isApple"
></div>
<a v-else class="vidhub" :href="vidHub.url" target="_blank">
<div>
<img src="/img/ss/vidhub-logo.png" alt="" />
<div class="ads-container">
<div class="wwads-container">
<div
class="wwads wwads-cn wwads-horizontal"
data-id="213"
style="width: 100% !important"
v-if="!isApple"
></div>
<a v-else class="vidhub" :href="vidHub.url" target="_blank">
<div>
<div class="title">
<span>{{ vidHub.title }}</span>
<span class="tag">{{ vidHub.tag }}</span>
<img src="/img/ss/vidhub-logo.png" alt="" />
<div>
<div class="title">
<span>{{ vidHub.title }}</span>
<span class="tag">{{ vidHub.tag }}</span>
</div>
<div class="hero" v-for="hero in vidHub.hero">{{ hero }}</div>
</div>
<div class="hero" v-for="hero in vidHub.hero">{{ hero }}</div>
</div>
</div>
</a>
</a>
</div>
</div>
</template>

Expand Down Expand Up @@ -155,6 +157,11 @@ const isApple = computed(() => {
}
}
.ads-container {
display: flex;
justify-content: center;
}
.wwads-container {
padding-top: 10px !important;
padding-bottom: 0 !important;
Expand All @@ -164,5 +171,6 @@ const isApple = computed(() => {
max-height: unset;
margin: unset;
}
max-width: var(--home-page-width);
}
</style>

0 comments on commit b55e44c

Please sign in to comment.