mirror of
https://github.com/rjNemo/orbital-orbit
synced 2026-06-06 06:56:40 +00:00
refactor: create navigation component
This commit is contained in:
parent
9385a8a39d
commit
a1bd208290
4 changed files with 14 additions and 11 deletions
8
src/components/Navigation.astro
Normal file
8
src/components/Navigation.astro
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
---
|
||||
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/blog">Blog</a>
|
||||
</nav>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
import "../styles/global.css"
|
||||
import Navigation from "../components/Navigation.astro"
|
||||
|
||||
const pageTitle = "About Me"
|
||||
|
||||
|
|
@ -47,9 +48,7 @@ const skillColor = "navy"
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/blog">Blog</a>
|
||||
<Navigation />
|
||||
|
||||
<h1>{pageTitle}</h1>
|
||||
<h2>... and my new website!</h2>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
import "../styles/global.css"
|
||||
import Navigation from "../components/Navigation.astro"
|
||||
|
||||
const pageTitle = "Blog posts"
|
||||
|
||||
|
|
@ -14,11 +15,7 @@ const pageTitle = "Blog posts"
|
|||
<title>{pageTitle}</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/blog">Blog</a>
|
||||
|
||||
|
||||
<Navigation />
|
||||
|
||||
<h1>{pageTitle}</h1>
|
||||
<p>This is a list of my blog posts.</p>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
import "../styles/global.css"
|
||||
import Navigation from "../components/Navigation.astro"
|
||||
|
||||
const pageTitle = "Orbital Orbit"
|
||||
---
|
||||
|
|
@ -13,9 +14,7 @@ const pageTitle = "Orbital Orbit"
|
|||
<title>{pageTitle}</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/blog">Blog</a>
|
||||
<Navigation />
|
||||
|
||||
<h1>{pageTitle}</h1>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in a new issue