Use tailwind css for the single-post page, removed bulma css
This commit is contained in:
1 parent
04a2bfd938
commit
a07816ae5c
1 file changed
+229
-175
+229
-175
@@ -1,56 +1,97 @@
|
|||||||
<!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>Post - Behind the Desk</title>
|
<title>Post - Behind the Desk</title>
|
||||||
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
|
<script>
|
||||||
|
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"']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</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="/">Behind the Desk</a>
|
<div class="flex">
|
||||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
<a class="py-4 px-3 font-bold text-primary" href="/">Behind the Desk</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 single-post-container">
|
<div class="max-w-xl mx-auto px-4 mt-8">
|
||||||
<article class="media">
|
<article class="flex">
|
||||||
<div class="media-left">
|
<div class="mr-2">
|
||||||
<a href="#" class="upvote-arrow" title="Upvote">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 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">[Ask] The saga of the disappearing ergonomic chair continues. ✏️</a></strong>
|
<strong><a href="#" class="text-text-title font-normal text-base hover:underline">[Ask] The saga of the disappearing ergonomic chair continues. ✏️</a></strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Moved post-title-header below the title -->
|
<!-- Post title header -->
|
||||||
<div class="post-title-header">
|
<div class="mt-0.5 mb-2 text-sm">
|
||||||
<small class="handle">@deskdetective</small> <small class="time">1h ago</small>
|
<small class="text-text-muted ml-2 text-base">@deskdetective</small>
|
||||||
<a href="#" class="nav-link">report</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-base">1h ago</small>
|
||||||
|
<a href="#" class="ml-2 text-sm text-primary hover:underline">report</a>
|
||||||
|
<a href="#" class="ml-2 text-sm text-primary hover:underline">next</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -60,218 +101,231 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<div class="comment-section">
|
<div class="mt-8">
|
||||||
<form>
|
<form>
|
||||||
<div class="field">
|
<div class="mb-4">
|
||||||
<label class="label" for="comment-body">Comment:</label>
|
<label class="block font-medium text-sm mb-1" for="comment-body">Comment:</label>
|
||||||
<div class="control">
|
<div>
|
||||||
<textarea class="textarea" id="comment-body" name="body" placeholder="Enter your comment" required></textarea>
|
<textarea class="w-full px-3 py-2 bg-bg-light border border-gray-300 rounded" id="comment-body" name="body" placeholder="Enter your comment" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div>
|
||||||
<div class="control">
|
<button class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Add Comment</button>
|
||||||
<button class="button is-primary" type="submit">Add Comment</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h3 class="mt-4">Comments</h3>
|
<h3 class="mt-4 text-lg font-medium">Comments</h3>
|
||||||
|
|
||||||
<div class="comments-list">
|
<div class="mt-4">
|
||||||
<!-- Main Comment -->
|
<!-- Main Comment -->
|
||||||
<div class="comment">
|
<div class="mt-6 px-0 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@commenter1</small> <small class="time">2h ago</small>
|
<small class="text-text-muted ml-2 text-sm">@commenter1</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">2h ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>Haha, this totally happened to me last year. We had a phantom chair thief at work and it became an ongoing office joke for months!</p>
|
<p class="mb-2">Haha, this totally happened to me last year. We had a phantom chair thief at work and it became an ongoing office joke for months!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Nested Comment -->
|
<!-- Nested Comment -->
|
||||||
<div class="nested-comment">
|
<div class="ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@nestedcommenter1</small> <small class="time">1h ago</small>
|
<small class="text-text-muted ml-2 text-sm">@nestedcommenter1</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">1h ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>Did they ever catch who it was? 😂 I'd totally set up a hidden camera if it kept happening that much.</p>
|
<p class="mb-2">Did they ever catch who it was? 😂 I'd totally set up a hidden camera if it kept happening that much.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Example Reply Box -->
|
<!-- Reply Box -->
|
||||||
<div class="reply-box">
|
<div class="ml-8 mt-4">
|
||||||
<textarea class="textarea" placeholder="Reply to this comment..."></textarea>
|
<textarea class="w-full px-3 py-2 bg-bg-light border border-gray-300 rounded text-sm mb-2" placeholder="Reply to this comment..."></textarea>
|
||||||
<button class="button is-small is-primary">Reply</button>
|
<button class="px-3 py-1 text-xs bg-primary text-white rounded hover:bg-primary-dark">Reply</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Another Comment -->
|
<!-- Another Comment -->
|
||||||
<div class="comment">
|
<div class="mt-6 px-0 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@commenter2</small> <small class="time">3h ago</small>
|
<small class="text-text-muted ml-2 text-sm">@commenter2</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">3h ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>At my old job, chairs were so bad people would "borrow" a good one whenever someone went on vacation. A real survival of the fittest situation!</p>
|
<p class="mb-2">At my old job, chairs were so bad people would "borrow" a good one whenever someone went on vacation. A real survival of the fittest situation!</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Third Comment -->
|
<!-- Third Comment -->
|
||||||
<div class="comment">
|
<div class="mt-6 px-0 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@commenter3</small> <small class="time">5h ago</small>
|
<small class="text-text-muted ml-2 text-sm">@commenter3</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">5h ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>I recommend putting a bright sticker with your name on the chair. Makes it harder for people to pretend they didn't know it wasn't theirs.</p>
|
<p class="mb-2">I recommend putting a bright sticker with your name on the chair. Makes it harder for people to pretend they didn't know it wasn't theirs.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main Comment -->
|
<!-- Main Comment with Deeply Nested Replies -->
|
||||||
<div class="comment">
|
<div class="mt-6 px-0 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@commenter1</small> <small class="time">2h ago</small>
|
<small class="text-text-muted ml-2 text-sm">@commenter1</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">2h ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>Haha, this totally happened to me last year. It was hilarious and annoying at the same time.</p>
|
<p class="mb-2">Haha, this totally happened to me last year. It was hilarious and annoying at the same time.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Level 1 Nested Comment -->
|
<!-- Level 1 Nested Comment -->
|
||||||
<div class="nested-comment">
|
<div class="ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@nested1</small> <small class="time">1h 50m ago</small>
|
<small class="text-text-muted ml-2 text-sm">@nested1</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">1h 50m ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>Honestly, office pranks can either build great vibes or cause chaos if not handled well 😂</p>
|
<p class="mb-2">Honestly, office pranks can either build great vibes or cause chaos if not handled well 😂</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Level 2 Nested Comment -->
|
<!-- Level 2 Nested Comment -->
|
||||||
<div class="nested-comment">
|
<div class="ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@nested2</small> <small class="time">1h 40m ago</small>
|
<small class="text-text-muted ml-2 text-sm">@nested2</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">1h 40m ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>Yeah, in our team it turned into an inside joke that lasted months. No HR complaints thankfully!</p>
|
<p class="mb-2">Yeah, in our team it turned into an inside joke that lasted months. No HR complaints thankfully!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Level 3 Nested Comment -->
|
<!-- Level 3 Nested Comment -->
|
||||||
<div class="nested-comment">
|
<div class="ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@nested3</small> <small class="time">1h 30m ago</small>
|
<small class="text-text-muted ml-2 text-sm">@nested3</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">1h 30m ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>Ours got so bad management had to install chair locks (yes, seriously!).</p>
|
<p class="mb-2">Ours got so bad management had to install chair locks (yes, seriously!).</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Example Reply Box -->
|
<!-- Reply Box -->
|
||||||
<div class="reply-box">
|
<div class="ml-8 mt-4">
|
||||||
<textarea class="textarea" placeholder="Reply to this comment..."></textarea>
|
<textarea class="w-full px-3 py-2 bg-bg-light border border-gray-300 rounded text-sm mb-2" placeholder="Reply to this comment..."></textarea>
|
||||||
<button class="button is-small is-primary">Reply</button>
|
<button class="px-3 py-1 text-xs bg-primary text-white rounded hover:bg-primary-dark">Reply</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Level 4 Nested Comment -->
|
<!-- Level 4 Nested Comment -->
|
||||||
<div class="nested-comment">
|
<div class="ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@nested4</small> <small class="time">1h 20m ago</small>
|
<small class="text-text-muted ml-2 text-sm">@nested4</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">1h 20m ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>😂 Chair locks?! That's next level commitment to stopping thefts.</p>
|
<p class="mb-2">😂 Chair locks?! That's next level commitment to stopping thefts.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Level 5 Nested Comment -->
|
<!-- Level 5 Nested Comment -->
|
||||||
<div class="nested-comment">
|
<div class="ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@nested5</small> <small class="time">1h 10m ago</small>
|
<small class="text-text-muted ml-2 text-sm">@nested5</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">1h 10m ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
<div>
|
||||||
<p>I would LOVE to see the memo that went out announcing chair locks to employees 😆</p>
|
<p class="mb-2">I would LOVE to see the memo that went out announcing chair locks to employees 😆</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Level 6 Nested Comment -->
|
<!-- Level 6 Nested Comment -->
|
||||||
<div class="nested-comment">
|
<div class="ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-sm">
|
||||||
<div class="comment-header">
|
<div class="mb-1">
|
||||||
<a href="#" class="upvote-arrow">▲</a>
|
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
|
||||||
<small class="handle">@nested6</small> <small class="time">1h 5m ago</small>
|
<small class="text-text-muted ml-2 text-sm">@nested6</small>
|
||||||
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
|
<small class="text-text-muted ml-2 text-sm">1h 5m ago</small>
|
||||||
<small class="reply">reply</small>
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a>
|
||||||
|
<a href="#" class="ml-2 text-xs text-primary hover:underline">next</a>
|
||||||
|
<small class="underline text-xs cursor-pointer ml-2 inline-block">reply</small>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="mb-2">Imagine coming into work one day and finding your chair padlocked to the floor 😅</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-body">
|
|
||||||
<p>Imagine coming into work one day and finding your chair padlocked to the floor 😅</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div> <!-- Level 5 -->
|
|
||||||
</div> <!-- Level 4 -->
|
|
||||||
</div> <!-- Level 3 -->
|
|
||||||
</div> <!-- Level 2 -->
|
|
||||||
</div> <!-- Level 1 -->
|
|
||||||
|
|
||||||
</div> <!-- Main Comment -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="bg-gray-200 py-8 px-6 text-text-muted">
|
||||||
<div class="content has-text-centered">
|
<div class="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">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<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>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user