-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new docs homepage, migrate faq page
- Loading branch information
1 parent
0f89d0d
commit 4b8b371
Showing
8 changed files
with
114 additions
and
14 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.2 KB
packages/documentation-new/src/assets/astro-snipcart-logo-mark-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-564 Bytes
(98%)
packages/documentation-new/src/assets/astro-snipcart-logo-mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions
31
packages/documentation-new/src/components/CardWithAward.astro
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,31 @@ | ||
--- | ||
import type { ComponentProps } from 'astro/types'; | ||
import { Card } from '@astrojs/starlight/components'; | ||
import { Image } from 'astro:assets'; | ||
import award from '../assets/astro-award.png'; | ||
export type Props = ComponentProps<typeof Card>; | ||
--- | ||
<style> | ||
.container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
img { | ||
width: 80px; | ||
transform: translateY(-80px) translateX(-80px) rotate(10deg); | ||
} | ||
</style> | ||
<div class="container"> | ||
<Card {...Astro.props}> | ||
<div class="container"> | ||
<div> | ||
<slot /> | ||
</div> | ||
</div> | ||
</Card> | ||
<div> | ||
<Image src={award} alt="I won." width={200} /> | ||
</div> | ||
</div> |
11 changes: 0 additions & 11 deletions
11
packages/documentation-new/src/content/docs/guides/test.md
This file was deleted.
Oops, something went wrong.
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
66 changes: 66 additions & 0 deletions
66
packages/documentation-new/src/content/docs/introduction.mdx
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,66 @@ | ||
--- | ||
title: Introduction | ||
description: Introducing an Astro integration for Snipcart - Start your E-Commerce store and sell products in minutes! | ||
--- | ||
import { LinkCard, Card, CardGrid } from '@astrojs/starlight/components'; | ||
|
||
This integration is a solution for rapidly building and selling products on the web. Astro Snipcart is a free and open source e-commerce Astro integration that is built on top of the [Snipcart](https://snipcart.com) platform. | ||
|
||
*Create an e-commerce site with just a few lines of HTML and Astro components!* | ||
|
||
> What is Snipcart? | ||
> | ||
> Snipcart is a powerful, developer-first HTML/JavaScript shopping cart platform. You can use it to add custom e-commerce to any sites or web applications in minutes. | ||
<LinkCard | ||
title="Demonstration" | ||
href="https://astro-snipcart-playground.vercel.app/" | ||
description="A fully functional e-commerce demo site built with Astro Snipcart" /> | ||
|
||
<CardGrid> | ||
<LinkCard | ||
title="Demonstration" | ||
href="https://astro-snipcart-playground.vercel.app/" | ||
description="A fully functional e-commerce demo site built with Astro Snipcart" /> | ||
<LinkCard | ||
title="Snipcart Documentation" | ||
href="https://astro-snipcart-playground.vercel.app/" | ||
description="The Snipcart platform documentation" /> | ||
</CardGrid> | ||
|
||
|
||
## Features | ||
|
||
This Astro integration contains all of the features that you need to build an e-commerce site with [Snipcart](https://snipcart.com/), including: | ||
|
||
- ✅ **Automatic installation of the Snipcart library** | ||
- ✅ **Zero JavaScript by default (apart from Snipcart)** | ||
- ✅ **Astro components to define products** | ||
- ✅ **Astro components for features such as displaying basket and total price** | ||
- ✅ **TypeScript based product definitions surfaced as Astro component props** | ||
- ✅ **An optional small design system providing common e-commerce components** | ||
- 🔜 **Not just products, but subscription support also!** | ||
|
||
## Getting Started | ||
|
||
Read the [Getting Started](./getting-started) guide to learn how to install and use the Astro Snipcart integration. | ||
Here is a small preview of how easy it is to create a product. | ||
|
||
```astro frame="code" title="/components/Product.astro" | ||
<Product | ||
as="span" | ||
id="SKU-0003" | ||
name="Standard T-Shirt" | ||
price={12.99} | ||
description="Every day basic t-shirt" | ||
image="/blue-t-shirt.jpg" | ||
categories={['cotton', 'clothes', 'blue']}> | ||
<Button> | ||
Add | ||
</Button> | ||
</Product> | ||
``` | ||
|
||
Store and load your data from [anywhere that suits your project best!](/en/product-definition) | ||
|
||
![Astro Snipcart](/data-storage.png "Astro Snipcart") |