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> = [
|
const sections: Array<Page> = [
|
||||||
{ title: "Home", id: "home", icon: "home" },
|
{ title: "Home", id: "home", icon: "home" },
|
||||||
{ title: "Projects", id: "projects", icon: "build" },
|
{ 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 {
|
interface Props {
|
||||||
title: string
|
title: string
|
||||||
|
id?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title } = Astro.props
|
const { title, id } = Astro.props
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
@ -23,7 +24,7 @@ const { title } = Astro.props
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>Henry Hiles - {title}</title>
|
<title>Henry Hiles - {title}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body id={id}>
|
||||||
<TopBar />
|
<TopBar />
|
||||||
<main><slot /></main>
|
<main><slot /></main>
|
||||||
<slot name="navbar" />
|
<slot name="navbar" />
|
||||||
|
|
|
@ -17,8 +17,8 @@ import BottomBar from "../components/BottomBar.astro"
|
||||||
import CallToAction from "../components/CallToAction.astro"
|
import CallToAction from "../components/CallToAction.astro"
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="Home">
|
<Layout title="Home" id="home">
|
||||||
<header id="home">
|
<header>
|
||||||
<Image src={logoLong} alt="Henry Hiles" />
|
<Image src={logoLong} alt="Henry Hiles" />
|
||||||
<span>Multiplatform Flutter Developer & Front-End Web Developer</span>
|
<span>Multiplatform Flutter Developer & Front-End Web Developer</span>
|
||||||
<CallToAction />
|
<CallToAction />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue