Skip to content

Commit

Permalink
Picture page template
Browse files Browse the repository at this point in the history
  • Loading branch information
luontola committed Feb 23, 2018
1 parent 5fb27c7 commit 3658f94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.rb
Expand Up @@ -15,5 +15,7 @@
end

get '/pictures/:picture.html' do
"Here will be a page for " + params['picture']
@title = "Picture"
@picture_url = params['picture'] + '.jpg'
erb :picture
end
4 changes: 4 additions & 0 deletions public/style.css
Expand Up @@ -47,3 +47,7 @@ h1 {
background-color: #FFFFFF;
box-shadow: 3px 5px 8px #BBBBBB;
}

.full-photo {
width: 100%;
}
3 changes: 3 additions & 0 deletions views/picture.erb
@@ -0,0 +1,3 @@
<img class="full-photo" src="<%= @picture_url %>">

<p><a href="pictures.html">Return to album</a></p>

0 comments on commit 3658f94

Please sign in to comment.