Skip to content

Instantly share code, notes, and snippets.

@mager
Created August 23, 2014 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mager/41887941c89e76e9667d to your computer and use it in GitHub Desktop.
Save mager/41887941c89e76e9667d to your computer and use it in GitHub Desktop.
instaspot-03-index.html
<!doctype html>
<html ng-app="instaspot">
<head>
<title>instaspot</title>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700|Karma:400,700" rel="stylesheet" type="text/css" />
<style type="text/css">
body {padding:0;margin:0;font-weight:300;font-family:Lato;}
a {color:#39f;}
header, section {padding:5px 20px;}
header {background:#f99;padding-bottom:0;}
section {overflow:hidden;}
h1 {font-family:Karma;font-size:48px;margin:0;font-weight:700;}
h1 span {font-size:16px;font-weight:400;padding:0 0 0 10px;}
.spot {float:left;margin:0 15px 15px 0;}
.spot p {font-weight:400;}
</style>
</head>
<body>
<header>
<h1>instaspot<span> Find the most popular photos and videos on <a href="http://www.instagram.com">Instagram</a> (refresh for more)</span></h1>
</header>
<section ng-controller="ShowImages as images">
<div class="spot" ng-repeat="p in pics">
<p><a href="http://instagram.com/{{p.user.username}}" target="_blank">{{p.user.username}}</a></p>
<a href="{{p.link}}" target="_blank"><img ng-src="{{p.images.thumbnail.url}}" /></a>
</div>
</section>
<script src="bower_components/angular/angular.js"></script>
<script src="js/application.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment