<html>
<head>
<title>Demo</title>
<link rel="stylesheet" type="text/css" media="all" href="css/main.css">
</head>
<body>
<div id="wrapper">
<header class="top-bar">
<div class="logo-wrapper">
<img src="https://www.google.com/images/srpr/logo11w.png" alt="Piggybank" class="logo">
</div>
<nav class="header-nav-wrapper">
<ul class="header-nav-list">
<li class="header-nav-list-item"><a class="header-nav-list-item-link" href="/features">Features</a></li>
<li class="header-nav-list-item"><a class="header-nav-list-item-link" href="/blog">Blog</a></li>
<li class="header-nav-list-item"><a class="header-nav-list-item-link" href="/about">About</a></li>
<li class="header-nav-list-item"><a class="header-nav-list-item-link" href="/contact">Contact</a></li>
</ul>
</nav>
</header>
<div class="splash-image big-splash">
<div class="video-background">
<video autoplay muted loop>
<source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
</video>
</div>
<div class="big-splash-left">
<h1>Here is some text hi</h1>
<p>
More and more text would go here describing the app
</p>
<form>
<input type="email" name="email" placeholder="you@youremail.com">
<button type="button" name="submit">Sign up</button>
</form>
</div>
<div class="big-splash-right">
<img src="images/iphone6plus.png">
</div>
</div>
<footer>
FOOTER STUFF
</footer>
</div>
</body>
</html>
body {
margin: 0;
padding: 0;
font-family: "gotham rounded", helvetica, sans-serif;
}
nav ul {
list-style: none;
}
.top-bar {
display: flex;
height: 85px;
position: absolute;
width: 100%;
}
.top-bar .logo {
width: 240px;
margin: 20px;
}
.top-bar .logo-wrapper {
flex-grow: 1;
}
.header-nav-wrapper {
flex-shrink: 0;
}
.header-nav-list {
display: flex;
margin: 0;
height: 85px;
}
.header-nav-list-item {
align-self: center;
flex-shrink: 0;
}
.header-nav-list-item-link {
padding: 0 15px;
color: #554F4E;
text-decoration: none;
}
.big-splash {
color: #fff;
font-size: 1.2em;
padding: 80px 20px 0;
display: flex;
height: 505px;
overflow: hidden;
outline: 5px solid red;
}
.big-splash-left {
flex-shrink: 1;
}
.big-splash-right {
padding: 50px 10px 0 50px;
flex-shrink: 0;
}
.big-splash .video-background {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
z-index: -100;
width: 100%;
}
.big-splash video {
position: fixed;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
background: url(some.jpg) no-repeat;
background-size: cover;
}
Output
This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account
Dismiss xKeyboard 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. |