Revert user page before applying tailwind classes

This commit is contained in:
Your Name committed 2025-04-27 23:56:10 +08:00
1 parent 58744133d1
commit 8882e0cb6e
1 file changed
+68 -70
+68 -70
View File
@@ -1,83 +1,76 @@
<!doctype html> <!doctype html>
<html lang="en" class="bg-bg-light"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Remove Bulma and add Tailwind --> <link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
<script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="style.css">
<!-- You would typically import your tailwind config here or via a build step -->
<title>User Profile - Behind the Desk</title> <title>User Profile - Behind the Desk</title>
<style>
.hover-underline:hover {
text-decoration: underline;
}
.table.is-light {
background-color: #f5f5f5; /* Light background color */
border: none; /* Remove table borders */
color: #38315f; /* Set text color */
}
.table.is-light th, .table.is-light td {
border: none; /* Remove cell borders */
}
</style>
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body>
<!-- Fixed Navbar --> <nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <div class="container">
<div class="max-w-6xl mx-auto px-4"> <div class="navbar-brand">
<div class="flex justify-between"> <a class="navbar-item has-text-weight-bold" href="/">
<!-- Left side -->
<div class="flex">
<!-- Brand logo -->
<a href="/" class="flex items-center px-2 py-3 text-primary font-bold">
Behind the Desk Behind the Desk
</a> </a>
<!-- Primary Nav --> <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<div class="hidden md:flex items-center"> <span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span>
<a href="/" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">top 🔥</a> </a>
<a href="#" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">new</a>
<a href="#" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">nearby</a>
<a href="#" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">past</a>
<a href="#" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">ask</a>
<a href="#" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">show</a>
<a href="#" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">submit</a>
</div> </div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="/">top 🔥</a>
<a class="navbar-item" href="#">new</a>
<a class="navbar-item" href="#">nearby</a>
<a class="navbar-item" href="#">past</a>
<a class="navbar-item" href="#">ask</a>
<a class="navbar-item" href="#">show</a>
<a class="navbar-item" href="#">submit</a>
</div> </div>
<!-- Right side --> <div class="navbar-end">
<div class="hidden md:flex items-center"> <div class="navbar-item">
<a href="/login.html" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">login</a> <a href="/login.html">login</a>
</div>
<!-- Mobile menu button -->
<div class="md:hidden flex items-center">
<button id="mobile-menu-button" class="text-primary p-3">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div> </div>
</div> </div>
</div> </div>
<!-- Mobile menu -->
<div id="mobile-menu" class="hidden md:hidden">
<a href="/" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">top 🔥</a>
<a href="#" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">new</a>
<a href="#" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">nearby</a>
<a href="#" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">past</a>
<a href="#" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">ask</a>
<a href="#" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">show</a>
<a href="#" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">submit</a>
<a href="/login.html" class="block py-2 px-4 text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
</div> </div>
</nav> </nav>
<main class="py-4 pb-16"> <main class="section main-content">
<div class="max-w-md mx-auto px-4 mt-8"> <div class="container login-container">
<div class="mb-8"> <div class="form-section">
<h2 class="text-lg text-primary mb-4">User Profile</h2> <h2>User Profile</h2>
<div class="bg-white rounded shadow"> <div class="user-profile">
<table class="w-full bg-gray-50 text-primary"> <table class="table is-light">
<tr> <tr>
<th class="text-left py-2 px-4 font-normal">Username:</th> <th>Username:</th>
<td class="py-2 px-4">@username</td> <td>@username</td>
</tr> </tr>
<tr> <tr>
<th class="text-left py-2 px-4 font-normal">Created:</th> <th>Created:</th>
<td class="py-2 px-4">January 1, 2023</td> <td>January 1, 2023</td>
</tr> </tr>
<tr> <tr>
<th class="text-left py-2 px-4 font-normal align-top">About:</th> <th>About:</th>
<td class="py-2 px-4"> <td>
<ul> <ul>
<li class="hover:underline cursor-pointer">Submissions: 10</li> <li class="hover-underline">Submissions: 10</li>
<li class="hover:underline cursor-pointer">Comments: 50</li> <li class="hover-underline">Comments: 50</li>
<li class="hover:underline cursor-pointer">Favorites: 20</li> <li class="hover-underline">Favorites: 20</li>
</ul> </ul>
</td> </td>
</tr> </tr>
@@ -87,26 +80,31 @@
</div> </div>
</main> </main>
<footer class="bg-bg-footer py-8"> <footer class="footer">
<div class="max-w-6xl mx-auto px-4"> <div class="container">
<div class="mt-4 text-center"> <div class="footer-menu">
<a href="#" class="text-text-muted mx-2 hover:underline">Privacy</a> <a href="#">Privacy</a>
<a href="#" class="text-text-muted mx-2 hover:underline">Terms</a> <a href="#">Terms</a>
<a href="#" class="text-text-muted mx-2 hover:underline">Contact</a> <a href="#">Contact</a>
</div> </div>
</div> </div>
</footer> </footer>
<!-- Mobile menu toggle script --> <!-- Simple script to toggle mobile menu -->
<script> <script>
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const mobileMenuButton = document.getElementById('mobile-menu-button'); const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
const mobileMenu = document.getElementById('mobile-menu'); if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach(el => {
mobileMenuButton.addEventListener('click', () => { el.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden'); const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
}); });
}); });
}
});
</script> </script>
</body> </body>
</html> </html>