fix nav
This commit is contained in:
10
README.md
10
README.md
@@ -4,6 +4,16 @@ Astroship is a starter template for startups, marketing websites & landing pages
|
|||||||
|
|
||||||
This Free Template is sponsored by [Web3Templates](https://web3templates.com)
|
This Free Template is sponsored by [Web3Templates](https://web3templates.com)
|
||||||
|
|
||||||
|
## Live Demo
|
||||||
|
|
||||||
|
### [https://astroship.web3templates.com/](https://astroship.web3templates.com/)
|
||||||
|
|
||||||
|
## Deploy on Vercel
|
||||||
|
|
||||||
|
Click the below link to deploy this template on Vercel
|
||||||
|
|
||||||
|
[](https://vercel.com/new/clone?repository-url=https://github.com/surjithctly/astroship)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -96,6 +96,10 @@ const menuitems = [
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="lg:hidden flex items-center mt-3 gap-4">
|
||||||
|
<Link href="#" style="muted" block size="md">Log in</Link>
|
||||||
|
<Link href="#" size="md" block>Sign up</Link>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div>
|
<div>
|
||||||
<div class="hidden lg:flex items-center gap-4">
|
<div class="hidden lg:flex items-center gap-4">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ interface Props {
|
|||||||
href: string;
|
href: string;
|
||||||
size?: "md" | "lg";
|
size?: "md" | "lg";
|
||||||
block?: boolean;
|
block?: boolean;
|
||||||
style?: "outline" | "primary" | "inverted";
|
style?: "outline" | "primary" | "inverted" | "muted";
|
||||||
class?: string;
|
class?: string;
|
||||||
[x: string]: any;
|
[x: string]: any;
|
||||||
}
|
}
|
||||||
@@ -26,6 +26,7 @@ const styles = {
|
|||||||
outline: "bg-white border-2 border-black hover:bg-gray-100 text-black ",
|
outline: "bg-white border-2 border-black hover:bg-gray-100 text-black ",
|
||||||
primary: "bg-black text-white hover:bg-gray-800 border-2 border-transparent",
|
primary: "bg-black text-white hover:bg-gray-800 border-2 border-transparent",
|
||||||
inverted: "bg-white text-black border-2 border-transparent",
|
inverted: "bg-white text-black border-2 border-transparent",
|
||||||
|
muted: "bg-gray-100 hover:bg-gray-200 border-2 border-transparent",
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const { title } = Astro.props;
|
|||||||
|
|
||||||
<!-- <link rel="preload" as="image" href={src} alt="Hero" /> -->
|
<!-- <link rel="preload" as="image" href={src} alt="Hero" /> -->
|
||||||
<SEO
|
<SEO
|
||||||
title={`${title}${title && " | "}Astro Ship`}
|
title={`${title}${title && " | "}Astroship`}
|
||||||
description="Astroship is a starter website template for Astro built with TailwindCSS."
|
description="Astroship is a starter website template for Astro built with TailwindCSS."
|
||||||
twitter={{
|
twitter={{
|
||||||
creator: "@surjithctly",
|
creator: "@surjithctly",
|
||||||
@@ -38,9 +38,12 @@ const { title } = Astro.props;
|
|||||||
openGraph={{
|
openGraph={{
|
||||||
basic: {
|
basic: {
|
||||||
type: "website",
|
type: "website",
|
||||||
title: `${title}${title && " | "}Astro Ship`,
|
title: `Astroship - Starter Template for Astro`,
|
||||||
image: resolvedImageWithDomain,
|
image: resolvedImageWithDomain,
|
||||||
},
|
},
|
||||||
|
image: {
|
||||||
|
alt: "Astroship Homepage Screenshot",
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ console.log(posts[0].frontmatter.image);
|
|||||||
posts.map((post) => (
|
posts.map((post) => (
|
||||||
<li>
|
<li>
|
||||||
<a href={post.url}>
|
<a href={post.url}>
|
||||||
<div class="grid md:grid-cols-2 gap-10 items-center">
|
<div class="grid md:grid-cols-2 gap-5 md:gap-10 items-center">
|
||||||
<div>
|
<div>
|
||||||
<Image
|
<Image
|
||||||
src={post.frontmatter.image}
|
src={post.frontmatter.image}
|
||||||
@@ -37,7 +37,7 @@ console.log(posts[0].frontmatter.image);
|
|||||||
width={600}
|
width={600}
|
||||||
format="avif"
|
format="avif"
|
||||||
aspectRatio="16:9"
|
aspectRatio="16:9"
|
||||||
class="rounded-md"
|
class="w-full rounded-md"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user