feat: Convert to Tailwind CSS and update navbar
This commit is contained in:
1 parent
96228f7890
commit
35e847301d
1 file changed
+46
-42
+46
-42
@@ -1,55 +1,59 @@
|
|||||||
<!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>Behind the Desk</title>
|
<title>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', // Example color, adjust as needed
|
||||||
|
'navbar-bg': '#e5fa70',
|
||||||
|
'navbar-border': '#cddb60'
|
||||||
|
},
|
||||||
|
spacing: {
|
||||||
|
'navbar-height': '3.25rem' // 52px
|
||||||
|
}
|
||||||
|
},
|
||||||
|
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="#">
|
<div class="flex">
|
||||||
|
<a class="py-4 px-3 font-bold text-primary" href="/">
|
||||||
Behind the Desk
|
Behind the Desk
|
||||||
</a>
|
</a>
|
||||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
<div class="hidden md:flex">
|
||||||
<span aria-hidden="true"></span>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
|
||||||
<span aria-hidden="true"></span>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||||
<span aria-hidden="true"></span>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<span aria-hidden="true"></span>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
|
||||||
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
|
||||||
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="navbarBasicExample" class="navbar-menu">
|
|
||||||
<div class="navbar-start">
|
|
||||||
<a class="navbar-item is-active" href="#">
|
|
||||||
top 🔥
|
|
||||||
</a>
|
|
||||||
<a class="navbar-item" href="#">
|
|
||||||
new
|
|
||||||
</a>
|
|
||||||
<a class="navbar-item" href="#">
|
|
||||||
nearby
|
|
||||||
</a>
|
|
||||||
<!-- Added 'past' menu item -->
|
|
||||||
<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>
|
||||||
<div class="navbar-end">
|
<div class="flex items-center">
|
||||||
<div class="navbar-item">
|
<div class="py-4 px-3">
|
||||||
<!-- Changed @handle to login link -->
|
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
||||||
<a href="/login.html">login</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Mobile menu button -->
|
<!-- Mobile menu button -->
|
||||||
|
|||||||
Reference in new issue
Block a user