rss-reader/templates/index.html.tera
2025-02-03 17:50:14 -08:00

64 lines
2.4 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RSS Reader</title>
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body class="with-sidebar">
<header class="top-bar">
<nav class="top-bar-buttons">
<button class="add-feed-button" id="addFeedButton">Add Feed</button>
</nav>
<h1 class="top-bar-title">RSS Reader</h1>
<div class="user-menu">
<button class="user-menu-button" id="userMenuButton">
<span class="user-menu-icon">☰</span>
</button>
<div class="user-menu-dropdown" id="userMenuDropdown">
<button class="user-menu-item" id="logoutButton">Logout</button>
</div>
</div>
</header>
<!-- Add Feed Modal -->
<dialog class="modal" id="addFeedModal">
<article class="modal-content">
<header class="modal-header">
<h2>Add RSS Feed</h2>
</header>
<section class="modal-body">
<form id="addFeedForm">
<div class="form-group">
<label for="feedUrl">Feed URL</label>
<input type="url" id="feedUrl" name="url" required
placeholder="https://example.com/feed.xml">
</div>
<div class="error-message" id="feedErrorMessage" style="display: none; color: red; margin-bottom: 10px;"></div>
<div class="loading-message" id="loadingMessage" style="display: none; color: #666; margin-bottom: 10px; text-align: center;">
<div class="spinner"></div>
<div>Loading feed information...</div>
</div>
</form>
</section>
<footer class="modal-footer">
<button type="button" class="btn-secondary" id="cancelAddFeed">Cancel</button>
<button type="button" class="btn-primary" id="confirmAddFeed">Add Feed</button>
</footer>
</article>
</dialog>
<aside class="sidebar">
<h2>Feeds</h2>
<nav id="feedList">
</nav>
</aside>
<main class="main-content">
</main>
<script src="/static/js/app.js"></script>
</body>
</html>