From: Nico Devs <3766839+nicodevs@users.noreply.github.com> Date: Wed, 1 Dec 2021 10:17:30 +0000 (-0300) Subject: Docs: Update Vue School banner for Cyber Monday (#1227) X-Git-Tag: v4.0.13~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53f65fa83c828c4c659337d10e05b25956cec42e;p=thirdparty%2Fvuejs%2Frouter.git Docs: Update Vue School banner for Cyber Monday (#1227) --- diff --git a/docs/.vitepress/components/VueSchool/BannerCoins.vue b/docs/.vitepress/components/VueSchool/BannerCoins.vue index 55cee220..a4ea02ba 100644 --- a/docs/.vitepress/components/VueSchool/BannerCoins.vue +++ b/docs/.vitepress/components/VueSchool/BannerCoins.vue @@ -68,7 +68,7 @@ export default { @media (min-width: 768px) { .vs-blackfriday-coins { - background-image: url(/images/vueschool/vueschool_blackfriday_background_tablet.svg); + background-image: url(/images/vueschool/vueschool_blackfriday_background_tablet_2.svg); background-position: center; background-size: cover; } @@ -99,7 +99,7 @@ export default { .vs-blackfriday-coin.js { width: 43px; top: 32px; - left: calc(50% - 341px); + left: calc(50% - 442px); } .vs-blackfriday-coin.ts { @@ -125,7 +125,7 @@ export default { .vs-blackfriday-coin.nuxt { top: 10px; width: 48px; - left: calc(50% - 474px); + left: calc(50% - 504px); } } diff --git a/docs/.vitepress/components/VueSchool/BannerTop.vue b/docs/.vitepress/components/VueSchool/BannerTop.vue index 5e814f52..eb13154d 100644 --- a/docs/.vitepress/components/VueSchool/BannerTop.vue +++ b/docs/.vitepress/components/VueSchool/BannerTop.vue @@ -15,12 +15,13 @@ Access to all Vue Courses at Vue School
- Black Friday 40% OFF + Cyber Monday 35% OFF - Closes Soon
Get Discount
+ Extended
Close @@ -57,6 +58,9 @@ export default { z-index: 100; height: 5rem; line-height: 1; + background-image: url(/images/vueschool/vueschool_banner_mobile.png); + background-size: cover; + background-repeat: no-repeat; } #vs:hover { text-decoration: none; @@ -65,14 +69,20 @@ export default { #vs { height: 5rem; justify-content: center; + background-image: none; } } #vs:hover .vs-core .vs-button { background: linear-gradient(261deg, #e61463 100%, #db5248 3%); } #vs .vs-core { - display: flex; - align-items: center; + display: none; +} +@media (min-width: 680px) { + #vs .vs-core { + display: flex; + align-items: center; + } } #vs .vs-core .vs-slogan { font-family: Archivo; @@ -121,14 +131,22 @@ export default { #vs .vs-core .vs-button { margin-right: 0; padding: 8px 24px; - margin-left: 32px; + margin-left: 22px; } } -@media (min-width: 680px) { +@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-close { right: 6px; position: absolute; diff --git a/docs/public/images/vueschool/extended.svg b/docs/public/images/vueschool/extended.svg new file mode 100644 index 00000000..192d76b2 --- /dev/null +++ b/docs/public/images/vueschool/extended.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/docs/public/images/vueschool/vueschool_banner_mobile.png b/docs/public/images/vueschool/vueschool_banner_mobile.png new file mode 100644 index 00000000..590a15a4 Binary files /dev/null and b/docs/public/images/vueschool/vueschool_banner_mobile.png differ diff --git a/docs/public/images/vueschool/vueschool_blackfriday_background_tablet.svg b/docs/public/images/vueschool/vueschool_blackfriday_background_tablet_2.svg similarity index 82% rename from docs/public/images/vueschool/vueschool_blackfriday_background_tablet.svg rename to docs/public/images/vueschool/vueschool_blackfriday_background_tablet_2.svg index 022da2d0..ed53dc0f 100644 --- a/docs/public/images/vueschool/vueschool_blackfriday_background_tablet.svg +++ b/docs/public/images/vueschool/vueschool_blackfriday_background_tablet_2.svg @@ -113,18 +113,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -148,53 +148,53 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + +