-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
679c773
commit 0475473
Showing
19 changed files
with
423 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!"; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.