-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from bzr-sys/content
Update content, add benefits and apps
- Loading branch information
Showing
18 changed files
with
404 additions
and
83 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,39 @@ | ||
--- | ||
import { getCollection } from "astro:content"; | ||
import LogoOutlineSVG from "./LogoOutlineSVG.astro"; | ||
let { collection, limit } = Astro.props; | ||
const allFeatures = await getCollection(collection); | ||
const orderedFeatures = allFeatures.sort((a, b) => | ||
a.data.order < b.data.order ? -1 : 1 | ||
); | ||
if (!limit) { | ||
limit = orderedFeatures.length; | ||
} | ||
--- | ||
|
||
<div class="mx-auto grid max-w-screen-2xl gap-4 px-4 py-8 lg:grid-cols-3"> | ||
{ | ||
orderedFeatures.map( | ||
(f, i) => | ||
i < limit && ( | ||
<div class="card w-full bg-base-200 shadow-xl"> | ||
<div class="card-body"> | ||
<div class="mx-auto"> | ||
<LogoOutlineSVG width="200px" /> | ||
</div> | ||
<h2 class="card-title"> | ||
<a href={`/${f.collection}/${f.slug}`}>{f.data.title}</a> | ||
</h2> | ||
<p>{f.data.summary}</p> | ||
<div class="card-actions justify-end"> | ||
<a href={`/${f.collection}/${f.slug}`} class="btn btn-primary"> | ||
Learn More | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
) | ||
} | ||
</div> |
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
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,19 @@ | ||
--- | ||
title: Bazaar-Chat | ||
summary: A simple messaging app that allows you to chat with your friends, colleagues, and contacts. | ||
order: 1 | ||
--- | ||
|
||
Not sure what we should write here. | ||
|
||
TODO: figure out a template for presenting apps. | ||
|
||
## Main features maybe | ||
|
||
Just a simple individual chat. | ||
|
||
All messages are yours, i.e., if you delete them, they are gone. | ||
|
||
## Try for yourself | ||
|
||
[Visit the app](https://bzr-sys.github.io/bazaar-chat/) |
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,5 @@ | ||
--- | ||
title: Pure JavaScript | ||
--- | ||
|
||
Get started with plain JavaScript, no framework. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Vue.js | ||
title: Vue | ||
--- | ||
|
||
Get started with Bazaar and Vue.js. | ||
Get started with Bazaar and Vue.js. |
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
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
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,36 @@ | ||
--- | ||
title: Powerful Social Fabric | ||
summary: Bazaar has social features built-in and any app can use them to create a more meaningful experience. | ||
order: 4 | ||
--- | ||
|
||
Bazaar is social from the ground up. It has a built-in notion of users and contacts which is akin to people you add to your address book. Contacts can then be connected, requiring both sides to acknowledged the status. Connected contacts can have extra permissions. | ||
|
||
## One social graph for all apps | ||
|
||
Contacts and connected contacts can be queried by any app. This allows for meaningful features where you can share and interact with the people you care about. Since Bazaar apps only run in your Browser, your social information is not used for anything other then the apps functionality. | ||
|
||
## You are in control | ||
|
||
Managing your contacts can only be done via the Bazaar dashboard. This means no Bazaar app can tamper with your social network. | ||
|
||
## A simple API | ||
|
||
The social API is as simple as it gets. | ||
|
||
```ts | ||
// Get user info for a given handle | ||
const user = await bzr.social.getUser({ handle: "somebody" }); | ||
// List all contacts | ||
const contacts = await bzr.social.contacts.list(); | ||
``` | ||
|
||
All advanced social features like searching for users, adding or connecting a contact can only be done via a modal: | ||
|
||
```ts | ||
bzr.social.openModal((userId) => { | ||
/**do something */ | ||
}); | ||
``` | ||
|
||
TODO screenshot modal. |
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,23 @@ | ||
--- | ||
title: Subscriptions (Coming Soon) | ||
summary: Bazaar subscriptions make it trivial to monetize your app or let your user monetize their content. | ||
order: 8 | ||
--- | ||
|
||
Bazaar introduces the simplest way to monetize your app and allow your users to monetize their content. | ||
|
||
## How It Works | ||
|
||
The subscription API is simple. The app developer or users may create plans which other users can subscribe to. Bazaar's permission API then allows users to give access to data based on whether a user has subscribed to a certain plan. | ||
|
||
## Benefits for Developers | ||
|
||
- **Simple Setup:** The Subscription API is simple to use. There is no need for backend configuration or webhook setup. | ||
- **Paid App Features:** Easily set up app features that require a subscription. Multiple tiers and plans are possible. | ||
- **Earn with your users:** Get a cut from all subscriptions in your app, including for plans created by your users. | ||
|
||
## Benefits for Users | ||
|
||
- **Overview Over Costs:** See & manage all subscriptions from all Bazaar apps you are using in one place. | ||
- **Earnings Dashboard:** Get an overview of all plans you offer in all your Bazaar apps. See all your earnings across all plans you offer. | ||
- **Simple Control** End subscriptions anytime, without hoops or endless "are you sure you don't want to stay for a discount" screens. |
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
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,12 @@ | ||
--- | ||
import BaseLayout from "../layouts/BaseLayout.astro"; | ||
import BigTitle from "../components/BigTitle.astro"; | ||
import FeatureGrid from "../components/FeatureGrid.astro"; | ||
const title = "Highlighted Apps"; | ||
--- | ||
|
||
<BaseLayout title={title}> | ||
<BigTitle>{title}</BigTitle> | ||
<FeatureGrid collection="apps" /> | ||
</BaseLayout> |
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,21 @@ | ||
--- | ||
import type { GetStaticPaths } from "astro"; | ||
import { getCollection } from "astro:content"; | ||
import PageLayout from "../../layouts/PageLayout.astro"; | ||
export const getStaticPaths = (async () => { | ||
const entries = await getCollection("apps"); | ||
return entries.map((entry) => ({ | ||
params: { slug: entry.slug }, | ||
props: { entry }, | ||
})); | ||
}) satisfies GetStaticPaths; | ||
const { entry } = Astro.props; | ||
const { Content } = await entry.render(); | ||
--- | ||
|
||
<PageLayout title={entry.data.title}> | ||
<h1>{entry.data.title}</h1> | ||
<Content /> | ||
</PageLayout> |
Oops, something went wrong.