Scroll all the way to the top for home
This commit is contained in:
parent
ef8688db85
commit
89b820eafc
3 changed files with 6 additions and 5 deletions
|
@ -4,7 +4,7 @@ import type Page from "../types/page.ts"
|
|||
const sections: Array<Page> = [
|
||||
{ title: "Home", id: "home", icon: "home" },
|
||||
{ title: "Projects", id: "projects", icon: "build" },
|
||||
{ title: "Hire", id: "hire", icon: "person" },
|
||||
{ title: "Hire Me", id: "hire", icon: "person" },
|
||||
]
|
||||
---
|
||||
|
||||
|
|
|
@ -5,9 +5,10 @@ import "../styles/global.css"
|
|||
|
||||
interface Props {
|
||||
title: string
|
||||
id?: string
|
||||
}
|
||||
|
||||
const { title } = Astro.props
|
||||
const { title, id } = Astro.props
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
@ -23,7 +24,7 @@ const { title } = Astro.props
|
|||
<meta name="generator" content={Astro.generator} />
|
||||
<title>Henry Hiles - {title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<body id={id}>
|
||||
<TopBar />
|
||||
<main><slot /></main>
|
||||
<slot name="navbar" />
|
||||
|
|
|
@ -17,8 +17,8 @@ import BottomBar from "../components/BottomBar.astro"
|
|||
import CallToAction from "../components/CallToAction.astro"
|
||||
---
|
||||
|
||||
<Layout title="Home">
|
||||
<header id="home">
|
||||
<Layout title="Home" id="home">
|
||||
<header>
|
||||
<Image src={logoLong} alt="Henry Hiles" />
|
||||
<span>Multiplatform Flutter Developer & Front-End Web Developer</span>
|
||||
<CallToAction />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue