From: Anton Khorev Date: Mon, 27 May 2024 00:16:33 +0000 (+0300) Subject: Inline welcome/fixthemap sprites X-Git-Tag: live~443^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1cf4bf5d983c65ac0bb3868f0bd962b016433265?ds=inline Inline welcome/fixthemap sprites --- diff --git a/app/assets/images/welcome-sprite.svg b/app/assets/images/welcome-sprite.svg deleted file mode 100644 index 64959a20b..000000000 --- a/app/assets/images/welcome-sprite.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 605f4f077..7c216ad4b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -876,45 +876,6 @@ div.secondary-actions { } } -/* Rules for the "Welcome" and "Fix the map" pages */ - -.site-welcome, .site-fixthemap { - .sprite { - width: 50px; - height: 50px; - background-image: image-url("welcome-sprite.svg"); - background-size: 400px 50px; - } - - .sprite.x { - /*rtl:ignore*/ background-position: -50px 0; - } - - .sprite.node { - /*rtl:ignore*/ background-position: -100px 0; - } - - .sprite.way { - /*rtl:ignore*/ background-position: -150px 0; - } - - .sprite.tag { - /*rtl:ignore*/ background-position: -200px 0; - } - - .sprite.editor { - /*rtl:ignore*/ background-position: -250px 0; - } - - .sprite.question { - /*rtl:ignore*/ background-position: -300px 0; - } - - .sprite.rules { - /*rtl:ignore*/ background-position: -350px 0; - } -} - /* Rules for the "About" page */ .site-about #content { diff --git a/app/views/site/_any_questions.html.erb b/app/views/site/_any_questions.html.erb index 3458999a6..0224fd3ea 100644 --- a/app/views/site/_any_questions.html.erb +++ b/app/views/site/_any_questions.html.erb @@ -1,6 +1,9 @@

<%= t ".title" %>

- + + + +

<%= t ".paragraph_1_html", :help_link => link_to(t(".get_help_here"), help_path), :welcome_mat_link => link_to(t(".welcome_mat"), t(".welcome_mat_url")) %>

diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index 22783ce2d..33c9a7e24 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -12,11 +12,17 @@
- + + + +

<%= t ".whats_on_the_map.on_the_map_html", :real_and_current => tag.em(t(".whats_on_the_map.real_and_current")) %>

- + + + +

<%= t ".whats_on_the_map.off_the_map_html", :doesnt => tag.em(t(".whats_on_the_map.doesnt")) %>

@@ -27,26 +33,44 @@

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

- + + + +

<%= t ".rules.para_1_html", :imports_link => link_to(t(".rules.imports"), t(".rules.imports_url")), :automated_edits_link => link_to(t(".rules.automated_edits"), t(".rules.automated_edits_url")) %>