Skip to content

Commit 5b455cc

Browse files
committed
fix nav
1 parent bc08e6b commit 5b455cc

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ Astroship is a starter template for startups, marketing websites & landing pages
44

55
This Free Template is sponsored by [Web3Templates](https://web3templates.com)
66

7+
## Live Demo
8+
9+
### [https://astroship.web3templates.com/](https://astroship.web3templates.com/)
10+
11+
## Deploy on Vercel
12+
13+
Click the below link to deploy this template on Vercel
14+
15+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/surjithctly/astroship)
16+
717
![image](https://user-images.githubusercontent.com/1884712/200831799-10ef2456-a02e-4068-b580-4b5326f0b33b.png)
818

919
## Installation

src/components/navbar/navbar.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ const menuitems = [
9696
))
9797
}
9898
</ul>
99+
<div class="lg:hidden flex items-center mt-3 gap-4">
100+
<Link href="#" style="muted" block size="md">Log in</Link>
101+
<Link href="#" size="md" block>Sign up</Link>
102+
</div>
99103
</nav>
100104
<div>
101105
<div class="hidden lg:flex items-center gap-4">

src/components/ui/link.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ interface Props {
33
href: string;
44
size?: "md" | "lg";
55
block?: boolean;
6-
style?: "outline" | "primary" | "inverted";
6+
style?: "outline" | "primary" | "inverted" | "muted";
77
class?: string;
88
[x: string]: any;
99
}
@@ -26,6 +26,7 @@ const styles = {
2626
outline: "bg-white border-2 border-black hover:bg-gray-100 text-black ",
2727
primary: "bg-black text-white hover:bg-gray-800 border-2 border-transparent",
2828
inverted: "bg-white text-black border-2 border-transparent",
29+
muted: "bg-gray-100 hover:bg-gray-200 border-2 border-transparent",
2930
};
3031
---
3132

src/layouts/Layout.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { title } = Astro.props;
2828

2929
<!-- <link rel="preload" as="image" href={src} alt="Hero" /> -->
3030
<SEO
31-
title={`${title}${title && " | "}Astro Ship`}
31+
title={`${title}${title && " | "}Astroship`}
3232
description="Astroship is a starter website template for Astro built with TailwindCSS."
3333
twitter={{
3434
creator: "@surjithctly",
@@ -38,9 +38,12 @@ const { title } = Astro.props;
3838
openGraph={{
3939
basic: {
4040
type: "website",
41-
title: `${title}${title && " | "}Astro Ship`,
41+
title: `Astroship - Starter Template for Astro`,
4242
image: resolvedImageWithDomain,
4343
},
44+
image: {
45+
alt: "Astroship Homepage Screenshot",
46+
},
4447
}}
4548
/>
4649
</head>

src/pages/blog.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ console.log(posts[0].frontmatter.image);
2929
posts.map((post) => (
3030
<li>
3131
<a href={post.url}>
32-
<div class="grid md:grid-cols-2 gap-10 items-center">
32+
<div class="grid md:grid-cols-2 gap-5 md:gap-10 items-center">
3333
<div>
3434
<Image
3535
src={post.frontmatter.image}
3636
alt="Thumbnail"
3737
width={600}
3838
format="avif"
3939
aspectRatio="16:9"
40-
class="rounded-md"
40+
class="w-full rounded-md"
4141
/>
4242
</div>
4343
<div>

0 commit comments

Comments
 (0)