Use tailwind css for the user page, removed bulma css
This commit is contained in:
1 parent
8882e0cb6e
commit
04a2bfd938
1 file changed
+93
-71
@@ -1,76 +1,102 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en" class="bg-bg-light">
|
||||||
<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" />
|
||||||
<link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
|
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<title>User Profile - Behind the Desk</title>
|
<title>User Profile - Behind the Desk</title>
|
||||||
<style>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
.hover-underline:hover {
|
<script>
|
||||||
text-decoration: underline;
|
tailwind.config = {
|
||||||
|
theme: {
|
||||||
|
extend: {
|
||||||
|
colors: {
|
||||||
|
'primary': '#38315f',
|
||||||
|
'primary-dark': '#2c264a',
|
||||||
|
'bg-light': '#f8f9fa',
|
||||||
|
'text-default': '#343a40',
|
||||||
|
'text-title': '#212529',
|
||||||
|
'text-muted': '#6c757d',
|
||||||
|
'border-light': '#dee2e6',
|
||||||
|
'link-hover': '#ff6600',
|
||||||
|
'rules-bg': '#eef6f6',
|
||||||
|
'navbar-bg': '#e5fa70',
|
||||||
|
'navbar-border': '#cddb60'
|
||||||
|
},
|
||||||
|
spacing: {
|
||||||
|
'navbar-height': '3.25rem'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fontFamily: {
|
||||||
|
'sans': ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', 'Helvetica', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"']
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.table.is-light {
|
</script>
|
||||||
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>
|
<body class="font-sans text-text-default pt-navbar-height">
|
||||||
<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-screen-lg mx-auto px-4">
|
||||||
<div class="navbar-brand">
|
<div class="flex justify-between">
|
||||||
<a class="navbar-item has-text-weight-bold" href="/">
|
<div class="flex">
|
||||||
Behind the Desk
|
<a class="py-4 px-3 font-bold text-primary" href="/">
|
||||||
</a>
|
Behind the Desk
|
||||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
</a>
|
||||||
<span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span>
|
<div class="hidden md:flex">
|
||||||
</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
||||||
</div>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||||
<div id="navbarBasicExample" class="navbar-menu">
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<div class="navbar-start">
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
<a class="navbar-item" href="/">top 🔥</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
|
||||||
<a class="navbar-item" href="#">new</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
|
||||||
<a class="navbar-item" href="#">nearby</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</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>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<div class="py-4 px-3">
|
||||||
|
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="md:hidden flex items-center">
|
||||||
|
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
||||||
|
<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 id="mobileMenu" class="hidden md:hidden">
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main class="section main-content">
|
<main class="py-4 pb-16">
|
||||||
<div class="container login-container">
|
<div class="max-w-md mx-auto px-4 mt-8">
|
||||||
<div class="form-section">
|
<div class="mb-8">
|
||||||
<h2>User Profile</h2>
|
<h2 class="text-lg mb-4 text-primary">User Profile</h2>
|
||||||
<div class="user-profile">
|
<div class="user-profile">
|
||||||
<table class="table is-light">
|
<table class="w-full bg-gray-100 text-primary">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Username:</th>
|
<th class="text-left py-2 px-3 font-normal">Username:</th>
|
||||||
<td>@username</td>
|
<td class="py-2 px-3">@username</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Created:</th>
|
<th class="text-left py-2 px-3 font-normal">Created:</th>
|
||||||
<td>January 1, 2023</td>
|
<td class="py-2 px-3">January 1, 2023</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>About:</th>
|
<th class="text-left py-2 px-3 font-normal align-top">About:</th>
|
||||||
<td>
|
<td class="py-2 px-3">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="hover-underline">Submissions: 10</li>
|
<li class="hover:underline cursor-pointer">Submissions: 10</li>
|
||||||
<li class="hover-underline">Comments: 50</li>
|
<li class="hover:underline cursor-pointer">Comments: 50</li>
|
||||||
<li class="hover-underline">Favorites: 20</li>
|
<li class="hover:underline cursor-pointer">Favorites: 20</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -80,30 +106,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="bg-gray-200 py-8 px-6 text-text-muted">
|
||||||
<div class="container">
|
<div class="max-w-screen-lg mx-auto">
|
||||||
<div class="footer-menu">
|
<div class="mt-4 text-sm">
|
||||||
<a href="#">Privacy</a>
|
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a>
|
||||||
<a href="#">Terms</a>
|
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Terms</a>
|
||||||
<a href="#">Contact</a>
|
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Contact</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Simple script to toggle mobile menu -->
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
const menuButton = document.getElementById('menuButton');
|
||||||
if ($navbarBurgers.length > 0) {
|
const mobileMenu = document.getElementById('mobileMenu');
|
||||||
$navbarBurgers.forEach(el => {
|
|
||||||
el.addEventListener('click', () => {
|
menuButton.addEventListener('click', () => {
|
||||||
const target = el.dataset.target;
|
mobileMenu.classList.toggle('hidden');
|
||||||
const $target = document.getElementById(target);
|
const expanded = menuButton.getAttribute('aria-expanded') === 'true';
|
||||||
el.classList.toggle('is-active');
|
menuButton.setAttribute('aria-expanded', !expanded);
|
||||||
$target.classList.toggle('is-active');
|
});
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in new issue
Block a user