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

Apply sticky footer using CSS-grid #24

Open
wants to merge 1 commit into
base: gh-pages
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
64 changes: 35 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@

<html>

<head>
<title>Random quotes</title>
<title>Random quotes</title>

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
</head>

<body class="hello">
<div class="container">
<center><h1 class="well"><img src="img/logo/logo.svg" height="10%" alt=""> Random Quote Machine</h1></center>
</br></br></br></br>

<center><div class="card">
<p id="quote" class="quote"></p>
<p id="author" class="author"></p>
</div></center>
<center><ul class="list-inline">
<li class="btn btn-info" id="get-quote"><i class="fa fa-quote-left"></i>Next Quote</li>
<li class="btn btn-success share-quote" id="share-quote"><i class="fa fa-share-square"></i>Share</li>
</ul>
<div class="container">
<center>
<h1 class="well"><img src="img/logo/logo.svg" height="10%" alt=""> Random Quote Machine</h1>
</center>
</br></br></br></br>


<ul class="list-inline" id="font">
<li><a href=""><i class="fa fa-facebook-square"></i></a></li>
<li><a href="https://github.com/Rupeshiya"><i class="fa fa-github"></i></a></li>
<li><a href=""><i class="fa fa-medium"></i></a></li>
<li><a href="https://www.linkedin.com/in/rupesh-jha-7aab6b155/"><i class="fa fa-linkedin-square"></i></a></li>
<li><a href="https://twitter.com/Rupeshkrj2"><i class="fa fa-twitter-square"></i></a></li>
</ul>
</center>
<center><footer class="me"><b>Coded by:-</b><i><b>rupeshiya</b></i></a></footer></center>
<script src="Random.js"></script>
</div>
<center>
<div class="card">
<p id="quote" class="quote"></p>
<p id="author" class="author"></p>
</div>
</center>
<center>
<ul class="list-inline">
<li class="btn btn-info" id="get-quote"><i class="fa fa-quote-left"></i>Next Quote</li>
<li class="btn btn-success share-quote" id="share-quote"><i class="fa fa-share-square"></i>Share</li>
</ul>
</center>
<script src="Random.js"></script>
</div>
<footer>
<ul class="list-inline" id="font">
<li><a href=""><i class="fa fa-facebook-square"></i></a></li>
<li><a href="https://github.com/Rupeshiya"><i class="fa fa-github"></i></a></li>
<li><a href=""><i class="fa fa-medium"></i></a></li>
<li><a href="https://www.linkedin.com/in/rupesh-jha-7aab6b155/"><i class="fa fa-linkedin-square"></i></a></li>
<li><a href="https://twitter.com/Rupeshkrj2"><i class="fa fa-twitter-square"></i></a></li>
</ul>
<span class="me"><b>Coded by:-</b><i><b>rupeshiya</b></i></span>
</footer>
</body>
</html>

</html>
100 changes: 58 additions & 42 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,50 +1,66 @@
html {
height: 100%;
}

.well{
font-family:Monotype Corsiva;
font-size:40px;
text-align:center;
body {
min-height: 100%;
display: grid;
grid-template-rows: 1fr auto;
}

well {
font-family: Monotype Corsiva;
font-size: 40px;
text-align: center;
}
body.hello{
background-color:#00E640;
background: url(http://eslhiphop.com/images/fcc/quotebg.jpg) no-repeat center center fixed;
body.hello {
background-color: #00e640;
background: url(http://eslhiphop.com/images/fcc/quotebg.jpg) no-repeat center
center fixed;
background-size: cover;
}

footer {
text-align: center;
width: 100%;
grid-row-start: 2;
grid-row-end: 3;
background-color: #ffffff;
-webkit-box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.75);
box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.75);
}
.card {
box-shadow: 0 4px 8px;
translation: 0.3s;
width: auto;
height: auto;
background-color: #90c695;
text-align: center;
opacity: 0.8;
border-radius: 15px;
}
.card:hover {
box-shadow: 0 8px 16px;
}
.me {
font-family: Monotype Corsiva;
font-size: 27px;
color: green;
}
.me:hover {
color: red;
}
#font {
font-size: 27px;
opacity: 0.7;
}
.fa:hover {
opacity: 1;
}
footer{
text-align:center;
}
.card{
box-shadow:0 4px 8px;
translation:0.3s;
width:auto;
height:auto;
background-color:#90C695;
text-align:center;
opacity:0.8;
border-radius:15px;
}
.card:hover{
box-shadow:0 8px 16px ;
}
.me{
font-family:Monotype Corsiva;
font-size:27px;
color:green;
}
.me:hover{
color:red;
}
#font{
font-size:27px;
opacity:0.7;
}
.fa:hover{
opacity:1.0;
}
.quote,.author{
padding:20px;
font-family:Monotype Corsiva;
font-size:27px;
.quote,
.author {
padding: 20px;
font-family: Monotype Corsiva;
font-size: 27px;
}