diff --git a/Gemfile b/Gemfile old mode 100644 new mode 100755 diff --git a/Gemfile.lock b/Gemfile.lock old mode 100644 new mode 100755 diff --git a/Procfile b/Procfile old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/Rakefile b/Rakefile old mode 100644 new mode 100755 diff --git a/app.rb b/app.rb old mode 100644 new mode 100755 index 68e111c..3d089b8 --- a/app.rb +++ b/app.rb @@ -3,6 +3,7 @@ class App < Sinatra::Base get '/' do @error = params['error'] + @full_name = params['full_name'] erb :home end @@ -11,7 +12,7 @@ class App < Sinatra::Base @email = params[:email] if !@email.match(/.+@.+/) - redirect to('/?error=email') + redirect to('/?error=email&full_name='+@full_name) end erb :subscribe diff --git a/config.ru b/config.ru old mode 100644 new mode 100755 diff --git a/config/environment.rb b/config/environment.rb old mode 100644 new mode 100755 diff --git a/models/.keep b/models/.keep old mode 100644 new mode 100755 diff --git a/models/sample_model.rb b/models/sample_model.rb old mode 100644 new mode 100755 diff --git a/public/images/.keep b/public/images/.keep old mode 100644 new mode 100755 diff --git a/public/favicon.ico b/public/images/favicon.ico old mode 100644 new mode 100755 similarity index 100% rename from public/favicon.ico rename to public/images/favicon.ico diff --git a/public/images/learnco.png b/public/images/learnco.png old mode 100644 new mode 100755 diff --git a/public/javascripts/.keep b/public/javascripts/.keep old mode 100644 new mode 100755 diff --git a/public/stylesheets/.keep b/public/stylesheets/.keep old mode 100644 new mode 100755 diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css old mode 100644 new mode 100755 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb old mode 100644 new mode 100755 diff --git a/views/.keep b/views/.keep old mode 100644 new mode 100755 diff --git a/views/home.erb b/views/home.erb index 19d8743..e668b48 100644 --- a/views/home.erb +++ b/views/home.erb @@ -1,14 +1,22 @@

Startup Sprint!

- + -

Subscribe to the Stertup Sprint newsletter

+

Subscribe to the Startup Sprint newsletter

<% if @error == 'email' %> -

Please enter a valid email

-<% end %> -
- - - - - -
+

<%= @full_name %>, please enter a valid email

+
+ + required> + + + +
+<%else%> +
+ + + + + +
+<% end %> \ No newline at end of file diff --git a/views/layout.erb b/views/layout.erb old mode 100644 new mode 100755 diff --git a/views/reddit.erb b/views/reddit.erb old mode 100644 new mode 100755 diff --git a/views/schedule.erb b/views/schedule.erb old mode 100644 new mode 100755 diff --git a/views/subscribe.erb b/views/subscribe.erb old mode 100644 new mode 100755