From 9d75700f38059da7e76464a34878a434a7ee4e7f Mon Sep 17 00:00:00 2001 From: Pierre Schweiger Date: Mon, 22 Jun 2020 00:22:45 +0700 Subject: [PATCH 001/184] Add Vue Mastery Banner for Vue 3 Deep Dive course promotion (#2627) --- src/images/flares.svg | 21 ++ src/images/logo-vuemastery.svg | 22 ++ src/images/planet.svg | 72 +++++ src/images/stars.svg | 45 +++ themes/vue/layout/layout.ejs | 6 +- themes/vue/layout/partials/header.ejs | 4 +- .../vue/layout/partials/vuemastery_banner.ejs | 126 ++++++++ themes/vue/source/css/_common.styl | 3 +- themes/vue/source/css/_header.styl | 5 +- themes/vue/source/css/_sidebar.styl | 3 +- themes/vue/source/css/_sponsors-sidebar.styl | 3 +- themes/vue/source/css/_vuemastery-banner.styl | 276 ++++++++++++++++++ themes/vue/source/css/index.styl | 1 + themes/vue/source/css/page.styl | 1 + 14 files changed, 579 insertions(+), 9 deletions(-) create mode 100644 src/images/flares.svg create mode 100644 src/images/logo-vuemastery.svg create mode 100644 src/images/planet.svg create mode 100644 src/images/stars.svg create mode 100644 themes/vue/layout/partials/vuemastery_banner.ejs create mode 100644 themes/vue/source/css/_vuemastery-banner.styl diff --git a/src/images/flares.svg b/src/images/flares.svg new file mode 100644 index 0000000000..87a939e9f0 --- /dev/null +++ b/src/images/flares.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/images/logo-vuemastery.svg b/src/images/logo-vuemastery.svg new file mode 100644 index 0000000000..b4ce163d48 --- /dev/null +++ b/src/images/logo-vuemastery.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/images/planet.svg b/src/images/planet.svg new file mode 100644 index 0000000000..1852d0bc01 --- /dev/null +++ b/src/images/planet.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/images/stars.svg b/src/images/stars.svg new file mode 100644 index 0000000000..c81619c18f --- /dev/null +++ b/src/images/stars.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/vue/layout/layout.ejs b/themes/vue/layout/layout.ejs index f5f34c0deb..6b9dd6546a 100644 --- a/themes/vue/layout/layout.ejs +++ b/themes/vue/layout/layout.ejs @@ -90,10 +90,12 @@ + <%- partial('partials/vuemastery_banner.ejs') %>
> - + + - #BlackLivesMatter +
<%- partial('partials/header') %> <% if (!isIndex) { %> diff --git a/themes/vue/layout/partials/header.ejs b/themes/vue/layout/partials/header.ejs index c8bcb8a9de..9c24d24e12 100644 --- a/themes/vue/layout/partials/header.ejs +++ b/themes/vue/layout/partials/header.ejs @@ -1,8 +1,8 @@
-
+
<% } %>
+

+ You’re browsing the documentation for v2.x and ealier. + For v3.x, click here. +

+ <% if (page.type) { %> <% if (page.type === 'menu') { %>
diff --git a/themes/vue/layout/partials/header.ejs b/themes/vue/layout/partials/header.ejs index ed21db28d1..93cd0d7082 100644 --- a/themes/vue/layout/partials/header.ejs +++ b/themes/vue/layout/partials/header.ejs @@ -1,10 +1,8 @@
- <% if (page.path === 'index.html') { %> -
- #BlackLivesMatter - Support the Equal Justice Initiative. -
- <% } %> +
+ + Click here for v3.x documentation. +