Skip to content
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.15.1
10 changes: 9 additions & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ class App < Sinatra::Base
['6:30pm', 'Meetup Presentation'],
]

# TODO: add a third day's schedule (@day_after)
@day_after = [
['7:00am', 'Wake up'],
['8:00am', 'Work Out'],
['9:00am', 'Inbox Zero'],
['11:00am', 'B-ball'],
['1:00pm', 'Lunch'],
['3:00pm', 'DC Time'],
['6:30pm', 'Meetup Presentation'],
]

erb :schedule
end
Expand Down
Binary file added public/images/learnco.ico
Binary file not shown.
13 changes: 11 additions & 2 deletions views/home.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<head>
<link rel="shortcut icon" href="images/learnco.ico" type="image/x-icon">
</head>
<h1>Startup Sprint!</h1>
<img src="images/learnco.jpg">
<img src="images/learnco.png">

<h3>Subscribe to the Stertup Sprint newsletter</h3>
<h3>Subscribe to the Startup Sprint newsletter</h3>
<% if @error == 'email' %>
<p style="color: red;">Please enter a valid email</p>
<% end %>
Expand All @@ -10,5 +13,11 @@
<input type="text" id="full-name" name="full_name" required>
<label for="email">Email</label>
<input type="text" id="email" name="email" required>
<label for="city">City</label>
<input type="text" id="city" name="city" required>
<input type="Submit">
</form>
<footer>
<p>Copyright VFA Fellows 2017</p>
<p>Credit: Electric Abs</>
</footer>
8 changes: 8 additions & 0 deletions views/schedule.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@
<% end %>
</ol>
</div>
<div class="column">
<h3>Day 3</h3>
<ol>
<% @day_after.each do |item| %>
<li><%= item.first %>: <%= item.last %></li>
<% end %>
</ol>
</div>
</div>