Skip to content

Commit

Permalink
home commit
Browse files Browse the repository at this point in the history
  • Loading branch information
soulinmaikadua committed Mar 19, 2024
1 parent 679c773 commit 0475473
Show file tree
Hide file tree
Showing 19 changed files with 423 additions and 467 deletions.
2 changes: 1 addition & 1 deletion src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props;
<!-- Global Metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="icon" href="/my-learning-path/favicon.ico" />
<link rel="icon" type="icon" href="/nkauj/favicon.ico" />
<meta name="generator" content={Astro.generator} />

<!-- Canonical URL -->
Expand Down
6 changes: 3 additions & 3 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
const today = new Date();
---

<footer>
<footer class="bg-gray-100 mt-10">
<hr class="my-6" />
&copy; {today.getFullYear()} My Learning Path. All rights reserved.
&copy; {today.getFullYear()} Nkauj. All rights reserved.
<div class="social-links">
<a href="https://github.com/soulinmaikadua/my-learning-path" target="_blank">
<a href="https://github.com/soulinmaikadua/nkauj" target="_blank">
<span class="sr-only">Go to Soulinmaikadua's GitHub repo</span>
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32" astro-icon="social/github"
><path
Expand Down
127 changes: 66 additions & 61 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,65 +1,70 @@
---
import HeaderLink from './HeaderLink.astro';
import { SITE_TITLE } from '../consts';
import HeaderLink from "./HeaderLink.astro";
import { SITE_TITLE } from "../consts";
---

<header class="bg-black text-white">
<nav>
<h2><a href="/my-learning-path/">{SITE_TITLE}</a></h2>
<div class="internal-links">
<HeaderLink href="/my-learning-path/">Home</HeaderLink>
<HeaderLink href="/my-learning-path/learning">Learning</HeaderLink>
</div>
<div class="social-links">
<a href="https://github.com/soulinmaikadua/my-learning-path" target="_blank">
<span class="sr-only">Go to Astro's GitHub repo</span>
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32"
><path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
></path></svg
>
</a>
</div>
</nav>
<header class="shadow-md shadow-gray-500 mb-10">
<nav class="bg-white border-gray-200 dark:bg-gray-900">
<div
class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4"
>
<a
href="https://flowbite.com/"
class="flex items-center space-x-3 rtl:space-x-reverse"
>
<img
src="https://flowbite.com/docs/images/logo.svg"
class="h-8"
alt="Flowbite Logo"
/>
<span
class="self-center text-2xl font-semibold whitespace-nowrap dark:text-white"
>Flowbite</span
>
</a>
<button
data-collapse-toggle="navbar-default"
type="button"
class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
aria-controls="navbar-default"
aria-expanded="false"
>
<span class="sr-only">Open main menu</span>
<svg
class="w-5 h-5"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 17 14"
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M1 1h15M1 7h15M1 13h15"></path>
</svg>
</button>
<div class="hidden w-full md:block md:w-auto" id="navbar-default">
<ul
class="font-medium flex flex-col p-4 md:p-0 mt-4 border border-gray-100 rounded-lg bg-gray-50 md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0 md:border-0 md:bg-white dark:bg-gray-800 md:dark:bg-gray-900 dark:border-gray-700"
>
<li>
<a
href="/nkauj"
class="block py-2 px-3 text-white bg-blue-700 rounded md:bg-transparent md:text-blue-700 md:p-0 dark:text-white md:dark:text-blue-500"
aria-current="page">Home</a
>
</li>
<li>
<a
href="/nkauj/nkauj"
class="block py-2 px-3 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-white md:dark:hover:text-blue-500 dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent"
>Nkauj</a
>
</li>
</ul>
</div>
</div>
</nav>
</header>
<style>
header {
margin: 0;
padding: 0 1em;
box-shadow: 0 2px 8px rgba(var(--black), 5%);
}
h2 {
margin: 0;
font-size: 1em;
}

h2 a,
h2 a.active {
text-decoration: none;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
}
nav a {
padding: 1em 0.5em;
color: var(--black);
border-bottom: 4px solid transparent;
text-decoration: none;
}
nav a.active {
text-decoration: none;
border-bottom-color: var(--accent);
}
.social-links,
.social-links a {
display: flex;
}
@media (max-width: 720px) {
.social-links {
display: none;
}
}
</style>
2 changes: 1 addition & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Place any global data in this file.
// You can import this data from anywhere in your site by using the `import` keyword.

export const SITE_TITLE = "My Learning Path";
export const SITE_TITLE = "Nkauj";
export const SITE_DESCRIPTION = "Welcome to my website!";
82 changes: 0 additions & 82 deletions src/content/learning/go-gin-postgresql.mdx

This file was deleted.

70 changes: 0 additions & 70 deletions src/content/learning/go-with-mongodb.mdx

This file was deleted.

75 changes: 0 additions & 75 deletions src/content/learning/go-with-postgresql.mdx

This file was deleted.

Loading

0 comments on commit 0475473

Please sign in to comment.