Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

2column #17

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
5 changes: 1 addition & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,5 @@ DEPENDENCIES
sinatra
thin

RUBY VERSION
ruby 2.2.0p0

BUNDLED WITH
1.12.5
1.14.6
8 changes: 8 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ class App < Sinatra::Base
erb :home
end

get '/rainbow' do
erb :rainbow
end

get '/youtube' do
erb :youtube
end

post '/subscribe' do
@full_name = params[:full_name]
@email = params[:email]
Expand Down
5 changes: 4 additions & 1 deletion public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Base styles: opinionated defaults
========================================================================== */


html {
color: #222;
font-size: 1em;
Expand Down Expand Up @@ -88,7 +89,9 @@ textarea {
Author's custom styles
========================================================================== */


.column {
float: left;
}



Expand Down
4 changes: 2 additions & 2 deletions views/home.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>Startup Sprint!</h1>
<img src="images/learnco.jpg">
<img src="/public/images/learnco.png" alt="learnco">

<h3>Subscribe to the Stertup Sprint newsletter</h3>
<h3>Subscribe to the Startup Sprint</h3>
<% if @error == 'email' %>
<p style="color: red;">Please enter a valid email</p>
<% end %>
Expand Down
Empty file added views/rainbow.erb
Empty file.
1 change: 1 addition & 0 deletions views/youtube.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<iframe width="560" height="315" src="https://www.youtube.com/embed/j5gCqyrf5fY" frameborder="0" allowfullscreen></iframe>