This is an automated email from the ASF dual-hosted git repository.
gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git
The following commit(s) were added to refs/heads/trunk by this push:
new 79ef8e7 add some pages, routes, and evolve the content
79ef8e7 is described below
commit 79ef8e7545e11680745e0a89430592201a85661d
Author: Greg Stein <[email protected]>
AuthorDate: Mon Sep 1 09:11:24 2025 -0500
add some pages, routes, and evolve the content
---
v3/server/pages.py | 30 ++++++++++++++++++++++++++++++
v3/server/templates/about.ezt | 21 +++++++++++++++++++++
v3/server/templates/footer.ezt | 2 +-
v3/server/templates/header.ezt | 14 +++++++-------
v3/server/templates/home.ezt | 12 ++++++++----
v3/server/templates/privacy.ezt | 21 +++++++++++++++++++++
v3/server/templates/profile.ezt | 21 +++++++++++++++++++++
v3/server/templates/settings.ezt | 21 +++++++++++++++++++++
8 files changed, 130 insertions(+), 12 deletions(-)
diff --git a/v3/server/pages.py b/v3/server/pages.py
index d787185..b794519 100644
--- a/v3/server/pages.py
+++ b/v3/server/pages.py
@@ -25,6 +25,36 @@ async def home_page():
return { }
[email protected]('/profile')
[email protected]_template('templates/profile.ezt')
+async def profile_page():
+ return { }
+
+
[email protected]('/settings')
[email protected]_template('templates/settings.ezt')
+async def settings_page():
+ return { }
+
+
[email protected]('/sign-out')
+async def sign_out():
+ ### clear the cookie?
+ return '', 204
+
+
[email protected]('/privacy')
[email protected]_template('templates/privacy.ezt')
+async def privacy_page():
+ return { }
+
+
[email protected]('/about')
[email protected]_template('templates/about.ezt')
+async def about_page():
+ return { }
+
+
# Route to serve static files (CSS and JS)
@APP.route('/static/<path:filename>')
async def serve_static(filename):
diff --git a/v3/server/templates/about.ezt b/v3/server/templates/about.ezt
new file mode 100644
index 0000000..6f6c68a
--- /dev/null
+++ b/v3/server/templates/about.ezt
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Apache STeVe: Profile</title>
+ <link href="/static/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9">
+</head>
+<body>
+ [include "header.ezt"]
+ <div class="container">
+ <h1>Profile</h1>
+ <p>
+ TBD
+ </p>
+ </div>
+
+ [include "footer.ezt"]
+ <script src="/static/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"></script>
+</body>
+</html>
diff --git a/v3/server/templates/footer.ezt b/v3/server/templates/footer.ezt
index 4851c7d..a7d5aa7 100644
--- a/v3/server/templates/footer.ezt
+++ b/v3/server/templates/footer.ezt
@@ -1,4 +1,4 @@
-<footer class="bg-light text-center text-lg-start py-3">
+<footer class="bg-light text-center text-lg-start py-3 my-5 border-top
border-2">
<div class="container">
<div class="row">
<div class="col-12">
diff --git a/v3/server/templates/header.ezt b/v3/server/templates/header.ezt
index a695aa7..80f52ae 100644
--- a/v3/server/templates/header.ezt
+++ b/v3/server/templates/header.ezt
@@ -1,9 +1,9 @@
-<nav class="navbar navbar-expand-lg navbar-light bg-light">
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container-fluid">
<!-- Left-aligned icon and title -->
- <a class="navbar-brand" href="#">
- <img src="https://via.placeholder.com/30" alt="Logo" width="30"
height="30" class="d-inline-block align-text-top">
- Voter App
+ <a class="navbar-brand" href="/">
+ <img src="https://www.apache.org/foundation/press/kit/feather.png"
alt="Logo" width="30" height="30" class="d-inline-block align-text-top">
+ Apache STeVe
</a>
<!-- Toggler for mobile view -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarContent" aria-controls="navbarContent"
aria-expanded="false" aria-label="Toggle navigation">
@@ -17,10 +17,10 @@
John Doe
</a>
<ul class="dropdown-menu dropdown-menu-end"
aria-labelledby="userDropdown">
- <li><a class="dropdown-item" href="#">Profile</a></li>
- <li><a class="dropdown-item" href="#">Settings</a></li>
+ <li><a class="dropdown-item"
href="/profile">Profile</a></li>
+ <li><a class="dropdown-item"
href="/settings">Settings</a></li>
<li><hr class="dropdown-divider"></li>
- <li><a class="dropdown-item" href="#">Sign Out</a></li>
+ <li><a class="dropdown-item" href="/sign-out">Sign
Out</a></li>
</ul>
</li>
</ul>
diff --git a/v3/server/templates/home.ezt b/v3/server/templates/home.ezt
index 57c9d36..c405974 100644
--- a/v3/server/templates/home.ezt
+++ b/v3/server/templates/home.ezt
@@ -4,14 +4,12 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apache STeVe</title>
- <!-- Bootstrap CSS -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9">
</head>
<body>
[include "header.ezt"]
<div class="container">
- <h1>Apache STeVe</h1>
- <p>
+ <p class="my-3">
Welcome! What are you here for? Select an option below.
</p>
<div class="row justify-content-center">
@@ -49,10 +47,16 @@
</a>
</div>
</div>
+
+ <p>
+ This site is being served using the
+ <a href="https://steve.apache.org/">Apache STeVe</a>
+ codebase, from the
+ <a href="https://www.apache.org/">Apache Software Foundation</a>.
+ </p>
</div>
[include "footer.ezt"]
- <!-- Bootstrap JS (bundle includes Popper) -->
<script src="/static/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"></script>
</body>
</html>
diff --git a/v3/server/templates/privacy.ezt b/v3/server/templates/privacy.ezt
new file mode 100644
index 0000000..6f6c68a
--- /dev/null
+++ b/v3/server/templates/privacy.ezt
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Apache STeVe: Profile</title>
+ <link href="/static/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9">
+</head>
+<body>
+ [include "header.ezt"]
+ <div class="container">
+ <h1>Profile</h1>
+ <p>
+ TBD
+ </p>
+ </div>
+
+ [include "footer.ezt"]
+ <script src="/static/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"></script>
+</body>
+</html>
diff --git a/v3/server/templates/profile.ezt b/v3/server/templates/profile.ezt
new file mode 100644
index 0000000..6f6c68a
--- /dev/null
+++ b/v3/server/templates/profile.ezt
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Apache STeVe: Profile</title>
+ <link href="/static/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9">
+</head>
+<body>
+ [include "header.ezt"]
+ <div class="container">
+ <h1>Profile</h1>
+ <p>
+ TBD
+ </p>
+ </div>
+
+ [include "footer.ezt"]
+ <script src="/static/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"></script>
+</body>
+</html>
diff --git a/v3/server/templates/settings.ezt b/v3/server/templates/settings.ezt
new file mode 100644
index 0000000..6f6c68a
--- /dev/null
+++ b/v3/server/templates/settings.ezt
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Apache STeVe: Profile</title>
+ <link href="/static/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9">
+</head>
+<body>
+ [include "header.ezt"]
+ <div class="container">
+ <h1>Profile</h1>
+ <p>
+ TBD
+ </p>
+ </div>
+
+ [include "footer.ezt"]
+ <script src="/static/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"></script>
+</body>
+</html>