Combine and refine third and sixth section
[rails.git] / app / views / site / welcome.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "welcome" %>
3 <% end %>
4
5 <% content_for :heading do %>
6   <h2><%= t "welcome_page.title" %></h2>
7   <h3><%= t "welcome_page.subtitle" %></h3>
8 <% end %>
9
10 <div class='pad2'>
11   <p><%= t "welcome_page.introduction_html" %></p>
12 </div>
13
14 <div class='pad2 drop'>
15   <h3><%= t "welcome_page.one_map_many_uses.title" %></h3>
16   <div class='center one-map'>
17     <div class='sprite large one-map'>
18       <span class='one-map-name one-map-project-name'><%= t "layouts.project_name.title" %></span>
19       <% t("welcome_page.one_map_many_uses.names").sample(6).each_with_index do |name, i| %>
20         <span class='one-map-name one-map-name-<%= i+1 %>'><%= name %></span>
21       <% end %>
22     </div>
23   </div>
24   <p><%= t "welcome_page.one_map_many_uses.paragraph_1_html" %></p>
25 </div>
26
27 <div class='pad2 drop clearfix'>
28   <h3><%= t "welcome_page.whats_on_the_map.title" %></h3>
29   <div class='col6 pad1'>
30     <div class='center pad1'>
31       <span class='sprite small check'></span>
32     </div>
33     <p><%= t "welcome_page.whats_on_the_map.on_html" %></p>
34   </div>
35   <div class='col6 pad1'>
36     <div class='center pad1'>
37       <span class='sprite small x'></span>
38     </div>
39     <p><%= t "welcome_page.whats_on_the_map.off_html" %></p>
40   </div>
41 </div>
42
43 <div class='pad2 drop'>
44   <h3><%= t "welcome_page.basic_terms.title" %></h3>
45   <p><%= t "welcome_page.basic_terms.paragraph_1_html" %></p>
46   <div class='col12 clearfix'>
47     <p>
48       <span class='sprite small term editor'></span>
49       <%= t "welcome_page.basic_terms.editor_html" %>
50     </p>
51     <p>
52       <span class='sprite small term node'></span>
53       <%= t "welcome_page.basic_terms.node_html" %>
54     </p>
55     <p>
56       <span class='sprite small term way'></span>
57       <%= t "welcome_page.basic_terms.way_html" %>
58     </p>
59     <p>
60       <span class='sprite small term changeset'></span>
61       <%= t "welcome_page.basic_terms.changeset_html" %>
62     </p>
63   </div>
64 </div>
65
66 <div class='pad2 drop'>
67   <h3><%= t "welcome_page.questions.title" %></h3>
68   <div class='center pad1'>
69     <span class='sprite small term question'></span>
70   </div>
71   <p><%= t "welcome_page.questions.paragraph_1_html" %></p>
72 </div>
73
74 <div class='pad2 drop'>
75   <h3><%= t "welcome_page.contributing.title" %></h3>
76   <% if @user %>
77     <p>
78       <%= t "welcome_page.contributing.paragraph_1_html" %>
79       <span class='edit-located'><%= t "welcome_page.contributing.paragraph_located" %></span>
80       <span class='edit-geocoded'><%= t "welcome_page.contributing.paragraph_geocoded_html" %></span>
81       <span class='edit-geolocated'><%= t "welcome_page.contributing.paragraph_geolocated" %></span>
82     </p>
83     <div class='center'>
84       <a href="<%= edit_path %>" class="edit-located edit-geocoded edit-geolocated start-mapping"><%= t "welcome_page.contributing.start_mapping" %></a>
85     </div>
86   <% else %>
87     <p><%= t "welcome_page.contributing.paragraph_1_no_user_html" %></p>
88     <div class='center'>
89       <a href="<%= user_new_path %>" class="sign-up"><%= t "welcome_page.contributing.sign_up" %></a>
90     </div>
91   <% end %>
92 </div>
93
94 <div class='note-box pad2 drop'>
95   <div class='pad1'>
96     <h3><%= t "welcome_page.add_a_note.title" %></h3>
97     <p><%= t "welcome_page.add_a_note.paragraph_1_html" %></p>
98     <p><%= t "welcome_page.add_a_note.paragraph_2_html" %></p>
99   </div>
100 </div>