2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# Located at /
|
|
|
|
# Shows 3 most recently created topics, synapses, and maps.
|
|
|
|
#%>
|
2013-07-09 16:32:13 +00:00
|
|
|
|
|
|
|
<% content_for :title, "Home | Metamaps" %>
|
|
|
|
|
2014-02-24 19:35:48 +00:00
|
|
|
|
|
|
|
<div id="preloaded-images">
|
|
|
|
<img src="/assets/metacodes75ms300x300.gif" width="128 height="128" alt="Image 01" />
|
|
|
|
</div>
|
|
|
|
|
2013-02-04 00:13:21 +00:00
|
|
|
<div class="home_bg">
|
2013-01-08 04:03:41 +00:00
|
|
|
|
2013-02-04 00:13:21 +00:00
|
|
|
<div class="home_content">
|
|
|
|
<div class="home_desc">
|
2014-03-03 08:25:47 +00:00
|
|
|
<div class="welcomeTo">
|
|
|
|
<% if !authenticated? %>
|
|
|
|
Welcome to Metamaps
|
|
|
|
<% elsif authenticated? %>
|
|
|
|
Welcome back, <%= @current.name.split[0...1][0] %>!
|
|
|
|
<% end %>
|
2014-02-24 07:22:40 +00:00
|
|
|
</div>
|
2014-03-03 08:25:47 +00:00
|
|
|
<img id="homeMapImage" src="/assets/metamap128x128.png" width="128" height="128" />
|
|
|
|
|
|
|
|
<% if !authenticated? %>
|
|
|
|
<div class="metamapsIs">
|
|
|
|
a home on the web for <span class="swapWord">
|
|
|
|
<ul class="texts">
|
|
|
|
<li>building shared knowledge</li>
|
|
|
|
<li>learning</li>
|
|
|
|
<li>visioning</li>
|
|
|
|
<li>conversing</li>
|
|
|
|
<li>collaborating</li>
|
|
|
|
<li>sensemaking</li>
|
|
|
|
<li>innovating</li>
|
|
|
|
<li>designing</li>
|
|
|
|
<li>playing</li>
|
|
|
|
<li>exploring</li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-01-08 04:03:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
2013-07-11 15:13:27 +00:00
|
|
|
|
2014-02-10 06:29:02 +00:00
|
|
|
<p class="contact">
|
2014-03-03 08:25:47 +00:00
|
|
|
<% if !authenticated? %>
|
|
|
|
<a href="/request" class="request button">Request Invite</a>
|
|
|
|
<a href="#" class="learnmore button openLightbox" data-open="about">Learn More</a>
|
|
|
|
<% end %>
|
|
|
|
<div class="featuredMaps">
|
|
|
|
<% if !authenticated? %>
|
|
|
|
explore featured maps from our community
|
|
|
|
<% elsif authenticated? %>
|
|
|
|
explore recently active maps
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2014-02-10 06:29:02 +00:00
|
|
|
</p>
|
|
|
|
|
2013-01-08 04:03:41 +00:00
|
|
|
<div class="centeredProfile">
|
2014-02-10 06:29:02 +00:00
|
|
|
<div id="homeMap">
|
2014-02-24 07:22:40 +00:00
|
|
|
<figure id="homeFigure">
|
|
|
|
<% @maps.each_with_index do |map, index| %>
|
|
|
|
<% first = index == 0 ? true : false %>
|
|
|
|
<%= render :partial => 'maps/homemap', :locals => { :map => map, :first => first } %>
|
2014-02-10 06:29:02 +00:00
|
|
|
<% end %>
|
2014-02-24 07:22:40 +00:00
|
|
|
</figure>
|
2014-02-10 06:29:02 +00:00
|
|
|
</div>
|
2013-01-08 04:03:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-02-04 00:13:21 +00:00
|
|
|
<div class="clearfloat"></div>
|
2013-01-08 04:03:41 +00:00
|
|
|
|
2014-02-24 19:35:48 +00:00
|
|
|
<div class="socialIcons">
|
|
|
|
<a class="twitter" href="https://twitter.com/metamapps" target="_blank"></a>
|
|
|
|
<a class="google" href="https://plus.google.com/u/0/communities/115060009262157699234" target="_blank"></a>
|
|
|
|
<a class="wordpress" href="http://blog.metamaps.cc" target="_blank"></a>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
|
2013-02-04 00:13:21 +00:00
|
|
|
</div>
|
2014-02-24 07:22:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
// flip through these words on the homepage
|
|
|
|
$('.swapWord').textillate({
|
|
|
|
in: { effect: 'fadeIn', delay: 20 },
|
|
|
|
out: { effect: 'fadeOut', sync: true },
|
|
|
|
loop: true,
|
|
|
|
minDisplayTime: 2000
|
|
|
|
});
|
|
|
|
|
2014-02-24 19:35:48 +00:00
|
|
|
$('#homeMapImage').hover(function() {
|
|
|
|
$(this).attr('src','/assets/metacodes75ms300x300.gif');
|
|
|
|
}, function() {
|
|
|
|
$(this).attr('src','/assets/metamap128x128.png');
|
|
|
|
});
|
2014-06-11 14:25:33 +00:00
|
|
|
|
2014-06-12 02:38:48 +00:00
|
|
|
$('#homeMap .desc').each(function() {
|
|
|
|
$(this).height($(this).height()).mCustomScrollbar({
|
|
|
|
mouseWheelPixels: 200
|
|
|
|
});
|
2014-06-11 14:25:33 +00:00
|
|
|
});
|
2014-02-24 19:35:48 +00:00
|
|
|
|
2014-02-24 07:22:40 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|