From 4dcc594193c8012485cb8b109df6f06e9ebc0587 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 22 Sep 2021 13:10:59 +0200 Subject: [PATCH] Added static offers CTA to membership settings --- .../gh-membership-products-alpha.hbs | 2 +- ghost/admin/app/styles/layouts/main.css | 12 +++++ ghost/admin/app/styles/layouts/products.css | 45 ++++++++++++++++--- .../app/templates/settings/membership.hbs | 26 +++++++++++ .../public/assets/icons/discount-bubble.svg | 1 + 5 files changed, 80 insertions(+), 6 deletions(-) create mode 100644 ghost/admin/public/assets/icons/discount-bubble.svg diff --git a/ghost/admin/app/components/gh-membership-products-alpha.hbs b/ghost/admin/app/components/gh-membership-products-alpha.hbs index ad8eeaee80..0ac9131674 100644 --- a/ghost/admin/app/components/gh-membership-products-alpha.hbs +++ b/ghost/admin/app/components/gh-membership-products-alpha.hbs @@ -1,7 +1,7 @@
{{#each this.products as |product productIdx|}} -
+
diff --git a/ghost/admin/app/styles/layouts/main.css b/ghost/admin/app/styles/layouts/main.css index cb09d197c6..bd4a9974bb 100644 --- a/ghost/admin/app/styles/layouts/main.css +++ b/ghost/admin/app/styles/layouts/main.css @@ -1285,6 +1285,18 @@ } } +.gh-main-content-card { + border-radius: 3px; + padding: 24px; + background: var(--main-bg-color); + margin-bottom: 12px; + box-shadow: 0 1px 4px -1px rgba(0,0,0,0.1); +} + +.gh-main-content-card:last-of-type { + margin-bottom: 24px; +} + /* Canvas */ .gh-canvas-title { display: flex; diff --git a/ghost/admin/app/styles/layouts/products.css b/ghost/admin/app/styles/layouts/products.css index d21076c0b4..e03bee71c9 100644 --- a/ghost/admin/app/styles/layouts/products.css +++ b/ghost/admin/app/styles/layouts/products.css @@ -20,11 +20,6 @@ display: flex; align-items: flex-start; justify-content: space-between; - border-radius: 3px; - padding: 24px; - background: var(--main-bg-color); - margin-bottom: 12px; - box-shadow: 0 1px 4px -1px rgba(0,0,0,0.1); } @media (max-width: 980px) { @@ -625,4 +620,44 @@ .gh-product-form-tierpreview .placeholder { opacity: 0.35; +} + +/* Offers */ +.gh-offers-list-cta { + display: flex; + flex-direction: column; + align-items: center; + padding: 4vw; +} + +.gh-offers-list-cta h4 { + color: var(--darkgrey); + text-align: center; + font-weight: 600; + margin-bottom: 8px; +} + +.gh-offers-list-cta p { + max-width: 390px; + color: var(--midgrey); + text-align: center; + line-height: 1.45em; + margin: 0 0 20px; + padding: 0; +} + +.gh-offers-list-cta .discount-bubble { + color: var(--lightgrey); + width: 72px; + height: 72px; + margin-bottom: 16px; +} + +.gh-offers-list-cta .discount-bubble path, +.gh-offers-list-cta .discount-bubble circle { + stroke-width: 0.8px; +} + +.gh-offers-list-cta button { + min-width: 140px; } \ No newline at end of file diff --git a/ghost/admin/app/templates/settings/membership.hbs b/ghost/admin/app/templates/settings/membership.hbs index c8935a6d67..ee40040c74 100644 --- a/ghost/admin/app/templates/settings/membership.hbs +++ b/ghost/admin/app/templates/settings/membership.hbs @@ -220,6 +220,32 @@ {{/liquid-if}}
+
+
+
+

Offers

+

Manage targeted discounts

+
+ +
+
+ {{#liquid-if this.offersOpen}} +
+
+ {{svg-jar "discount-bubble" class="discount-bubble"}} +

Provide special offers to new signups

+

+ Boost your subscriptions by creating targeted discounts to potential members. + Learn more +

+ +
+
+ {{/liquid-if}} +
+
diff --git a/ghost/admin/public/assets/icons/discount-bubble.svg b/ghost/admin/public/assets/icons/discount-bubble.svg new file mode 100644 index 0000000000..3781845855 --- /dev/null +++ b/ghost/admin/public/assets/icons/discount-bubble.svg @@ -0,0 +1 @@ +discount-bubble \ No newline at end of file