feat: Replace Bulma CSS with Tailwind CSS in index.html
This commit is contained in:
1 parent
a07816ae5c
commit
96228f7890
1 file changed
+99
-73
+99
-73
@@ -52,45 +52,65 @@
|
|||||||
<a href="/login.html">login</a>
|
<a href="/login.html">login</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile menu button -->
|
||||||
|
<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>
|
||||||
|
<!-- Mobile Menu -->
|
||||||
|
<div id="mobileMenu" class="hidden md:hidden">
|
||||||
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" 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">
|
<div class="max-w-xl mx-auto px-4 mt-8">
|
||||||
<div class="rules-tips notification is-light is-info mb-4">
|
<div class="bg-rules-bg p-4 rounded mb-4 text-primary">
|
||||||
<p><strong>Quick Tips:</strong> Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!</p>
|
<p><strong>Quick Tips:</strong> Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Date Display -->
|
<!-- Date Display -->
|
||||||
<div class="date-display mb-4">
|
<div class="mb-4 text-text-muted">
|
||||||
<p>Stories from <a href="#" class="date-link">April</a> <a href="#" class="date-link">24</a>, <a href="#" class="date-link">2025</a> (UTC)</p>
|
<p>Stories from <a href="#" class="text-primary hover:underline">April</a> <a href="#" class="text-primary hover:underline">24</a>, <a href="#" class="text-primary hover:underline">2025</a> (UTC)</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Filter Section -->
|
<!-- Filter Section -->
|
||||||
<div class="filter-section">
|
<div class="mb-4 text-text-muted">
|
||||||
<p>Go back a day, month, or year. Go forward a day.</p>
|
<p>Go back a day, month, or year. Go forward a day.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="post-list">
|
<div class="post-list">
|
||||||
<!-- Post 1 -->
|
<!-- Post 1 -->
|
||||||
<div class="post-item">
|
<div class="mb-4">
|
||||||
<article class="media">
|
<article class="flex">
|
||||||
<div class="media-left is-align-self-flex-start pt-1">
|
<div class="mr-2 pt-0.5">
|
||||||
<a href="#" class="upvote-arrow" title="Upvote">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content">
|
<div class="flex-1 text-left">
|
||||||
<div class="content">
|
<div>
|
||||||
<p>
|
<p>
|
||||||
<strong><a href="#" class="post-title">The saga of the disappearing ergonomic chair continues. <span class="update-tick">✏️</span></a></strong> <small class="handle">@deskdetective</small> <small class="time">1h ago</small>
|
<a href="#" class="text-text-title font-normal text-base hover:underline">The saga of the disappearing ergonomic chair continues. <span class="update-tick">✏️</span></a>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">@deskdetective</small>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">1h ago</small>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<nav class="level is-mobile post-meta">
|
<nav class="flex justify-between items-center mt-1 text-sm">
|
||||||
<div class="level-left">
|
<div class="flex">
|
||||||
<!-- Meta info like points could go here later -->
|
<!-- Meta info like points could go here later -->
|
||||||
</div>
|
</div>
|
||||||
<div class="level-right">
|
<div class="flex">
|
||||||
<small><a href="#">5 comments</a></small>
|
<small><a href="#" class="text-primary hover:underline">5 comments</a></small>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -98,21 +118,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Post 2 -->
|
<!-- Post 2 -->
|
||||||
<div class="post-item">
|
<div class="mb-4">
|
||||||
<article class="media">
|
<article class="flex">
|
||||||
<div class="media-left is-align-self-flex-start pt-1">
|
<div class="mr-2 pt-0.5">
|
||||||
<a href="#" class="upvote-arrow" title="Upvote">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content">
|
<div class="flex-1 text-left">
|
||||||
<div class="content">
|
<div>
|
||||||
<p>
|
<p>
|
||||||
<strong><a href="#" class="post-title">Found the perfect focus playlist. <span class="update-tick">✏️</span></a></strong> <small class="handle">@flowstatefiend</small> <small class="time">3h ago</small>
|
<a href="#" class="text-text-title font-normal text-base hover:underline">Found the perfect focus playlist. <span class="update-tick">✏️</span></a>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">@flowstatefiend</small>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">3h ago</small>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<nav class="level is-mobile post-meta">
|
<nav class="flex justify-between items-center mt-1 text-sm">
|
||||||
<div class="level-left"></div>
|
<div class="flex"></div>
|
||||||
<div class="level-right">
|
<div class="flex">
|
||||||
<small><a href="#">12 comments</a></small>
|
<small><a href="#" class="text-primary hover:underline">12 comments</a></small>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -120,21 +142,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Post 3 -->
|
<!-- Post 3 -->
|
||||||
<div class="post-item">
|
<div class="mb-4">
|
||||||
<article class="media">
|
<article class="flex">
|
||||||
<div class="media-left is-align-self-flex-start pt-1">
|
<div class="mr-2 pt-0.5">
|
||||||
<a href="#" class="upvote-arrow" title="Upvote">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content">
|
<div class="flex-1 text-left">
|
||||||
<div class="content">
|
<div>
|
||||||
<p>
|
<p>
|
||||||
<strong><a href="#" class="post-title">Overheard near the coffee machine... <span class="update-tick">✏️</span></a></strong> <small class="handle">@wallflower</small> <small class="time">5h ago</small>
|
<a href="#" class="text-text-title font-normal text-base hover:underline">Overheard near the coffee machine... <span class="update-tick">✏️</span></a>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">@wallflower</small>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">5h ago</small>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<nav class="level is-mobile post-meta">
|
<nav class="flex justify-between items-center mt-1 text-sm">
|
||||||
<div class="level-left"></div>
|
<div class="flex"></div>
|
||||||
<div class="level-right">
|
<div class="flex">
|
||||||
<small><a href="#">2 comments</a></small>
|
<small><a href="#" class="text-primary hover:underline">2 comments</a></small>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -142,21 +166,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Post 4 -->
|
<!-- Post 4 -->
|
||||||
<div class="post-item">
|
<div class="mb-4">
|
||||||
<article class="media">
|
<article class="flex">
|
||||||
<div class="media-left is-align-self-flex-start pt-1">
|
<div class="mr-2 pt-0.5">
|
||||||
<a href="#" class="upvote-arrow" title="Upvote">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block hover:text-link-hover" title="Upvote">▲</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content">
|
<div class="flex-1 text-left">
|
||||||
<div class="content">
|
<div>
|
||||||
<p>
|
<p>
|
||||||
<strong><a href="#" class="post-title">My standing desk setup 📸 <span class="update-tick">✏️</span></a></strong> <small class="handle">@setupstylist</small> <small class="time">1d ago</small>
|
<a href="#" class="text-text-title font-normal text-base hover:underline">My standing desk setup 📸 <span class="update-tick">✏️</span></a>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">@setupstylist</small>
|
||||||
|
<small class="text-text-muted ml-2 text-sm">1d ago</small>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<nav class="level is-mobile post-meta">
|
<nav class="flex justify-between items-center mt-1 text-sm">
|
||||||
<div class="level-left"></div>
|
<div class="flex"></div>
|
||||||
<div class="level-right">
|
<div class="flex">
|
||||||
<small><a href="#">8 comments</a></small>
|
<small><a href="#" class="text-primary hover:underline">8 comments</a></small>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -165,46 +191,46 @@
|
|||||||
</div> <!-- End post-list -->
|
</div> <!-- End post-list -->
|
||||||
|
|
||||||
<!-- More Link Section -->
|
<!-- More Link Section -->
|
||||||
<div class="more-link-section mt-4">
|
<div class="mt-4">
|
||||||
<a href="#">More</a>
|
<a href="#" class="text-primary hover:underline">More</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div> <!-- End container -->
|
</div> <!-- End container -->
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<button class="button is-primary is-rounded floating-submit is-hidden-desktop">
|
<!-- Floating Action Button for Mobile -->
|
||||||
|
<button class="fixed bottom-4 right-4 bg-primary text-white rounded-full p-3 shadow-lg md:hidden hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50">
|
||||||
+ Share
|
+ Share
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="bg-gray-200 py-8 px-6 text-text-muted">
|
||||||
<div class="content has-text-centered">
|
<div class="max-w-screen-lg mx-auto text-center">
|
||||||
<p>
|
<p>
|
||||||
Seen something today? Don’t let it go to waste. <a href="#">Submit it</a>.
|
Seen something today? Don’t let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
|
||||||
</p>
|
</p>
|
||||||
<div class="footer-menu">
|
<div class="mt-4 text-sm">
|
||||||
<a href="#">Guidelines</a> |
|
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Guidelines</a> |
|
||||||
<a href="#">Tips</a> |
|
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Tips</a> |
|
||||||
<a href="#">Privacy</a> |
|
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> |
|
||||||
<a href="#">DMCA</a>
|
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-box">
|
<div class="mt-4 text-center">
|
||||||
<input type="text" placeholder="Search...">
|
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Simple script to toggle mobile menu -->
|
<!-- 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', () => {
|
if (menuButton && mobileMenu) {
|
||||||
const target = el.dataset.target;
|
menuButton.addEventListener('click', () => {
|
||||||
const $target = document.getElementById(target);
|
mobileMenu.classList.toggle('hidden');
|
||||||
el.classList.toggle('is-active');
|
const expanded = menuButton.getAttribute('aria-expanded') === 'true';
|
||||||
$target.classList.toggle('is-active');
|
menuButton.setAttribute('aria-expanded', !expanded);
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user