finish homepage
This commit is contained in:
@@ -6,13 +6,13 @@ import "@fontsource/inter/variable.css";
|
||||
export interface Props {
|
||||
title: string;
|
||||
}
|
||||
const { src } = await getImage({
|
||||
src: "../../assets/hero.png",
|
||||
width: 800,
|
||||
height: 742,
|
||||
format: "avif",
|
||||
});
|
||||
console.log(src);
|
||||
// const { src } = await getImage({
|
||||
// src: "../../assets/hero.png",
|
||||
// width: 800,
|
||||
// height: 742,
|
||||
// format: "avif",
|
||||
// });
|
||||
// console.log(src);
|
||||
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
@@ -25,7 +25,7 @@ const { title } = Astro.props;
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
|
||||
<link rel="preload" as="image" href={src} alt="Hero" />
|
||||
<!-- <link rel="preload" as="image" href={src} alt="Hero" /> -->
|
||||
<title>{title} {title && "|"} Astro Ship</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user