rss-reader/templates/index.html.tera
2025-02-06 02:17:57 -08:00

73 lines
2.9 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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body class="with-sidebar">
<!-- 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" id="sidebar">
<div class="sidebar-header">
<h2>Feeds</h2>
<button class="sidebar-close" id="sidebarClose">
<i class="fas fa-times"></i>
</button>
</div>
<nav id="feedList">
</nav>
</aside>
<div class="main-content-area">
<header class="top-bar">
<button class="hamburger-menu" id="hamburgerMenu">
<i class="fas fa-bars"></i>
</button>
<button class="add-feed-button" id="addFeedButton" title="Add Feed">
<i class="fas fa-plus"></i>
</button>
<h1 class="top-bar-title">RSS Reader</h1>
<div class="user-menu">
<button class="user-menu-button" id="userMenuButton">
<span class="user-menu-icon"><i class="fas fa-user"></i></span>
</button>
<div class="user-menu-dropdown" id="userMenuDropdown">
<button class="user-menu-item" id="logoutButton">Logout</button>
</div>
</div>
</header>
<main id="main-content"></main>
</div>
<script src="/static/js/app.js"></script>
</body>
</html>