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 5bf020a basic skeleton for landing page
5bf020a is described below
commit 5bf020aec01347ec834f16e7eae4fa3cdb78bf04
Author: Greg Stein <[email protected]>
AuthorDate: Mon Sep 1 08:24:25 2025 -0500
basic skeleton for landing page
---
v3/server/templates/footer.ezt | 14 ++++++++++++++
v3/server/templates/header.ezt | 29 +++++++++++++++++++++++++++++
v3/server/templates/home.ezt | 42 ++++++++++++++++++++++++++++++++++++++++--
3 files changed, 83 insertions(+), 2 deletions(-)
diff --git a/v3/server/templates/footer.ezt b/v3/server/templates/footer.ezt
new file mode 100644
index 0000000..4851c7d
--- /dev/null
+++ b/v3/server/templates/footer.ezt
@@ -0,0 +1,14 @@
+<footer class="bg-light text-center text-lg-start py-3">
+ <div class="container">
+ <div class="row">
+ <div class="col-12">
+ <p class="text-muted mb-2">
+ © 2025 Apache Software Foundation. All rights
reserved.
+ <a href="https://www.apache.org/licenses/LICENSE-2.0"
class="text-muted mx-2">License</a> |
+ <a href="/privacy" class="text-muted mx-2">Privacy
Policy</a> |
+ <a href="/about" class="text-muted mx-2">Apache STeVe
v1.0.0</a>
+ </p>
+ </div>
+ </div>
+ </div>
+</footer>
diff --git a/v3/server/templates/header.ezt b/v3/server/templates/header.ezt
new file mode 100644
index 0000000..a695aa7
--- /dev/null
+++ b/v3/server/templates/header.ezt
@@ -0,0 +1,29 @@
+<nav class="navbar navbar-expand-lg navbar-light bg-light">
+ <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>
+ <!-- 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">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <!-- Right-aligned user name and dropdown -->
+ <div class="collapse navbar-collapse" id="navbarContent">
+ <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
+ <li class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle" href="#"
id="userDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
+ 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><hr class="dropdown-divider"></li>
+ <li><a class="dropdown-item" href="#">Sign Out</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>
+ </div>
+</nav>
diff --git a/v3/server/templates/home.ezt b/v3/server/templates/home.ezt
index b949a68..57c9d36 100644
--- a/v3/server/templates/home.ezt
+++ b/v3/server/templates/home.ezt
@@ -8,12 +8,50 @@
<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>This is a basic example of a web page using Bootstrap.</p>
- <button class="btn btn-primary">Click Me</button>
+ <p>
+ Welcome! What are you here for? Select an option below.
+ </p>
+ <div class="row justify-content-center">
+ <div class="col-md-5 mb-4">
+ <a href="/voter" class="text-decoration-none">
+ <div class="card h-100">
+ <div class="card-body">
+ <h5 class="card-title">I'm here to vote!</h5>
+ <p class="card-text">
+ There are vote(s) occurring now, and I
+ want to see them and register my vote.
+ </p>
+ </div>
+ <div class="card-footer text-muted">
+ <small>Requires sign-in</small>
+ </div>
+ </div>
+ </a>
+ </div>
+
+ <div class="col-md-5 mb-4">
+ <a href="/admin" class="text-decoration-none">
+ <div class="card h-100">
+ <div class="card-body">
+ <h5 class="card-title">Administrating a Vote</h5>
+ <p class="card-text">
+ I am administering a vote, and/or I
+ want to begin a vote for my community.
+ </p>
+ </div>
+ <div class="card-footer text-muted">
+ <small>Requires sign-in</small>
+ </div>
+ </div>
+ </a>
+ </div>
+ </div>
</div>
+ [include "footer.ezt"]
<!-- Bootstrap JS (bundle includes Popper) -->
<script src="/static/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"></script>
</body>