diff --git a/ghost/admin/app/components/settings/signup-form-embed.hbs b/ghost/admin/app/components/settings/signup-form-embed.hbs
index 7ca405cc42..bc61447891 100644
--- a/ghost/admin/app/components/settings/signup-form-embed.hbs
+++ b/ghost/admin/app/components/settings/signup-form-embed.hbs
@@ -4,7 +4,7 @@
-
Embeddable Sigup Form
+
Embeddable Signup Form
Grow your audience from anywhere on the web
+
+
+
+
+
diff --git a/ghost/admin/app/components/settings/signup-form-embed.js b/ghost/admin/app/components/settings/signup-form-embed.js
index b867bbf5e4..455778c77e 100644
--- a/ghost/admin/app/components/settings/signup-form-embed.js
+++ b/ghost/admin/app/components/settings/signup-form-embed.js
@@ -24,6 +24,7 @@ export default class SignupFormEmbed extends Component {
@tracked opened = false;
@tracked style = 'all-in-one';
@tracked labels = [];
+ @tracked backgroundColor = '#f9f9f9';
@inject config;
@service notifications;
@@ -37,6 +38,28 @@ export default class SignupFormEmbed extends Component {
this.labels = labels;
}
+ @action
+ setBackgroundColor(backgroundColor) {
+ this.backgroundColor = backgroundColor;
+ }
+
+ get backgroundPresetColors() {
+ return [
+ {
+ value: '#f9f9f9',
+ name: 'Light grey',
+ class: '',
+ style: 'background: #f9f9f9 !important;'
+ },
+ {
+ value: '#000000',
+ name: 'Black',
+ class: '',
+ style: 'background: #000000 !important;'
+ }
+ ];
+ }
+
get generatedCode() {
const siteUrl = this.config.blogUrl;
const scriptUrl = this.config.signupForm.url.replace('{version}', this.config.signupForm.version);
@@ -58,9 +81,8 @@ export default class SignupFormEmbed extends Component {
options.title = this.settings.title;
options.description = this.settings.description;
- const backgroundColor = '#f9f9f9';
- options['background-color'] = backgroundColor;
- options['text-color'] = textColorForBackgroundColor(backgroundColor).hex();
+ options['background-color'] = this.backgroundColor;
+ options['text-color'] = textColorForBackgroundColor(this.backgroundColor).hex();
style = 'height: 40vmin; min-height: 360px;';
}