From 1bf671f6847c0c5c6561520ef4970689a0977e55 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 13:54:07 +0100 Subject: [PATCH] Rework welcome and fixthemap pages * Use lead class for lede paragraphs * Change headings to start from h2 * Remove custom css and use bootstrap utilities where required --- app/assets/stylesheets/common.scss | 18 -------------- app/views/site/fixthemap.html.erb | 12 ++++----- app/views/site/welcome.html.erb | 40 +++++++++++++++--------------- 3 files changed, 26 insertions(+), 44 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index aaad72342..8d3da8f7e 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1498,19 +1498,10 @@ dl.dl-inline { /* Rules for the "Welcome" page */ .site-welcome, .site-fixthemap { - .center { - text-align: center; - .sprite { - float: none; - margin: auto; - } - } - .sprite { background-image: image-url("welcome-sprite.png"); background-size: 500px 250px; display: block; - float: left; } .icon-list { @@ -1560,15 +1551,6 @@ dl.dl-inline { /* no-r2 */ background-position: -350px 0; } - .start-mapping { - margin: auto; - cursor: pointer; - border: none; - padding: 20px 40px; - font-size: 30px; - text-decoration: none; - } - .icon.note { background-color: #333; border-radius: 4px; diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb index f5adb83ac..28e0fe237 100644 --- a/app/views/site/fixthemap.html.erb +++ b/app/views/site/fixthemap.html.erb @@ -6,10 +6,10 @@

<%= t ".title" %>

<% end %> -

<%= t "layouts.intro_header" %>

-

<%= t "layouts.intro_text" %>

+

<%= t "layouts.intro_header" %>

+

<%= t "layouts.intro_text" %>

-

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

+

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

@@ -28,9 +28,9 @@
-

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

+

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

<%= t ".other_concerns.explanation_html" %>

-

<%= t "site.welcome.questions.title" %>

- +

<%= t "site.welcome.questions.title" %>

+

<%= t "site.welcome.questions.paragraph_1_html", :help_url => help_path %>

diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index 4617935e7..7c1ee38ab 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -6,66 +6,66 @@

<%= t ".title" %>

<% end %> -

<%= t ".introduction_html" %>

+

<%= t ".introduction_html" %>

-

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

+

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

-
- +
+

<%= t ".whats_on_the_map.on_html" %>

- +

<%= t ".whats_on_the_map.off_html" %>

-

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

+

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

<%= t ".basic_terms.paragraph_1_html" %>

-
+
- +

<%= t ".basic_terms.editor_html" %>

- +

<%= t ".basic_terms.node_html" %>

- +

<%= t ".basic_terms.way_html" %>

- +

<%= t ".basic_terms.tag_html" %>

-
-

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

- +
+

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

+

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

-
-

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

- +
+

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

+

<%= t ".questions.paragraph_1_html", :help_url => help_path %>

-
-

<%= t ".start_mapping" %>

+
-

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

+

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

<%= t ".add_a_note.paragraph_1_html" %>

<%= t ".add_a_note.paragraph_2_html", :map_url => root_path %>

-- 2.39.5