Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/assets/stylesheets/index.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body[data-controller="home"][data-action="index"] {
@include background-image(linear-gradient(bottom top, lighten(#8e4487, 10%), lighten(#653060, 10%)));
}

margin-left: 75px;
margin-left: 20px;

.fi-social-github {
font-size: 1.8em;
Expand Down
68 changes: 34 additions & 34 deletions app/views/events/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
<div class="row">
<div>
<h4>Events</h4>

<% if @upcoming_events.present? %>
<p>Join us online or in-person at these upcoming events to build open source and change the world:</p>

<div class="events">
<% @upcoming_events.each do |event| %>
<div class="large-10 centered">
<h5><%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %></h5>
</div>

<% end %>

<% if @past_events.present? %>
<h4 class="top-25">Past Events</h4>

<% @past_events.each do |event| %>
<div class="large-10 centered">
<h5><%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %></h5>
</div>

<% end %>
<% end %>
</div>
<% else %>
<p>Oops! We can't seem to find any events. <%= link_to "Jump into a project", projects_path %>, or <%= link_to "reach out to an organization", organizations_path %> directly.</p>
<% end %>
</div>
</div>

<% if current_user && @current_event && !current_user.events.include?(@current_event) %>
<%= render "check_in_prompt" %>
<% end %>
<div>
<h4>Events</h4>

<% if @upcoming_events.present? %>
<p>Join us online or in-person at these upcoming events to build open source and change the world:</p>

<div class="events">
<% @upcoming_events.each do |event| %>
<div class="large-10 centered">
<h5><%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %></h5>
</div>

<% end %>

<% if @past_events.present? %>
<h4 class="top-25">Past Events</h4>

<% @past_events.each do |event| %>
<div class="large-10 centered">
<h5><%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %></h5>
</div>

<% end %>
<% end %>

<% else %>
<p>Oops! We can't seem to find any events. <%= link_to "Jump into a project", projects_path %>, or <%= link_to "reach out to an organization", organizations_path %> directly.</p>
<% end %>
</div>
</div>

<% if current_user && @current_event && !current_user.events.include?(@current_event) %>
<%= render "check_in_prompt" %>
<% end %>
</div>

2 changes: 1 addition & 1 deletion app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<p>We believe <%= link_to 'coders can be superheroes', "http://devslovebacon.com/conferences/bacon-2013/talks/developers-are-superheroes-and-so-can-you" %>.</br>
Join us to find open source, social impact projects that improve the world.</p>
</div>
<div id="sign_up" class="large-6 columns">
<div id="sign_up" class="large-6 columns text-center">
<% if user_signed_in? %>
<%= link_to '<i class="fi-laptop"></i> &nbsp;Start Coding Now'.html_safe, projects_path, :class => "large radius index button centered home-signup" %>
<% else %>
Expand Down