Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files added #14

Open
wants to merge 2 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
95 changes: 95 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
GEM
remote: https://rubygems.org/
specs:
activemodel (4.2.11.3)
activesupport (= 4.2.11.3)
builder (~> 3.1)
activerecord (4.2.11.3)
activemodel (= 4.2.11.3)
activesupport (= 4.2.11.3)
arel (~> 6.0)
activesupport (4.2.11.3)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.4)
backports (3.18.1)
bond (0.5.1)
builder (3.2.4)
coderay (1.1.3)
concurrent-ruby (1.1.7)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
method_source (1.0.0)
minitest (5.14.1)
multi_json (1.15.0)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
nio4r (2.5.2)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
puma (4.3.5)
nio4r (~> 2.0)
rack (2.2.3)
rack-protection (2.0.8.1)
rack
rack-test (0.6.3)
rack (>= 1.0)
rake (13.0.1)
ripl (0.7.1)
bond (~> 0.5.1)
ripl-multi_line (0.3.1)
ripl (>= 0.3.6)
ripl-rack (0.2.1)
rack (>= 1.0)
rack-test (~> 0.6.2)
ripl (>= 0.7.0)
ruby2_keywords (0.0.2)
shotgun (0.9.2)
rack (>= 1.0)
sinatra (2.0.8.1)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.8.1)
tilt (~> 2.0)
sinatra-activerecord (2.0.18)
activerecord (>= 4.1)
sinatra (>= 1.0)
sinatra-contrib (2.0.8.1)
backports (>= 2.8.2)
multi_json
mustermann (~> 1.0)
rack-protection (= 2.0.8.1)
sinatra (= 2.0.8.1)
tilt (~> 2.0)
sqlite3 (1.3.13)
thread_safe (0.3.6)
tilt (2.0.10)
tux (0.3.0)
ripl (>= 0.3.5)
ripl-multi_line (>= 0.2.4)
ripl-rack (>= 0.2.0)
sinatra (>= 1.2.1)
tzinfo (1.2.7)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
activerecord (~> 4.2.0)
activesupport
pry
puma
rake
shotgun
sinatra
sinatra-activerecord
sinatra-contrib
sqlite3 (~> 1.3.6)
tux

BUNDLED WITH
2.1.4
3 changes: 3 additions & 0 deletions app/actions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
get '/' do
File.read(File.join('app/views', 'index.html'))
end
83 changes: 83 additions & 0 deletions app/views/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="../../../stylesheets/normalize.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,700italic,700,300">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="../../../stylesheets/lib.css">
<link rel="stylesheet" href="../../../stylesheets/app.css">
<title>Spain</title>
</head>
<body>
<header>
<h1>I love travelling</h1>
</header>
<main role="main">
<article class="finstagram-post">
<div>
<div class="user-info">
<img src="http://naserca.com/images/sharky_j.jpg" alt="sharky_j">
<h2>sharky_j</h2>
<h3>15 minutes ago</h3>
</div>
<a class="photo" href="#">
<img src="http://naserca.com/images/shark.png" alt="post from sharky_j">
</a>
<div class="actions">
0 likes
<span class="comment-count">0 comments</span>
</div>
<ul class="comments">
<li>
<p>
sharky_j: Out for the long weekend... too embarrassed to show y'all the beach bod!
</p>
</li>
</ul>
</article>
<article class class="finstagram-post">>
<div class="user-info">
<img src="http://naserca.com/images/kirk_whalum.jpg" alt="kirk_whalum">
<h2>kirk_whalum</h2>
<h3>1 hour ago</h3>
</div>
<a class="photo" href="#">
<img src="http://naserca.com/images/whale.jpg" alt="finstagram post from kirk_whalum">
</a>
<div class="actions">
0 likes
<span class="comment-count">0 comments</span>
</div>
<ul class="comments">
<li>
<p>
kirk_whalum: #weekendvibes
</p>
</li>
</ul>
</article>
<article class="finstagram-post">
<div class="user-info">
<img src="http://naserca.com/images/marlin_peppa.jpg" alt="marlin_peppa">
<h2>marlin_peppa</h2>
<h3>3 hours ago</h3>
</div>
<a class="photo" href="#">
<img src="http://naserca.com/images/marlin.jpg" alt="finstagram post from marlin_peppa">
</a>
<div class="actions">
0 likes
<span class="comment-count">0 comments</span>
</div>
<ul class="comments">
<li>
<p>
marlin_peppa: lunchtime! ;)
</p>
</li>
</ul>
</article>

</main>
</body>
</html>
23 changes: 23 additions & 0 deletions public/stylesheets/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
header {
background-color: white;
padding: 16px;
}

.finstagram-post {
margin-bottom: 48px;
}

.finstagram-post user-info img {
border-radius: 50%
}

body {
font-family: 'Roboto Condensed', sans-serif;
}

a.photo {
transition: padding 0.5s;
}
a.photo:hover{
padding: 10px;
}