From f0ee117cffb37d36cc2fc0be198832358a451025 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 8 Jan 2020 16:41:17 +0100 Subject: [PATCH] Refactor the welcome page to use the bootstrap grid and alert box The two columns work well side-by-side even at small screen widths. --- app/assets/stylesheets/common.scss | 5 ----- app/views/site/welcome.html.erb | 28 +++++++++++++--------------- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 3d013339d..018f36217 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -2627,11 +2627,6 @@ input.richtext_title[type="text"] { text-decoration: none; } - .note-box { - margin-top: 20px; - background-color: $offwhite; - } - .icon.note { background-color: #333; border-radius: 4px; diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index dc6a519df..4617935e7 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -10,15 +10,15 @@

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

-
-
-
+
+
+

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

-
-
+
+

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

@@ -29,7 +29,7 @@

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

-
+

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

@@ -48,26 +48,24 @@
-
+

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

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

-
+

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

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

-
-
-

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

-

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

-

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

-
+
+

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

+

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

+

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

-- 2.43.2