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

Rainbows are evil #15

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
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
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 '/youtube' do
erb :youtube
end

get '/rainbow' do
erb :rainbow
end

post '/subscribe' do
@full_name = params[:full_name]
@email = params[:email]
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="images/learnco.jpg" 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
41 changes: 41 additions & 0 deletions views/rainbow.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)">
<html xmlns="[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
html, body {margin:0;padding:0}
#outer {width:100%;height:100pt;background:red}
#col1, #col2, #col3, #col4, #col5, #col6, #col7 {
float:left;
width:100%;
background:#FF0000;
height:100pt;
}
#col2{background: #FF8000;}
#col3{background: #FFFF00;}
#col4{background: #01DF01;}
#col5{background: #0101DF;}
#col6{background: #3104B4;}
#col7{background: #A901DB;}
.clearer {
height:1px;
overflow:hidden;
clear:both;
margin-top:-1px;
}
</style>
</head>
<body>
<div id="outer">
<div id="col1"></div>
<div id="col2"></div>
<div id="col3"></div>
<div id="col4"></div>
<div id="col5"></div>
<div id="col6"></div>
<div id="col7"></div>
<div id="clearer"></div>
</div>
</body>
</html>
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>