Skip to content

Commit 0735fd3

Browse files
committed
fix: navbar spacing completed
Signed-off-by: Harshil <harshilgupta.2005@gmail.com>
1 parent e51f5b7 commit 0735fd3

2 files changed

Lines changed: 48 additions & 47 deletions

File tree

assets/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ ul,
341341
li {
342342
list-style-type: disc;
343343
margin-left: 1em;
344-
font-size: 20px;
345344
}
346345

347346
ul {
348347
padding-bottom: 24px;
348+
font-size: 20px;
349349
}
350350

351351
header ul,

layouts/partials/nav.html

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
1-
<!--Navbar starts here-->
1+
<!-- Navbar starts here -->
22
<nav>
33
<header>
4-
<div class="md:flex md:flex-row md:px-12 xl:px-16 md:justify-between py-5 items-center">
5-
<div class="flex justify-between px-4 md:hidden">
6-
<div>
7-
{{ $image := resources.Get "logo/large_logo.svg" }}
8-
<a href="/"><img src="/logo/large_logo.svg" class="md:h-14 h-9" alt="Cloud Native Postgres Logo"></a>
9-
</div>
10-
<div class="h-6 my-auto" id="toggle-button">
11-
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"
12-
stroke-width="2">
13-
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" />
14-
</svg>
15-
</div>
16-
</div>
17-
<div class="hidden md:block">
18-
{{ $image := resources.Get "logo/large_logo.svg" }}
19-
<a href="/"><img src="/logo/large_logo.svg" class="md:h-10 xl:h-14" alt="Cloud Native Postgres Logo"></a>
4+
<div class="flex flex-row px-4 md:px-8 lg:px-12 xl:px-16 justify-between py-4 md:py-5 items-center">
5+
6+
<!-- Logo -->
7+
<div>
8+
<a href="/"><img src="/logo/large_logo.svg" class="h-10 lg:h-12 xl:h-14" alt="Cloud Native Postgres Logo"></a>
209
</div>
2110

22-
<div class="hidden md:block">
23-
<ul class="md:flex md:gap-4 xl:gap-8 text-2xl medium-gray my-5 pb-0">
11+
<!-- Desktop Menu -->
12+
<div class="hidden lg:block">
13+
<ul class="flex gap-4 xl:gap-8 text-base lg:text-lg xl:text-xl medium-gray my-5 pb-0">
2414
<li><a href="/blog">Blog</a></li>
2515
<li><a href="/tags/tutorial">Tutorials</a></li>
2616
<li><a href="/releases">Releases</a></li>
@@ -29,41 +19,51 @@
2919
<li><a href="/end_users">End Users</a></li>
3020
</ul>
3121
</div>
32-
<!--For hamburger click-->
33-
<div class="py-4 bg-gray-1 mt-5 hidden" id="navi-list">
34-
<ul class="md:flex gap-14 text-2xl md:medium-gray charcoal">
35-
<li class="text-center py-4"><a href="/blog">Blog</a></li>
36-
<li class="text-center py-4"><a href="/tags/tutorial">Tutorials</a></li>
37-
<li class="text-center py-4"><a href="/releases">Releases</a></li>
38-
<li class="text-center py-4"><a href="/docs">Documentation</a></li>
39-
<li class="text-center py-4"><a href="/support">Support</a></li>
40-
<li class="text-center py-4"><a href="/end_users">End Users</a></li>
41-
</ul>
42-
<div class="flex gap-3 py-4 justify-center bg-gray-1 fill-cnp-blue">
43-
<a href="https://github.com/cloudnative-pg/cloudnative-pg">
44-
<img src="/icons/Git.svg" alt="Github">
45-
</a>
46-
<a href="https://cloud-native.slack.com/archives/C08MAUJ7NPM">
47-
<img src="/icons/Slack.svg" alt="Slack">
48-
</a>
49-
<a href="https://x.com/CloudNativePg">
50-
<img src="/icons/x.svg" alt="x" style="width:28px; height:43px;">
51-
</a>
52-
<a href="https://www.youtube.com/channel/UCTGH88W1BiuRRPTzJUDPJyA">
53-
<img src="/icons/YouTube.svg" alt="YouTube">
54-
</a>
55-
</div>
56-
</div>
57-
<!--For hamburger click -->
5822

59-
<div class="hidden md:block">
23+
<!-- GitHub Button (Desktop) -->
24+
<div class="hidden lg:block pt-2">
6025
<a class="github-button" href="https://github.com/cloudnative-pg/cloudnative-pg"
6126
data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true"
6227
aria-label="Star cloudnative-pg/cloudnative-pg on GitHub">Star</a>
6328
</div>
29+
30+
<!-- Hamburger (Mobile & Tablet) -->
31+
<div class="lg:hidden flex items-center" id="toggle-button">
32+
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7" fill="none" viewBox="0 0 24 24" stroke="currentColor"
33+
stroke-width="2">
34+
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" />
35+
</svg>
36+
</div>
37+
</div>
38+
39+
<!-- Mobile Menu -->
40+
<div class="hidden lg:hidden bg-gray-1 px-4 py-3" id="navi-list">
41+
<ul class="space-y-2 text-lg charcoal">
42+
<li class="text-center py-2"><a href="/blog">Blog</a></li>
43+
<li class="text-center py-2"><a href="/tags/tutorial">Tutorials</a></li>
44+
<li class="text-center py-2"><a href="/releases">Releases</a></li>
45+
<li class="text-center py-2"><a href="/docs">Documentation</a></li>
46+
<li class="text-center py-2"><a href="/support">Support</a></li>
47+
<li class="text-center py-2"><a href="/end_users">End Users</a></li>
48+
</ul>
49+
<div class="flex gap-3 py-4 justify-center">
50+
<a href="https://github.com/cloudnative-pg/cloudnative-pg">
51+
<img src="/icons/Git.svg" alt="Github">
52+
</a>
53+
<a href="https://cloud-native.slack.com/archives/C08MAUJ7NPM">
54+
<img src="/icons/Slack.svg" alt="Slack">
55+
</a>
56+
<a href="https://x.com/CloudNativePg">
57+
<img src="/icons/x.svg" alt="x" style="width:28px; height:43px;">
58+
</a>
59+
<a href="https://www.youtube.com/channel/UCTGH88W1BiuRRPTzJUDPJyA">
60+
<img src="/icons/YouTube.svg" alt="YouTube">
61+
</a>
62+
</div>
6463
</div>
6564
</header>
6665
</nav>
66+
6767
<script>
6868
const toggleButton = document.getElementById('toggle-button')
6969
const naviList = document.getElementById('navi-list')
@@ -72,3 +72,4 @@
7272
naviList.classList.toggle('hidden');
7373
})
7474
</script>
75+
<!-- Navbar ends here -->

0 commit comments

Comments
 (0)