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

Bottom navbar #45

Merged
merged 1 commit into from
Sep 7, 2024
Merged
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
5 changes: 4 additions & 1 deletion static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ h2 {
}

#footer {
height: 3em;
background-color: hsla(38, 33%, 20%, 0.5);
}

#bottomBar,div.nav-item {
text-align: center;
}

ul#flashes {
}

Expand Down
17 changes: 13 additions & 4 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@
</head>
<body class="text-light">

<div class="container-fluid mx-0 px-0">

<header class="d-print-none">
{% include 'navbar.html' %}
<div class="row">
{% include 'navbar.html' %}
</div>
</header>

<main>
<div class="container p-2" id="flashes-div">
<div class="container">
<div class="row p-2" id="flashes-div">
{% if get_flashed_messages() %}
<ul id="flashes">
{% for category, msg in get_flashed_messages(with_categories=True) %}
Expand All @@ -49,7 +54,7 @@
{% endif %}
</div>

<div class="container w-print-100">
<div class="w-print-100">
<div class="row justify-content-center">
<div id="mainContentDiv" class="col-md-8">
{% block content %}
Expand All @@ -62,11 +67,15 @@
</div>
</div>
</div>
</div>
</main>

<footer class="d-print-none">
{% include 'footer.html' %}
<div class="row align-items-end">
{% include 'footer.html' %}
</div>
</footer>
</div>

<!-- Bootstrap JS with Popper -->
<script src="{{ url_for('static', filename='bootstrap.bundle.min.js') }}"
Expand Down
60 changes: 29 additions & 31 deletions templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
<!-- https://getbootstrap.com/docs/4.0/components/navbar/ -->
<nav id="footer"
class="navbar navbar-expand-sm fixed-bottom navbar-dark justify-content-between">
<div class="container">
<div class="collapse navbar-collapse" id="bottomBar">
<div class="collapse navbar-collapse"></div>
{# <span class="navbar-text font-weight-bolder">External links:</span>#}
<ul class="navbar-nav">
<li class="nav-item px-3">
<a class="nav-link" href="https://stclementscambridge.co.uk/">
St Clement's website
</a>
</li>
<li class="nav-item px-3">
<a class="nav-link" href="https://hymnary.org/hymnal/NEH1985">
NEH
</a>
</li>
<li class="nav-item px-3">
<a class="nav-link" href="https://www.churchofengland.org/prayer-and-worship/worship-texts-and-resources/book-common-prayer">
BCP
</a>
</li>
<li class="nav-item px-3">
<a class="nav-link" href="{{ url_for('acknowledgements_view') }}">Acknowledgements</a>
</li>
<li class="nav-item px-3">
<a class="nav-link"
href="https://github.com/jftsang/pypew">GitHub</a>
</li>
</ul>
<div class="collapse navbar-collapse"></div>
class="navbar fixed-bottom navbar-dark">
<div id="bottomBar" class="navbar-nav">
<div class="row justify-content-center">
<div class="col nav-item px-3">
<a class="nav-link text-nowrap"
href="https://stclementscambridge.co.uk/">
St Clement's website
</a>
</div>
<div class="col nav-item px-3">
<a class="nav-link text-nowrap"
href="https://hymnary.org/hymnal/NEH1985">
NEH
</a>
</div>
<div class="col nav-item px-3">
<a class="nav-link text-nowrap"
href="https://www.churchofengland.org/prayer-and-worship/worship-texts-and-resources/book-common-prayer">
BCP
</a>
</div>
<div class="col nav-item px-3">
<a class="nav-link text-nowrap"
href="{{ url_for('acknowledgements_view') }}">Acknowledgements</a>
</div>
<div class="col nav-item px-3">
<a class="nav-link text-nowrap"
href="https://github.com/jftsang/pypew">GitHub</a>
</div>
</div>

</div>
</nav>
Loading