diff --git a/app/assets/stylesheets/bootstrap_css_variable_overrides.css.scss b/app/assets/stylesheets/bootstrap_css_variable_overrides.css.scss index 7da4b3a0ed..4a32f646ce 100644 --- a/app/assets/stylesheets/bootstrap_css_variable_overrides.css.scss +++ b/app/assets/stylesheets/bootstrap_css_variable_overrides.css.scss @@ -38,10 +38,11 @@ --bs-danger-rgb: var(--d-danger-rgb); --bs-light: $neutral-90; --bs-dark: $neutral-25; + --bs-secondary-text-emphasis: var(--d-on-secondary-container); + --bs-secondary-bg-subtle: var(--d-secondary-container); // not overwritten // --bs-primary-text-emphasis: #052c65; - // --bs-secondary-text-emphasis: #2b2f32; // --bs-success-text-emphasis: #0a3622; // --bs-info-text-emphasis: #055160; // --bs-warning-text-emphasis: #664d03; diff --git a/app/views/pages/_teacher_intro_card.html.erb b/app/views/pages/_teacher_intro_card.html.erb new file mode 100644 index 0000000000..beae0676c7 --- /dev/null +++ b/app/views/pages/_teacher_intro_card.html.erb @@ -0,0 +1,13 @@ +
+

+ <%= t ".title" %> +

+ <% if current_user.student? %> +

+ <%= t ".rights_request_html" %> +

+ <% end %> +

+ <%= t ".documentation_html" %> +

+
diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb index 6eaca505be..0b96f9c23f 100644 --- a/app/views/pages/home.html.erb +++ b/app/views/pages/home.html.erb @@ -38,6 +38,9 @@
+ <% if current_user.administrating_courses.empty? && (current_user.staff? || current_user.institution&.users&.count == 1) %> + <%= render partial: 'teacher_intro_card' %> + <% end %> <%= render "user_card" %> <% if current_user.pending_courses.any? %> <%= render "pending_courses_card" %> diff --git a/config/locales/views/pages/en.yml b/config/locales/views/pages/en.yml index cdfcb4330a..d2c494fdcc 100644 --- a/config/locales/views/pages/en.yml +++ b/config/locales/views/pages/en.yml @@ -158,3 +158,8 @@ en: supported_by: Supported by supported_p1_html: "Dodona is run by a small team of researchers at Ghent University. The platform is open source and all code is available on GitHub. The hosting is provided by Ghent University. In addition, Dodona is supported by educational innovation projects from Ghent University and the Faculty of Sciences. ELIXIR Belgium also provides some funding." support_button: Make a donation + teacher_intro_card: + title: Start your own course today! + rights_request_html: "Request teacher rights to be able to create your own courses." + documentation_html: "Get detailed guidance on launching your own courses with Dodona by visiting our documentation." + diff --git a/config/locales/views/pages/nl.yml b/config/locales/views/pages/nl.yml index 709cee65b4..581bde99fc 100644 --- a/config/locales/views/pages/nl.yml +++ b/config/locales/views/pages/nl.yml @@ -158,3 +158,7 @@ nl: supported_by: Met de steun van supported_p1_html: "Dodona wordt ontwikkeld door een klein team onderzoekers aan de Universiteit Gent. Het platform is volledig open source en alle code is beschikbaar op GitHub. De hosting wordt aangeboden door de Universiteit Gent. Daarnaast ontving Dodona al steun in de vorm van onderwijsinnovatieprojecten van de Universiteit Gent en de Faculteit Wetenschappen. Ook ELIXIR Belgium ondersteunde dit project." support_button: Doe een gift + teacher_intro_card: + title: Maak je eigen cursus aan! + rights_request_html: "Wist je dat je je eigen cursussen op Dodona kunt maken? Vraag lesgeversrechten aan om van start te gaan." + documentation_html: "Ontdek hoe je eigen cursus op Dodona kunt starten met hulp van onze documentatie."