Skip to content

Commit

Permalink
add floating inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaaaa committed Sep 14, 2024
1 parent c30dd13 commit b21d634
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 61 deletions.
12 changes: 6 additions & 6 deletions docs/pages/chat-widget/chat-widget.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
description: "Embed a "floating inbox" chat widget built with XMTP on your website"
description: "Embed a floating inbox chat widget built with XMTP on your website"
---

# Embed a chat widget built with XMTP on your website
# Embed a floating inbox chat widget built with XMTP

You can embed a "floating inbox" chat widget built with XMTP on your website.
You can embed a "floating inbox" chat widget built with XMTP on your website.

You can use one of these floating inbox quickstart exmaple apps to get started:
You can use one of these floating inbox quickstart example apps to get started:

- [For JavaScript](https://github.com/xmtp/xmtp-quickstart-reactjs)

- [With React hooks](https://github.com/xmtp/xmtp-quickstart-hooks)

- [With Next.js hooks](https://github.com/xmtp/xmtp-quickstart-hooks-next)

For exmaple, here's a screenshot of the floating inbox chat widget built with the JavaScript quickstart app. You can also try out the [JavaScript quickstart app](https://xmtp-quickstart-reactjs.vercel.app/).
For example, here's a screenshot of the floating inbox chat widget built with the JavaScript quickstart app. You can also try out the [JavaScript quickstart app](https://xmtp-quickstart-reactjs.vercel.app/).

![Screenshot of the floating inbox chat widget](./chat-widget-screenshot.png)
![Screenshot of the floating inbox chat widget](https://raw.githubusercontent.com/xmtp/docs-xmtp-org/main/docs/pages/img/floating-inbox.png)
36 changes: 0 additions & 36 deletions docs/pages/get-started/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ Here are some quickstarts and example apps to help you get started with building
A Repl of a full flow for sending and streaming messages in JavaScript
</small>
</li>
<li>
<a
className="vocs_Anchor vocs_Link vocs_Link_accent_underlined vocs_ExternalLink plausible-event-name=Quickstart"
href="https://github.com/xmtp/xmtp-quickstart-reactjs"
>
Floating inbox quickstart app
</a>
<small>Use it to help you build your own app with XMTP.</small>
</li>
<li>
<a
className="vocs_Anchor vocs_Link vocs_Link_accent_underlined vocs_ExternalLink plausible-event-name=Quickstart"
Expand All @@ -97,33 +88,6 @@ Here are some quickstarts and example apps to help you get started with building

<div data-title="React">
<ul className="TabbedList">
<li>
<a
className="vocs_Anchor vocs_Link vocs_Link_accent_underlined vocs_ExternalLink plausible-event-name=Quickstart"
href="https://github.com/xmtp/xmtp-quickstart-hooks"
>
Floating inbox quickstart app with React hooks
</a>
<small>Use it to help you build your own app with XMTP</small>
</li>
<li>
<a
className="vocs_Anchor vocs_Link vocs_Link_accent_underlined vocs_ExternalLink plausible-event-name=Quickstart"
href="https://github.com/xmtp/xmtp-quickstart-reactjs-next"
>
Floating inbox quickstart app with Next.js
</a>
<small>Use it to help you build your own app with XMTP.</small>
</li>
<li>
<a
className="vocs_Anchor vocs_Link vocs_Link_accent_underlined vocs_ExternalLink plausible-event-name=Quickstart"
href="https://github.com/xmtp/xmtp-quickstart-hooks-next"
>
Floating inbox quickstart app with Next.js hooks
</a>
<small>Use it to help you build your own app with XMTP.</small>
</li>
<li>
<a
className="vocs_Anchor vocs_Link vocs_Link_accent_underlined vocs_ExternalLink plausible-event-name=Example"
Expand Down
28 changes: 17 additions & 11 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CustomHomePage } from '../components/CustomHomePage'
Build with XMTP
</CustomHomePage.Headline>
<CustomHomePage.Subhead>
A secure and resilient communications protocol—for the next phase of the internet
A secure & resilient communication protocol—for the next phase of the internet
</CustomHomePage.Subhead>
<CustomHomePage.TileGrid>
<CustomHomePage.Tile
Expand All @@ -15,12 +15,18 @@ import { CustomHomePage } from '../components/CustomHomePage'
icon="📚"
/>
<CustomHomePage.Tile
href="https://github.com/ephemeraHQ/converse-app"
title="Explore Converse"
description="Explore open source code for Converse apps built with XMTP"
icon="👩🏽‍💻"
href="https://message-kit.vercel.app/"
title="Build chat bots"
description="Build bots that can send messages in XMTP chats"
icon="🤖"
isExternal={true}
/>
<CustomHomePage.Tile
href="/chat-widget/chat-widget"
title="Embed a floating inbox"
description="Embed a floating inbox chat widget on your website"
icon="🎈"
/>
<CustomHomePage.Tile
href="/consent/subscribe"
title="Broadcast notifications"
Expand All @@ -33,11 +39,11 @@ import { CustomHomePage } from '../components/CustomHomePage'
description="Build standalone chat inbox apps for mobile and web"
icon="📥"
/>
<CustomHomePage.Tile
href="https://message-kit.vercel.app/"
title="Build chat bots"
description="Build bots that can send messages in XMTP chats"
icon="🤖"
<CustomHomePage.Tile
href="https://github.com/ephemeraHQ/converse-app"
title="Explore Converse"
description="Explore open source code for Converse apps built with XMTP"
icon="👩🏽‍💻"
isExternal={true}
/>
<CustomHomePage.Tile
Expand All @@ -47,4 +53,4 @@ import { CustomHomePage } from '../components/CustomHomePage'
icon="🧠"
/>
</CustomHomePage.TileGrid>
</CustomHomePage.Root>
</CustomHomePage.Root>
2 changes: 1 addition & 1 deletion docs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,4 @@ small + ul.TabbedList {
background-color: rgba(255, 255, 255, 0.01); /* Slightly lighter on hover */
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.02);
border-color: var(--vocs-color-primary);
}
}
9 changes: 2 additions & 7 deletions vocs.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,8 @@ export default defineConfig({
},
{
text: "Embed a chat widget",
collapsed: true,
items: [
{
text: "Developer quickstart",
link: "/get-started/developer-quickstart",
},
],
link: "/chat-widget/chat-widget",
items: [], // Add this line
},
{
text: "Broadcast notifications",
Expand Down

0 comments on commit b21d634

Please sign in to comment.