OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Implement homescreen banner (#18785)
Oliver Güntherc231bffff289
diff --git a/app/assets/images/enterprise/homescreen.png b/app/assets/images/enterprise/homescreen.pngnew file mode 100644index 00000000000..005e9fdeaeeBinary files /dev/null and b/app/assets/images/enterprise/homescreen.png differdiff --git a/app/views/homescreen/blocks/_upsell.html.erb b/app/views/homescreen/blocks/_upsell.html.erbindex 89fbeef97b8..f2e6a016a0e 100644--- a/app/views/homescreen/blocks/_upsell.html.erb+++ b/app/views/homescreen/blocks/_upsell.html.erb@@ -1,45 +1,26 @@-<div class="widget-box--description">- <%= image_tag "enterprise-add-on.svg", role: "presentation", class: "widget-box--blocks--upsell-image" %>+<div class="widget-box--blocks--upsell-container"+ style="background-image: url(<%= image_path("enterprise/homescreen.png") %>)"><div class="widget-box--blocks--upsell-text">- <div class="widget-box--blocks--upsell-title">- <%= spot_icon("enterprise-addons") %>- <span><%= t("homescreen.blocks.upsell.title") %></span>- </div>- <p class="widget-box--blocks--upsell-description">- <%= t("js.admin.enterprise.upsell.text") %>- </p>+ <%=+ render(Primer::OpenProject::FlexLayout.new(align_items: :center, mb: 3)) do |title_flex|+ title_flex.with_column do+ render(Primer::Beta::Octicon.new(icon: :"op-enterprise-addons",+ size: :medium,+ classes: "upsell-colored"))+ end- <p>- <b><%= t("js.admin.enterprise.upsell.become_hero") %></b> <%= t("js.admin.enterprise.upsell.you_contribute") %>- </p>+ title_flex.with_column(ml: 2) do+ render(Primer::Beta::Heading.new(tag: :h2)) { t("ee.upsell.plans_title") }+ end+ end+ %>- <p>- <b><%= t("js.admin.enterprise.upsell.confidence") %></b>+ <p class="widget-box--blocks--upsell-description">+ <%= t("ee.upsell.homescreen_description") %>+ </p>+ <p class="widget-box--blocks--upsell-description">+ <%= t("ee.upsell.homescreen_subline") %></p></div>-</div>--<div class="widget-box--blocks--upsell-buttons">- <%= link_to "#{OpenProject::Static::Links.links[:upsell][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=home-screen",- class: "button--link widget-box--blocks--upsell-info-button",- target: "_blank",- rel: "noopener" do %>- <%= spot_icon("external-link") %>- <span class="button--text"><%= t(:label_more_information) %></span>-- <% end %>-- <%= link_to(- OpenProject::Static::Links.links[:pricing][:href],- class: "button -primary",- target: "_blank",- rel: "noopener"- ) do %>- <%= spot_icon("enterprise-addons") %>- <span class="button--text"><%= t("admin.enterprise.buttons.upgrade") %></span>- <% end %>-- <% if current_user.admin? %>- <%= link_to t("js.admin.enterprise.upsell.button_start_trial"), enterprise_path, class: "button -primary" %>- <% end %>+ <%= render EnterpriseEdition::UpsellButtonsComponent.new(nil) %></div>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 78f6957f922..258f421cb52 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2094,11 +2094,16 @@ en:work_package_sharing: Share work packages with external userswork_package_subject_generation: Work Package Subject Generationupsell:+ plans_title: "Enterprise plans"title: "Enterprise add-on"plan_title: "Enterprise %{plan} add-on"plan_name: "%{plan} enterprise plan"plan_text_html: "Available starting with the %{plan_name}."hide_banner: "Hide this banner"+ homescreen_description: >+ Enterprise plans extend the Community edition of OpenProject you are currently using.+ They include add-ons, additional features and professional support that enables organisations of all sizes to achieve great things together.+ homescreen_subline: By upgrading, you will also be supporting an open source project.baseline_comparison:description: Highlight changes made to this list since any point in the past.work_package_subject_generation:diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex f7b881e5356..64223066de9 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -285,11 +285,7 @@ en:We deliver the confidence of a tested and supported enterprise-class project management software - with Open Source and an open mind.link_quote: "Get a quote"more_info: "More information"- text: >- The OpenProject Enterprise edition builds on top of the Community edition.- It includes Enterprise add-ons and professional support mainly aimed at organizations with more than 10 users that manage business critical projects with OpenProject.unlimited: "Unlimited"- you_contribute: "Developers need to pay their bills, too. By upgrading to the Enterprise edition, you will be supporting this open source community effort and contributing to its development, maintenance and continuous improvement."working_days:calendar:diff --git a/frontend/src/global_styles/content/_enterprise.sass b/frontend/src/global_styles/content/_enterprise.sassindex 635bf94b9aa..7b8f7c7b6ed 100644--- a/frontend/src/global_styles/content/_enterprise.sass+++ b/frontend/src/global_styles/content/_enterprise.sass@@ -13,19 +13,27 @@font-family: "Lucida Console", Monaco, monospacemax-width: 560px-.widget-box--blocks--upsell-buttons- display: flex- justify-content: flex-end-- a.button,- a.button--link- text-decoration: none- margin: 0.625rem 0.625rem 0 0--.widget-box--blocks--upsell-info-button- display: flex- justify-content: center- align-items: center+.controller-homescreen .widget-boxes+ .widget-box.upsell+ padding: 0+ background: var(--bgColor-accent-muted)+ flex-basis: 100%+ border: var(--borderWidth-thin) solid var(--borderColor-severe-muted)+ border-radius: var(--borderRadius-medium)+ background: var(--body-background)++.widget-box--blocks--upsell-container+ padding: 20px+ height: 250px+ background-size: contain+ background-repeat: no-repeat+ background-position: center right++ @media screen and (max-width: $breakpoint-lg)+ background-image: none !important++ @media screen and (max-width: $breakpoint-xl)+ background-size: cover.upsell-coloredcolor: var(--enterprise-upsell-color) !important@@ -41,8 +49,10 @@display: flex.widget-box--blocks--upsell-text- line-height: 24px- margin-top: 10px+ width: 50%++ @media screen and (max-width: $breakpoint-lg)+ width: 100%.widget-box--blocks--upsell-descriptionmargin: 10px 0 10px 0diff --git a/frontend/src/global_styles/openproject/_homescreen.sass b/frontend/src/global_styles/openproject/_homescreen.sassindex de762e730f1..accdab1fe2f 100644--- a/frontend/src/global_styles/openproject/_homescreen.sass+++ b/frontend/src/global_styles/openproject/_homescreen.sass@@ -32,11 +32,6 @@.widget-boxbox-shadow: none- &.upsell- background: var(--bgColor-accent-muted)- flex-basis: 100%- border-color: var(--borderColor-accent-muted)-.homescreen--linksmargin: 10px 0display: flex