Skip to content

Commit

Permalink
chore: add vueforge banner (#3614)
Browse files Browse the repository at this point in the history
Co-authored-by: Yauheni Prakopchyk <[email protected]>
  • Loading branch information
asvae and asvae authored Jul 14, 2023
1 parent e9fc3b5 commit 591c597
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
40 changes: 38 additions & 2 deletions packages/docs/components/landing/banners/VuejsForgeConference.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,62 @@
<template>
<div class="event-banner">
<div v-if="!isHiddenLocal" class="event-banner">
<a
href="https://vuejsforge.com/?utm_source=vuesticui&utm_medium=banner&utm_campaign=community"
href="https://vuejsforge.com/?utm_source=Epicmax&utm_medium=banner&utm_campaign=community"
target="_blank"
title="Vue.js forge conference"
>
<va-aspect-ratio
:ratio="1600/72"
:aria-hidden="true"
:max-width="1350"
>
<img
class="event-banner__img"
src="/landing/forge-event-banner.png"
alt=""
>
<div @click.prevent="hide" class="event-banner__close" />
</va-aspect-ratio>
</a>
</div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const officialPartnerCookie = useCookie('banner-closed')
const bannerName = 'vueforge-082023'
const isHiddenLocal = ref(officialPartnerCookie.value?.includes(bannerName))
const hide = () => {
isHiddenLocal.value = true
if (officialPartnerCookie.value) {
officialPartnerCookie.value += `,${bannerName}`
} else {
officialPartnerCookie.value = bannerName
}
}
</script>

<style lang="scss" scoped>
.event-banner {
position: relative;
display: flex;
justify-content: center;
background-color: #200543;
&__close {
position: absolute;
top: 30%;
right: 1%;
width: 4%;
height: 40%;
&:hover {
background-color: rgba(201, 200, 200, 0.2);
}
}
&__img {
min-width: 100%;
min-height: 100%;
Expand Down
1 change: 1 addition & 0 deletions packages/docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<div v-show="!isMobileMenuOpen">
<LandingPreview />
<LandingPartners />
<LandingBannersVuejsForgeConference />
<LandingFeatures />
<LandingCustomize />
<LandingSeamlessIntegration />
Expand Down
Binary file modified packages/docs/public/landing/forge-event-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 591c597

Please sign in to comment.