hero section

This commit is contained in:
Surjith S M
2022-11-03 21:47:36 +05:30
parent ee30a40c17
commit f6f484e67d
13 changed files with 294 additions and 156 deletions

View File

@@ -1,6 +1,8 @@
---
import Navbar from "@components/navbar/navbar.astro";
import "@fontsource/inter/variable.css";
export interface Props {
title: string;
}
@@ -21,11 +23,15 @@ const { title } = Astro.props;
<Navbar />
<slot />
<style is:global>
// Improve Page speed
// https://css-tricks.com/almanac/properties/c/content-visibility/
/* Improve Page speed */
/* https://css-tricks.com/almanac/properties/c/content-visibility/ */
img {
content-visibility: auto;
}
/* Avoid Alpine.js Hidden Element Flash */
[x-cloak] {
display: none;
}
</style>
</body>
</html>