Skip to content

Commit

Permalink
fix nav
Browse files Browse the repository at this point in the history
  • Loading branch information
surjithctly committed Nov 9, 2022
1 parent bc08e6b commit 5b455cc
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

## Live Demo

### [https://astroship.web3templates.com/](https://astroship.web3templates.com/)

## Deploy on Vercel

Click the below link to deploy this template on Vercel

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/surjithctly/astroship)

![image](https://user-images.githubusercontent.com/1884712/200831799-10ef2456-a02e-4068-b580-4b5326f0b33b.png)

## Installation
Expand Down
4 changes: 4 additions & 0 deletions src/components/navbar/navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ const menuitems = [
))
}
</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>
<div>
<div class="hidden lg:flex items-center gap-4">
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/link.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interface Props {
href: string;
size?: "md" | "lg";
block?: boolean;
style?: "outline" | "primary" | "inverted";
style?: "outline" | "primary" | "inverted" | "muted";
class?: string;
[x: string]: any;
}
Expand All @@ -26,6 +26,7 @@ const styles = {
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",
inverted: "bg-white text-black border-2 border-transparent",
muted: "bg-gray-100 hover:bg-gray-200 border-2 border-transparent",
};
---

Expand Down
7 changes: 5 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const { title } = Astro.props;

<!-- <link rel="preload" as="image" href={src} alt="Hero" /> -->
<SEO
title={`${title}${title && " | "}Astro Ship`}
title={`${title}${title && " | "}Astroship`}
description="Astroship is a starter website template for Astro built with TailwindCSS."
twitter={{
creator: "@surjithctly",
Expand All @@ -38,9 +38,12 @@ const { title } = Astro.props;
openGraph={{
basic: {
type: "website",
title: `${title}${title && " | "}Astro Ship`,
title: `Astroship - Starter Template for Astro`,
image: resolvedImageWithDomain,
},
image: {
alt: "Astroship Homepage Screenshot",
},
}}
/>
</head>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ console.log(posts[0].frontmatter.image);
posts.map((post) => (
<li>
<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>
<Image
src={post.frontmatter.image}
alt="Thumbnail"
width={600}
format="avif"
aspectRatio="16:9"
class="rounded-md"
class="w-full rounded-md"
/>
</div>
<div>
Expand Down

1 comment on commit 5b455cc

@vercel
Copy link

@vercel vercel bot commented on 5b455cc Nov 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.