-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
313 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { type FeaturedProductsPromise } from "@/lib/fetchers/product" | ||
import { ProductCard } from "@/components/cards/product-card" | ||
|
||
interface FeaturedProductsProps { | ||
productsPromise: FeaturedProductsPromise | ||
} | ||
|
||
export async function FeaturedProducts({ | ||
productsPromise, | ||
}: FeaturedProductsProps) { | ||
const products = await productsPromise | ||
|
||
return ( | ||
<> | ||
{products.map((product) => ( | ||
<ProductCard key={product.id} product={product} /> | ||
))} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { type FeaturedStoresPromise } from "@/lib/fetchers/store" | ||
import { StoreCard } from "@/components/cards/store-card" | ||
|
||
interface FeaturedStoresProps { | ||
storesPromise: FeaturedStoresPromise | ||
} | ||
|
||
export async function FeaturedStores({ storesPromise }: FeaturedStoresProps) { | ||
const stores = await storesPromise | ||
|
||
return ( | ||
<> | ||
{stores.map((store) => ( | ||
<StoreCard | ||
key={store.id} | ||
store={store} | ||
href={`/products?store_ids=${store.id}`} | ||
/> | ||
))} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Link from "next/link" | ||
|
||
import { siteConfig } from "@/config/site" | ||
import { type GithubStarsPromise } from "@/lib/fetchers/github" | ||
import { Badge } from "@/components/ui/badge" | ||
import { Icons } from "@/components/icons" | ||
|
||
interface GithubStarsProps { | ||
githubStarsPromise: GithubStarsPromise | ||
} | ||
|
||
export async function GithubStars({ githubStarsPromise }: GithubStarsProps) { | ||
const githubStars = await githubStarsPromise | ||
|
||
return ( | ||
<Link href={siteConfig.links.github} target="_blank" rel="noreferrer"> | ||
<Badge | ||
aria-hidden="true" | ||
className="rounded-md px-3.5 py-1.5" | ||
variant="secondary" | ||
> | ||
<Icons.gitHub className="mr-2 h-3.5 w-3.5" aria-hidden="true" /> | ||
{githubStars} stars on GitHub | ||
</Badge> | ||
<span className="sr-only">GitHub</span> | ||
</Link> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
78de8f9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
skateshop – ./
skateshop-sadmann7.vercel.app
skateshop13.vercel.app
skateshop.sadmn.com
skateshop-git-main-sadmann7.vercel.app