Skip to content

Commit 111a03d

Browse files
committed
clean-up
1 parent d992974 commit 111a03d

File tree

5 files changed

+3418
-521
lines changed

5 files changed

+3418
-521
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
# Example NextJS Advanced Contact Form
1+
# Example NextJS Floating Contact Form
22

33
This NextJS app shows how to build a floating support bubble using Plain's [Custom Timeline Entries](https://docs.plain.com/recipes/custom-timeline-entry-upsert) and [Typescript SDK](https://www.npmjs.com/package/@team-plain/typescript-sdk).
44

5-
Using this contact form customers can easily get in touch with you
5+
Using this contact form customers can easily get in touch with you, or jump to your discord community or docs.
66

77
This example mainly consists of one [Next.js API Route](https://nextjs.org/docs/api-routes/introduction) (`/api/contact-form.tsx`) which calls the Plain API to:
88

99
- Create the customer within Plain if they don't exist
1010
- Create a Custom Timeline Entry with the contents of the contact form
1111

12-
You can see what it looks like here https://TODO.vercel.app/ but you will need to run this example yourself if you want to see what it looks like within Plain as someone providing support.
12+
You can see what it looks like here https://example-nextjs-floating-form.vercel.app/ but you will need to run this example yourself if you want to see what it looks like within Plain as someone providing support.
1313

1414
This is meant as a starting point that you can customise to specifically fit your product and needs.
1515

16+
![screenshot.png](./screenshot.png)
17+
1618
### Interesting files:
1719

18-
- The API route: [./pages/api/contact-form.ts](./pages/api/contact-form.ts)
20+
- The API route: [./pages/api/contact-form.ts](./pages/api/contact-form.ts)
1921
- The contact form react component: [./src/components/contactForm.tsx](./src/components/contactForm.tsx)
2022

2123
### Running the example:

0 commit comments

Comments
 (0)