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
+73 -75
+73 -75
View File
@@ -1,83 +1,76 @@
<!doctype html>
<html lang="en" class="bg-bg-light">
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Remove Bulma and add Tailwind -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- You would typically import your tailwind config here or via a build step -->
<link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
<link rel="stylesheet" href="style.css">
<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>
<body class="font-sans text-text-default pt-navbar-height">
<!-- Fixed Navbar -->
<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="max-w-6xl mx-auto px-4">
<div class="flex justify-between">
<!-- Left side -->
<div class="flex">
<!-- Brand logo -->
<a href="/" class="flex items-center px-2 py-3 text-primary font-bold">
Behind the Desk
</a>
<!-- Primary Nav -->
<div class="hidden md:flex items-center">
<a href="/" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">top 🔥</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>
<body>
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item has-text-weight-bold" href="/">
Behind the Desk
</a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span>
</a>
</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 class="navbar-end">
<div class="navbar-item">
<a href="/login.html">login</a>
</div>
</div>
<!-- Right side -->
<div class="hidden md:flex items-center">
<a href="/login.html" class="px-3 py-3 text-primary hover:bg-opacity-5 hover:bg-primary">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>
<!-- 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>
</nav>
<main class="py-4 pb-16">
<div class="max-w-md mx-auto px-4 mt-8">
<div class="mb-8">
<h2 class="text-lg text-primary mb-4">User Profile</h2>
<div class="bg-white rounded shadow">
<table class="w-full bg-gray-50 text-primary">
<main class="section main-content">
<div class="container login-container">
<div class="form-section">
<h2>User Profile</h2>
<div class="user-profile">
<table class="table is-light">
<tr>
<th class="text-left py-2 px-4 font-normal">Username:</th>
<td class="py-2 px-4">@username</td>
<th>Username:</th>
<td>@username</td>
</tr>
<tr>
<th class="text-left py-2 px-4 font-normal">Created:</th>
<td class="py-2 px-4">January 1, 2023</td>
<th>Created:</th>
<td>January 1, 2023</td>
</tr>
<tr>
<th class="text-left py-2 px-4 font-normal align-top">About:</th>
<td class="py-2 px-4">
<th>About:</th>
<td>
<ul>
<li class="hover:underline cursor-pointer">Submissions: 10</li>
<li class="hover:underline cursor-pointer">Comments: 50</li>
<li class="hover:underline cursor-pointer">Favorites: 20</li>
<li class="hover-underline">Submissions: 10</li>
<li class="hover-underline">Comments: 50</li>
<li class="hover-underline">Favorites: 20</li>
</ul>
</td>
</tr>
@@ -87,25 +80,30 @@
</div>
</main>
<footer class="bg-bg-footer py-8">
<div class="max-w-6xl mx-auto px-4">
<div class="mt-4 text-center">
<a href="#" class="text-text-muted mx-2 hover:underline">Privacy</a>
<a href="#" class="text-text-muted mx-2 hover:underline">Terms</a>
<a href="#" class="text-text-muted mx-2 hover:underline">Contact</a>
<footer class="footer">
<div class="container">
<div class="footer-menu">
<a href="#">Privacy</a>
<a href="#">Terms</a>
<a href="#">Contact</a>
</div>
</div>
</footer>
<!-- Mobile menu toggle script -->
<!-- Simple script to toggle mobile menu -->
<script>
document.addEventListener('DOMContentLoaded', () => {
const mobileMenuButton = document.getElementById('mobile-menu-button');
const mobileMenu = document.getElementById('mobile-menu');
mobileMenuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
});
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach(el => {
el.addEventListener('click', () => {
const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
</body>