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

Fixed Footer Styling to stick it to the bottom #14

Merged
merged 5 commits into from Feb 7, 2023
Merged
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
44 changes: 32 additions & 12 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,27 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css" />
<link rel="icon" type="image/x-icon" href="https://raw.githubusercontent.com/developersIndia/assets/main/favicons/favicon.ico">
<style>
*{
margin:0;
}
html{
overflow-y: auto;

}
body{
display: flex;
flex-direction: column;
min-height: 100vh;
}
main{
flex-grow: 1;
padding-bottom: 10px;
}

footer{
margin-top: 5rem;
height: 2rem;
}
a {
color: #E4376D;
}
Expand All @@ -19,13 +40,11 @@
.grid-container.grid-repeat-5 {
grid-template-columns: repeat(5, 1fr);
}

</style>
<script src="https://unpkg.com/htmx.org@1.8.4"></script>
</head>

<body>

<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<!-- <a class="navbar-item" href="https://bulma.io">
Expand Down Expand Up @@ -69,16 +88,17 @@
</div>
</div>
</nav>

<div class="content is-vcentered has-text-centered">
<h1 class="title is-2 is-center">saadhan - resource hub by <a
href="https://reddit.com/r/developersIndia">r/developersIndia</a></h1>
</div>

<div class="container">
{% block content %}
{% endblock content %}
</div>
<main>
<div class="content is-vcentered has-text-centered">
<h1 class="title is-2 is-center">saadhan - resource hub by <a
href="https://reddit.com/r/developersIndia">r/developersIndia</a></h1>
</div>

<div class="container">
{% block content %}
{% endblock content %}
</div>
</main>
<footer class="footer">
<div class="content has-text-centered">
<p>
Expand Down