Add navbar
parent
5b62942f44
commit
c0a371b510
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
const homeText = 'Ethan Reece'
|
||||
const links = [
|
||||
{ text: 'About Me', link: '#about' },
|
||||
{ text: 'Projects', link: '#projects' },
|
||||
{ text: 'Experience', link: '#experience' },
|
||||
{ text: 'Hobbies', link: '#hobbies' },
|
||||
{ text: 'Contact Me', link: '#contact' },
|
||||
]
|
||||
---
|
||||
|
||||
<div class="w-full bg-background-light px-screen-x py-screen-y">
|
||||
<ul role="list" class="text flex w-full space-x-screen-x whitespace-nowrap">
|
||||
<a href="/">{homeText}</a>
|
||||
<li class="w-full"></li>
|
||||
{links.map((link) => <a href={link.link}>{link.text}</a>)}
|
||||
</ul>
|
||||
</div>
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
import Background from '../content/global/Background.astro'
|
||||
import Font from '../content/global/Background.astro'
|
||||
import Head from '../content/global/Head.astro'
|
||||
import Background from './properties/Background.astro'
|
||||
import Font from './properties/Font.astro'
|
||||
import Head from './properties/Head.astro'
|
||||
import Navbar from '../content/global/Navbar.astro'
|
||||
|
||||
export interface Props {
|
||||
title: string
|
||||
|
@ -14,9 +15,10 @@ const { title, description } = Astro.props
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<Head title={title} description={description} />
|
||||
<body class="relative flex min-h-screen w-screen flex-col">
|
||||
<body class="min-h-screen w-screen">
|
||||
<Font>
|
||||
<Background>
|
||||
<Navbar />
|
||||
<slot />
|
||||
</Background>
|
||||
</Font>
|
||||
|
|
|
@ -13,6 +13,7 @@ module.exports = {
|
|||
colors: {
|
||||
background: '#dbf6db',
|
||||
'background-dark': '#bbd8bb',
|
||||
'background-light': '#ffffff',
|
||||
font: '#000000',
|
||||
pattern: 'rgba(0,0,0,.02)',
|
||||
},
|
||||
|
@ -22,6 +23,10 @@ module.exports = {
|
|||
backgroundSize: {
|
||||
contain: 'contain',
|
||||
},
|
||||
spacing: {
|
||||
'screen-x': '2rem',
|
||||
'screen-y': '1rem',
|
||||
},
|
||||
},
|
||||
plugins: [require('tailwindcss-hero-patterns')],
|
||||
}
|
||||
|
|
Reference in New Issue