Created
November 29, 2017 01:31
-
-
Save sroy8091/a0b6d39d6822ad9dda79909ba068117e to your computer and use it in GitHub Desktop.
Template with responsive footer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav class="navbar navbar-default"> | |
<div class="container-fluid"> | |
<!-- Brand and toggle get grouped for better mobile display --> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand" href="/" style="font-size: x-large;">SnipCode</a> | |
</div> | |
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | |
<ul class="nav navbar-nav navbar-right"> | |
<li class="dropdown"> | |
<p class="btn dropdown-toggle" data-toggle="dropdown">Hi, Guest <span class="caret"></span></p> | |
<ul class="dropdown-menu"> | |
<li><a href="/login">Login</a></li> | |
<li><a href="/register">Register</a></li> | |
<li><a href="/search">Search</a></li> | |
</ul> | |
</li> | |
</ul> | |
</div> | |
<!-- /.navbar-collapse --> | |
</div> | |
<!-- /.container-fluid --> | |
</nav> | |
<div class="container"> | |
<div class="titl text-center"> | |
<h1>SNIPCODE</h1> | |
</div> | |
<div class="adj text-center"> | |
<p><span class='typed'></span> your <code/></p> | |
</div> | |
</div> | |
<style> | |
</style> | |
<footer> | |
<div class="col-xs-6"> | |
<h5 style="color: #29363c"><i class="foot fa fa-heart" aria-hidden="true"></i> Made with Love from <b>Sumit Roy<b></b></b></h5> | |
</div> | |
<div class="col-xs-6"> | |
<h5 class="text-right" style="color: #29363c"><i class="fa fa-bolt" aria-hidden="true"></i><b> Powered </b>by <i style="text-decoration: underline">Company</i> </h5> | |
</div> | |
</footer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( document ).ready(function() { | |
var source = [ | |
'back.gif', | |
'code.gif', | |
'codeback.gif', | |
'abs.gif', | |
'app.gif', | |
'minecraft.gif' | |
]; | |
var randomNumber = Math.floor(Math.random()*source.length); | |
function fn () { | |
} | |
$('body').css('background-image', 'url(/img/'+source[randomNumber]+')'); | |
$(function(){ | |
$(".typed").typed({ | |
strings: ["Save", "Share"], | |
// Optionally use an HTML element to grab strings from (must wrap each string in a <p>) | |
stringsElement: null, | |
// typing speed | |
typeSpeed: 100, | |
// time before typing starts | |
startDelay: 1200, | |
// backspacing speed | |
backSpeed: 50, | |
// time before backspacing | |
backDelay: 800, | |
// loop | |
loop: true, | |
// show cursor | |
showCursor: false, | |
// character for cursor | |
cursorChar: "|", | |
// attribute to type (null == text) | |
attr: null, | |
// either views or text | |
contentType: 'html', | |
// call when done callback function | |
callback: function() {}, | |
// starting callback function before each string | |
preStringTyped: function() {}, | |
//callback for every typed string | |
onStringTyped: function() {}, | |
// callback for reset | |
resetCallback: function() {} | |
}); | |
});$(document).ready(function() { | |
var source = [ | |
"back.gif", | |
"code.gif", | |
"codeback.gif", | |
"abs.gif", | |
"app.gif", | |
"minecraft.gif" | |
]; | |
var randomNumber = Math.floor(Math.random() * source.length); | |
function fn() {} | |
$("body").css("background-image", "url(/img/" + source[randomNumber] + ")"); | |
console.log("ready!"); | |
}); | |
console.log( "ready!" ); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://use.fontawesome.com/c024dd16cc.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/typed.js/1.1.1/typed.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
position: relative; | |
min-height: 100%; | |
} | |
body { | |
margin: 0 0 100px; | |
/* bottom = footer height */ | |
padding: 25px; | |
background-size: cover; | |
} | |
footer { | |
background-color: #607D8B; | |
position: absolute; | |
left: 0; | |
bottom: 0; | |
height: 60px; | |
width: 100%; | |
padding-top: 1vw; | |
overflow: hidden; | |
} | |
@font-face { | |
font-family: zilap; | |
src: url("../fonts/zilap.ttf"); | |
} | |
@font-face { | |
font-family: gnu; | |
src: url("https://github.com/sroy8091/snipcode/blob/master/app/src/static/fonts/Munro.ttf.ttf"); | |
} | |
.container { | |
color: #e8ebef; | |
} | |
.titl h1 { | |
color: #d0d0d0; | |
font-size: 14vw; | |
font-family: zilap; | |
} | |
.dropdown p { | |
padding-top: 1vw; | |
} | |
.adj { | |
color: #d0d0d0; | |
margin-top: 3vw; | |
font-size: 4vw; | |
font-family: gnu; | |
} | |
.typed::after { | |
content: '|'; | |
display: inline; | |
-webkit-animation: blink 0.7s infinite; | |
-moz-animation: blink 0.7s infinite; | |
animation: blink 0.7s infinite; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment