Skip to content

Commit

Permalink
fixed navbar hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
onrirr committed Feb 16, 2024
1 parent 3bbac92 commit 71efd11
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
15 changes: 8 additions & 7 deletions src/components/navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@
>
<a
class="font-medium text-gray-500 hover:text-gray-400 sm:py-6 dark:text-gray-400 dark:hover:text-gray-500"
href="#">Examples</a
href="/c3-web/references/docs/examples/">Examples</a
>
<a
class="font-medium text-gray-500 hover:text-gray-400 sm:py-6 dark:text-gray-400 dark:hover:text-gray-500"
href="#">Download</a
href="/c3-web/references/getting-started/prebuilt-binaries/"
>Download</a
>

<div
Expand Down Expand Up @@ -208,19 +209,19 @@
>
<a
class="flex items-center gap-x-3.5 py-2 px-3 rounded-md text-sm text-stone-950 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-stone-700 dark:hover:text-gray-300"
href="#"
href="https://discord.com/invite/PXr5QCXpTf"
>
Discord
</a>
<a
class="flex items-center gap-x-3.5 py-2 px-3 rounded-md text-sm text-stone-950 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-stone-700 dark:hover:text-gray-300"
href="#"
href="https://github.com/c3lang/c3c"
>
Forums
Github
</a>
<a
class="flex items-center gap-x-3.5 py-2 px-3 rounded-md text-sm text-stone-950 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-stone-700 dark:hover:text-gray-300"
href="#"
href="https://github.com/c3lang/c3c"
>
Support us
</a>
Expand All @@ -246,7 +247,7 @@
</svg>
</a>
<a
class="hs-dark-mode-active:block hidden hs-dark-mode group flex items-center text-gray-600 hover:text-blue-600 font-medium dark:text-gray-400 dark:hover:text-gray-500"
class="hs-dark-mode-active:block hs-dark-mode hidden group flex items-center text-gray-600 hover:text-blue-600 font-medium dark:text-gray-400 dark:hover:text-gray-500"
href="#!"
data-hs-theme-click-value="light"
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/sample.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<button
type="button"
onclick="window.location.href='https://github.com/c3lang/c3c/releases/download/latest/c3-windows.zip'"
class="py-3 px-4 inline-flex justify-center items-center gap-2 rounded-l-md border font-medium text-gray-700 dark:text-gray-400 shadow-sm bg-white dark:bg-stone-950 hover:bg-blue-500 dark:hover:bg-blue-950 focus:z-10 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:hover:bg-slate-800 dark:border-gray-700 dark:hover:text-white dark:focus:ring-offset-gray-800"
class="py-3 px-4 inline-flex justify-center items-center gap-2 rounded-l-md border font-medium text-gray-700 dark:text-gray-400 shadow-sm bg-white dark:bg-stone-950 hover:bg-blue-500 focus:z-10 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:hover:bg-slate-800 dark:border-gray-700 dark:hover:text-white dark:focus:ring-offset-gray-800"
>
Download for Windows
</button>
Expand All @@ -30,7 +30,7 @@
<button
id="hs-split-dropdown"
type="button"
class="bg-white hover:bg-blue-500 dark:hover:bg-blue-950 dark:bg-stone-950 hs-dropdown-toggle relative -ml-[.3125rem] py-3 px-4 inline-flex justify-center items-center gap-2 h-[2.875rem] w-[2.875rem] rounded-r-md border font-medium text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
class="bg-white dark:bg-stone-950 hs-dropdown-toggle relative -ml-[.3125rem] py-3 px-4 inline-flex justify-center items-center gap-2 h-[2.875rem] w-[2.875rem] rounded-r-md border font-medium text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
>
<span class="sr-only">Toggle Dropdown</span>
<svg
Expand Down
3 changes: 2 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import Community from "../components/community.astro";
content="C3 is a simple, fast, and modern programming language."
/>
<meta name="og:image" content="/logo.svg" />
<title>C3</title>
<link rel="icon" href="/logo.svg" />
<title>C3 | An evolution, not a revolution</title>
<script>
import "boxicons";
import "../../public/preline.min.js";
Expand Down

0 comments on commit 71efd11

Please sign in to comment.