This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
/
homepage.html.erb
81 lines (71 loc) · 3.15 KB
/
homepage.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<head>
<title>The Code for America Brigade</title>
<meta name="description" content="The Code for America Brigade connects passionate technologists in their communities to work together to deploy reusable civic apps.">
<%= stylesheet_link_tag 'home', :media => 'all' %>
<%= javascript_include_tag 'home' %>
<%= csrf_meta_tags %>
<%= favicon_link_tag %>
</head>
<body>
<%= render partial: 'layouts/flashes' %>
<%= render 'shared/navigation' %>
<section class="white">
<div id="main">
<%= yield %>
</div>
<section id="three-up">
<div class="column">
<a href="/applications"><img src="/assets/apps.png" alt="apps icon (noun project)" class="home_three"/></a>
<p>Pick from nearly a dozen fun, useful, and reusable civic apps and challenge your city to deploy them. (And we've even got instructions to make it easy.) <a href="/applications">Check them out.</a></p>
</div>
<div class="column">
<a href="/brigades"><img src="/assets/people.png" alt="people icon (noun project)" class="home_three"/></a>
<p>Recruit your friends and neighbors in your community to join the brigade, work together, and share skills (and pizza too) to get the app up and running. <a href="/brigades">Find a brigade.</a></p>
</div>
<div class="column">
<a href="/users"><img src="/assets/geo.png" alt="geo icon (noun project)" class="home_three"/></a>
<p>Put your city on the map by deploying an app, and you'll be able to learn from and connect to the growing national network of civic leaders.<br /><a href="/users">See who's in.</a></p>
</div>
<div class="clear"></div>
</section>
<div class="complete-list-link">
<span class="stars">*</span>
<%= link_to "Featured Applications", applications_path, :class => "see-more" %>
<span class="stars">*</span>
</div>
<div id="flipper-outer-shell">
<section id="app-flipper">
<div class="shell">
<% AppDecorator.decorate(Application.limit(9)).each do |application| %>
<dl class="application-card">
<dt class="icon"><%= application.logo %></dt>
<dt>
<strong>
<% if application.name %>
<%= application.name.truncate(20) %>
<% end %>
</strong>
</dt>
<!--<dd>
<div class="location-count">
<span class="count"><%= application.deployed_applications.map(&:location).size %></span></br>
<span class="label">Locations</span>
</div>
<div class="commit-count">
<span class="count"><%= application.number_of_deploys %></span></br>
<span class="label">Deploys</span>
</div>
</dd>-->
<dd class="deploy-button"><%= link_to 'Get Started', application_path(application) %></dd>
</dl>
<% end %>
</div>
</section>
</div>
<%= render 'shared/footer' %>
<script type='text/javascript'>
$(window).bind('unload', function(){})
</script>
</body>
</html>