Skip to content

Commit

Permalink
Update templating
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Jan 2, 2024
1 parent 4a0e009 commit 2c40346
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 29 deletions.
14 changes: 14 additions & 0 deletions flask_app/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!--
SPDX-FileCopyrightText: 2024 Alec Delaney
SPDX-License-Identifier: MIT
-->

{% extends "layout/_layout.html" %}

{% block title %}Tekktrik Development{% endblock %}

{% block content %}
<div class="container">
<h1>Hello, world!</h1>
</div>
{% endblock %}
38 changes: 38 additions & 0 deletions flask_app/templates/layout/_header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!--
SPDX-FileCopyrightText: 2024 Alec Delaney
SPDX-License-Identifier: MIT
-->


<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#headerNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="headerNavbar">
<ul class="nav navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about">About</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">Projects</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="/projects/portfolio">Portfolio Website</a>
</li>
<li>
<a class="dropdown-item" href="/projects/menorah">CircuitPythonukiah</a>
</li>
<li>
<a class="dropdown-item" href="/projects/parallel64">Parallel64</a>
</li>
</ul>
</li>navbarNav
<li class="nav-item">
<a class="nav-link" href="/contact">Contact</a>
</li>
</ul>
</div>
</nav>
26 changes: 26 additions & 0 deletions flask_app/templates/layout/_layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
SPDX-FileCopyrightText: 2024 Alec Delaney
SPDX-License-Identifier: MIT
-->

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% block head %}
{% endblock %}
<title>{% block title %}{% endblock %}</title>
<!--<link rel="stylesheet" href="static/style.css">-->
{{ bootstrap.load_css() }}
</head>
<body>
{% include "layout/_header.html" %}
<div id="content">
{% block content %}
{% endblock %}
</div>

{{ bootstrap.load_js() }}
</body>
</html>
29 changes: 0 additions & 29 deletions flask_app/templates/menorah/settings.html

This file was deleted.

24 changes: 24 additions & 0 deletions flask_app/templates/projects/menorah/settings.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
SPDX-FileCopyrightText: 2023 Alec Delaney
SPDX-License-Identifier: MIT
-->

{% extends "layout/_layout.html" %}

{% from 'bootstrap5/form.html' import render_form %}

{% block title %}Menorah Settings{% endblock %}

{% block content %}
<div class="container">
<h1>Create Menorah Settings</h1>
<p>
Enter your zipcode to generate a settings file for your CircuitPythonukiah!
Please note that your zipcode <b>is not stored or retained</b>, and is used only
to fetch the correct candle lighting times.
</p>
<br/>
{{ render_form(input_form) }}
<br/>
</div>
{% endblock %}

0 comments on commit 2c40346

Please sign in to comment.