From 1cc8518dfdcc8fedb6cacfc03595999ca69ddb42 Mon Sep 17 00:00:00 2001 From: LeeAnn Kinney Date: Sat, 21 Mar 2015 15:02:22 -0400 Subject: [PATCH 1/2] fixed button centering issue on mobile using foundation class "text-center" --- app/assets/stylesheets/index.css.scss | 2 +- app/views/home/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/index.css.scss b/app/assets/stylesheets/index.css.scss index 019b2a97..338a87b3 100644 --- a/app/assets/stylesheets/index.css.scss +++ b/app/assets/stylesheets/index.css.scss @@ -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; diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 863c6f7a..9c718cc9 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -30,7 +30,7 @@

We believe <%= link_to 'coders can be superheroes', "http://devslovebacon.com/conferences/bacon-2013/talks/developers-are-superheroes-and-so-can-you" %>.
Join us to find open source, social impact projects that improve the world.

-
+
<% if user_signed_in? %> <%= link_to '  Start Coding Now'.html_safe, projects_path, :class => "large radius index button centered home-signup" %> <% else %> From c67400cb5ad1828b94d800b67cbef38392953931 Mon Sep 17 00:00:00 2001 From: LeeAnn Kinney Date: Sat, 21 Mar 2015 15:20:51 -0400 Subject: [PATCH 2/2] removed extra closing div --- app/views/events/index.html.erb | 68 ++++++++++++++++----------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 2db8eccb..cfeced42 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -1,37 +1,37 @@
-
-

Events

- - <% if @upcoming_events.present? %> -

Join us online or in-person at these upcoming events to build open source and change the world:

- -
- <% @upcoming_events.each do |event| %> -
-
<%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %>
-
- - <% end %> - - <% if @past_events.present? %> -

Past Events

- - <% @past_events.each do |event| %> -
-
<%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %>
-
- - <% end %> - <% end %> -
- <% else %> -

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.

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

Events

+ + <% if @upcoming_events.present? %> +

Join us online or in-person at these upcoming events to build open source and change the world:

+ +
+ <% @upcoming_events.each do |event| %> +
+
<%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %>
+
+ + <% end %> + + <% if @past_events.present? %> +

Past Events

+ + <% @past_events.each do |event| %> +
+
<%= link_to event.name + " - " + event.start_date.strftime("%B %d, %Y"), event_path(event) %>
+
+ + <% end %> + <% end %> + + <% else %> +

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.

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