Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 109 additions & 95 deletions docs/.vitepress/components/VueSchool/BannerTop.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<a
id="vs"
href="https://vueschool.io/free-weekend?friend=vuerouter"
href="https://vueschool.io/sales/price-increase-22?friend=vuerouter"
target="_blank"
rel="noreferrer"
>
Expand All @@ -11,15 +11,17 @@
</div>
<div class="vs-core">
<div class="vs-slogan">
<div class="vs-slogan-subtitle">
VUE 3 MASTERCLASS - FREE WEEKEND
</div>
<div class="vs-slogan-title">
Register at <strong>vueschool.io/free-weekend</strong>
Get up to <strong>40% off</strong> your Vue School Subscription
</div>
<div class="vs-slogan-subtitle">
Time Limited Offer
</div>
</div>
<div class="vs-button">
Free Access
<div class="vs-button-inside">
GET OFFER
</div>
</div>
</div>
<div id="vs-close" class="vs-close" @click.stop.prevent="$emit('close')">
Expand All @@ -29,15 +31,15 @@
</template>

<style>
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

#vs {
align-items: center;
background-color: #000c19;
box-sizing: border-box;
color: #fff;
display: none;
font-family: 'Inter', Roboto, Oxygen, Fira Sans, Helvetica Neue, sans-serif;
display: flex;
font-family: 'Roboto', Oxygen, Fira Sans, Helvetica Neue, sans-serif;
justify-content: center;
position: fixed;
padding: 0 10px;
Expand All @@ -47,139 +49,151 @@
z-index: 100;
height: 5rem;
line-height: 1;
background-image: url(/images/vueschool/vs-fw-bg.svg);
background-image: url(/images/vueschool/vs-fw-bg-small.svg);
background-size: cover;
background-repeat: no-repeat;
}

#vs:hover {
text-decoration: none;
}

#vs .vs-logo {
position: absolute;
left: 20px;
top: 20px;
}
#vs .vs-logo .logo-small {
width: 30px;
margin-left: -5px;
margin-top: 5px;
}

#vs .vs-logo .logo-big {
display: none;
}
@media (min-width: 768px) {
#vs .vs-logo .logo-small {
width: auto;
margin: 0;
}
}
@media (min-width: 1024px) {
#vs .vs-logo .logo-small {
display: none;
}
#vs .vs-logo .logo-big {
display: inline-block;
}
}
@media (min-width: 680px) {
#vs {
height: 5rem;
}
}
#vs:hover .vs-core .vs-button {
background: linear-gradient(261deg, #e61463 100%, #db5248 3%);
border-color: #e61463;
}
@media (min-width: 680px) {
#vs .vs-core {
display: flex;
align-items: center;
}

#vs:hover .vs-core .vs-button-inside {
background: linear-gradient(257deg, #e19b09 99%, #ffca24 6%);
}

#vs .vs-core .vs-slogan {
font-family: Archivo;
color: #fff;
margin-left: 8px;
text-align: center;
}
@media (min-width: 680px) {
#vs .vs-core .vs-slogan {
margin-left: 24px;
}

#vs .vs-core {
width: 190px;
align-items: center;
display: flex;
justify-content: center;
}

#vs .vs-core .vs-slogan .vs-slogan-subtitle {
font-size: 14px;
color: #47b785;
font-weight: bold;
}
@media (min-width: 680px) {
#vs .vs-core .vs-slogan .vs-slogan-subtitle {
font-size: 18px;
}
color: #cdc5dc;
margin-top: 8px;
}

#vs .vs-core .vs-slogan .vs-slogan-title {
margin-top: 6px;
font-size: 16px;
font-weight: 800;
}
@media (min-width: 680px) {
#vs .vs-core .vs-slogan .vs-slogan-title {
font-size: 18px;
}
}

#vs .vs-core .vs-slogan .vs-slogan-title strong {
color: #48a0ff;
font-weight: 400;
color: #fdc722;
}

#vs .vs-core .vs-button {
color: #fff;
padding: 7px 10px;
font-weight: 600;
white-space: nowrap;
background: linear-gradient(0deg, #ffdf4c, #e29d0a);
padding: 2px;
margin-right: 18px;
margin-left: 16px;
font-family: 'Archivo', sans-serif;
object-fit: contain;
border-radius: 30px;
border-style: solid;
border-width: 2px;
background-image: linear-gradient(255deg, #d457d0 98%, #ed81eb 2%), linear-gradient(to bottom, #b349b0, #db61d9);
text-transform: uppercase;
border-color: #B349B0;
display: none;
}

#vs .vs-core .vs-button-inside {
color: #000;
padding: 7px 10px;
font-weight: 800;
font-size: 22px;
white-space: nowrap;
border-radius: 30px;
background: linear-gradient(90deg, #FFC828, #E19C0E);
text-transform: uppercase;
}

#vs .vs-close {
right: 6px;
position: absolute;
}

#vs .vs-close:hover {
color: #56d8ff;
}

@media (min-width: 680px) {
#vs {
background-image: url(/images/vueschool/vs-fw-bg.svg);
background-position: top right -110px;
}

#vs .vs-core .vs-slogan {
margin-left: 24px;
width: auto;
}

#vs .vs-core .vs-slogan .vs-slogan-subtitle {
font-size: 16px;
}

#vs .vs-core .vs-slogan .vs-slogan-title {
font-size: 18px;
}

#vs .vs-core .vs-button {
display: inline-block;
margin-right: 0;
padding: 8px 24px;
margin-left: 22px;
}
}
@media (min-width: 1024px) {
#vs .vs-core .vs-button {
margin-left: 69px;
}
}
.vs-tag {
margin-left: 10px
}
@media (min-width: 1024px) {
.vs-tag {
margin-left: 30px

#vs .vs-core .vs-button-inside {
padding: 8px 24px;
}
}
#vs .vs-close {
right: 6px;
position: absolute;
}
@media (min-width: 680px) {

#vs .vs-close {
padding: 10px;
right: 20px;
}
}
#vs .vs-close:hover {
color: #56d8ff;

@media (min-width: 768px) {
#vs .vs-logo .logo-small {
display: none;
}

#vs .vs-logo .logo-big {
display: inline-block;
}

#vs .vs-core {
width: 430px;
}
}

@media (min-width: 1024px) {
#vs {
background-position: top right;
}

#vs .vs-core .vs-slogan .vs-slogan-title {
font-size: 24px;
}

#vs .vs-core .vs-button {
margin-left: 69px;
}

#vs .vs-core {
width: auto;
}
}

/************************************/
Expand Down
Loading