<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Item Recommendation">
<meta name="author" content="Your Name">
<title>Item Recommendation Final</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<header class="top-header">
<nav class="top-nav">
<a href="#">Home</a>
<a href="#">Contact</a>
<a href="#">About</a>
</nav>
<span id="welcome-msg"></span>
<i id="avatar" class="avatar fa fa-user fa-2x"></i>
</header>
<div class="container">
<header>
<p>
<span>Item</span>
<br /> Recommendation
</p>
</header>
<section class="main-section">
<aside id="item-nav">
<div class="nav-icon">
<i class="fa fa-sitemap fa-2x"></i>
</div>
<nav class="main-nav">
<a href="#" id="nearby-btn" class="main-nav-btn active">
<i class="fa fa-map-marker"></i> Nearby
</a>
<a href="#" id="fav-btn" class="main-nav-btn">
<i class="fa fa-heart"></i> My Favorites
</a>
<a href="#" id="recommend-btn" class="main-nav-btn">
<i class="fa fa-thumbs-up"></i> Recommendation
</a>
</nav>
</aside>
<ul id="item-list">
<li class="item">
<img alt="item image" src="https://s3-media3.fl.yelpcdn.com/bphoto/EmBj4qlyQaGd9Q4oXEhEeQ/ms.jpg" />
<div>
<a class="item-name" href="#">Item</a>
<p class="item-category">Vegetarian</p>
<div class="stars">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
</div>
<p class="item-address">699 Calderon Ave<br/>Mountain View<br/> CA</p>
<div class="fav-link">
<i class="fa fa-heart"></i>
</div>
</li>
</ul>
</section>
</div>
<footer>
<p class="title">What We Do</p>
<p>"Help you find the best place around."</p>
<ul>
<li>
<p><i class="fa fa-map-o fa-2x"></i></p>
<p>LaiOffer office, CA</p>
</li>
<li>
<p><i class="fa fa-envelope-o fa-2x"></i></p>
<p>info@laioffer.com</p>
</li>
<li>
<p><i class="fa fa-phone fa-2x"></i></p>
<p>+1 800 123 456</p>
</li>
</ul>
</footer>
<script src="https://rawgit.com/emn178/js-md5/master/build/md5.min.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: #434343;
color: #FFFFFF;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
font-size: 0.9em;
}
ul {
list-style: none;
}
/**
* top header
*/
.top-header {
align-items: center;
background: #DF574B;
box-shadow: 0px 2px 10px #333333;
display: flex;
height: 60px;
position: fixed;
top: 0;
width: 100%;
z-index: 1;
}
.avatar {
background: #FFFFFF;
border-radius: 50%;
color: #333C4D;
height: 40px;
margin-right: 20px;
padding-left: 9px;
padding-top: 5px;
width: 40px;
}
/**
* top navigation
*/
.top-nav {
flex: 1;
}
.top-nav a {
color: #F9F9F9;
font-weight: 400;
margin-left: 20px;
text-decoration: none;
}
#welcome-msg {
border-right: 1px solid #FFFFFF;
padding-right: 10px;
}
/**
* main container
*/
.container {
margin: 60px auto;
max-width: 1000px;
min-width: 600px;
}
/**
* main header
*/
.container>header {
align-items: center;
background:
url('http://folkartcarsi.com/img/4.jpg')
no-repeat 50% 50%;
background-size: 100%;
display: flex;
height: 250px;
}
.container>header p {
border-left: 1px solid #FFFFFF;
font-weight: 400;
font-size: 2em;
line-height: 1em;
margin-left: 220px;
padding-left: 5px;
}
.container>header span {
color: #FBAF41;
}
/**
* main section
*/
.main-section {
background: #F3BB43;
}
/**
* aside
*/
#item-nav {
float: left;
width: 180px;
}
.nav-icon {
color: #624630;
padding: 20px;
text-align: center;
}
/**
* main navigation
*/
.main-nav-btn {
background: none;
border-top: 1px solid #FFFFFF;
color: #FFFFFF;
display: block;
padding: 20px;
text-align: left;
text-decoration: none;
}
.main-nav-btn:hover {
background: rgba(255, 255, 255, 0.8);
color: #624630;
}
.main-nav-btn.active {
background: #F2EBD9;
color: #624630;
}
.main-nav-btn i {
width: 20px;
}
/**
* item list
*/
#item-list {
background: #F2EBD9;
color: #624630;
list-style: none;
margin-left: 180px;
min-height: 250px;
padding: 10px;
}
#item-list .notice {
font-size: 16px;
padding: 60px;
text-align: center;
}
/**
* item
*/
.item {
align-items: center;
border-bottom: 1px solid #FFFFFF;
display: flex;
margin: 10px;
padding: 15px;
transition: background-color 100ms linear;
}
.item:last-child {
border: none;
}
.item:hover {
background: rgba(255, 255, 255, 0.8);
transition: background-color 100ms linear;
}
.item img {
border: 1px solid #FFFFFF;
height: 80px;
width: 80px;
}
.item>div:first-of-type {
flex: 1;
margin-left: 10px;
margin-right: 10px;
}
.item-name {
color: #624630;
font-weight: 400;
text-decoration: none;
}
.item-name:hover {
text-decoration: underline;
}
.item-address {
line-height: 20px;
padding-right: 20px;
text-align: right;
}
.stars {
align-items: center;
display: flex;
padding-top: 10px;
}
.fav-link {
border-left: 1px solid #FFFFFF;
cursor: pointer;
line-height: 60px;
text-align: center;
width: 60px;
}
.fav-link:hover {
color: #F13F3F;
}
/**
* footer section
*/
footer {
background: #434343;
font-size: 0.8em;
height: 200px;
position: relative;
}
footer p {
text-align: center;
}
footer p.title {
font-size: 1.2em;
padding: 15px;
}
footer ul {
align-items: center;
display: flex;
padding: 20px;
}
footer ul li {
flex: 1;
}
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |