diff --git a/app/assets/javascripts/wizard/components/popular-themes.js b/app/assets/javascripts/wizard/components/popular-themes.js deleted file mode 100644 index db72320e690..00000000000 --- a/app/assets/javascripts/wizard/components/popular-themes.js +++ /dev/null @@ -1,30 +0,0 @@ -import Component from "@ember/component"; -import { POPULAR_THEMES } from "discourse-common/helpers/popular-themes"; - -export default Component.extend({ - classNames: ["popular-themes"], - - init() { - this._super(...arguments); - - this.popular_components = this.selectedThemeComponents(); - }, - - selectedThemeComponents() { - return this.shuffle() - .filter((theme) => theme.component) - .slice(0, 5); - }, - - shuffle() { - let array = POPULAR_THEMES; - - // https://stackoverflow.com/a/12646864 - for (let i = array.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [array[i], array[j]] = [array[j], array[i]]; - } - - return array; - }, -}); diff --git a/app/assets/javascripts/wizard/templates/components/popular-themes.hbs b/app/assets/javascripts/wizard/templates/components/popular-themes.hbs deleted file mode 100644 index 774f8c0a27a..00000000000 --- a/app/assets/javascripts/wizard/templates/components/popular-themes.hbs +++ /dev/null @@ -1,5 +0,0 @@ -{{#each popular_components as |theme|}} - - {{theme.name}} - -{{/each}} diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scss index 18c0af87a8f..a5fd0ca6dd1 100644 --- a/app/assets/stylesheets/wizard.scss +++ b/app/assets/stylesheets/wizard.scss @@ -257,7 +257,8 @@ body.wizard { } .wizard-step-banner { margin-bottom: 2em; - width: 660px; + width: 620px; + display: block; } .wizard-footer { @@ -493,22 +494,6 @@ body.wizard { } } -.wizard-step-themes-further-reading { - .wizard-field .input-area { - margin-top: 0; - } - - .popular-themes { - display: flex; - a.popular-theme-item { - background: var(--secondary-very-high); - padding: 8px; - margin: 0px 4px; - width: 25%; - } - } -} - .textarea-field { textarea { width: 100%; @@ -637,17 +622,6 @@ body.wizard { .wizard-column-contents { padding: 1em !important; } - .wizard-step-themes-further-reading { - .popular-themes { - a.popular-theme-item { - width: 33.3%; - &:nth-child(4), - &:nth-child(5) { - display: none; - } - } - } - } .emoji-preview img { width: 16px !important; height: 16px !important; diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index b70695fec5d..eff53122527 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -4697,16 +4697,6 @@ en: colors: title: "Theme" - themes_further_reading: - title: "Themes" - description: - "Looking to customize your Discourse? Take advantage of our powerful theming system: -
- Popular theme components (for more, browse #theme)" - fonts: title: "Fonts" fields: @@ -4772,6 +4762,7 @@ en: title: "Your Discourse is Ready!" description: |If you ever feel like changing these settings, re-run this wizard any time, or visit your admin section; find it next to the wrench icon in the site menu.
+It is easy to customize your Discourse even further using our powerful theming system. For examples, check out the top themes and components on meta.discourse.org.
Have fun, and good luck building your new community!
search_logs: diff --git a/lib/wizard/builder.rb b/lib/wizard/builder.rb index f89942354d3..15a6e404c83 100644 --- a/lib/wizard/builder.rb +++ b/lib/wizard/builder.rb @@ -204,11 +204,6 @@ class Wizard end end - @wizard.append_step('themes-further-reading') do |step| - step.banner = "further-reading.png" - step.add_field(id: 'popular-themes', type: 'component') - end - @wizard.append_step('fonts') do |step| body_font = step.add_field(id: 'body_font', type: 'dropdown', value: SiteSetting.base_font) heading_font = step.add_field(id: 'heading_font', type: 'dropdown', value: SiteSetting.heading_font) diff --git a/public/images/wizard/further-reading.png b/public/images/wizard/further-reading.png deleted file mode 100644 index c40d907d2b2..00000000000 Binary files a/public/images/wizard/further-reading.png and /dev/null differ