Log inSign up

Examples library

Product Hunt launch announcement

Launching your product on Product Hunt? Broadcast the launch inside your app.

Product Hunt launch announcement example application – Flows

This example showcases how to create a Product Hunt launch announcement using Flows. It is powered by @flows/react and custom components.

Features

This example showcases multiple components that can be used to announce your Product Hunt launch inside your app.

Sidebar card

The sidebar card is a great way to announce your Product Hunt launch without overlaying important content. It is a embeddable component that can be placed in the sidebar of your app using the FlowsSlot component.

Sidebar card component rendered in the sidebar

Floating banner

A classic way to handle in app announcements. The floating banner shows up in the bottom right corner of the screen and can be dismissed by the user. It is easier to implement because it doesn’t require you to implement a slot in your app.

Floating banner component rendered in the bottom right corner of the screen

Top bar banner

Similarly to the sidebar card, the top bar banner is a great way to announce your Product Hunt launch without overlaying important content. It slides in from the top of the screen to catch the user’s attention. It is also an embeddable component that can be placed in the top bar of your app using the FlowsSlot component.

Top bar banner component rendered in the top bar

Regardless of the component you choose, using Flows to announce your Product Hunt launch is a great way to increase visibility and engagement. The components are designed to be easy to use and integrate into your app, so you can focus on what matters most: your important day. Good luck with your launch!

Getting started

  1. Sign up for Flows if you haven’t already. You can create a free account here.
  2. Clone the repository from GitHub and install the required dependencies in the project directory.
  3. Add your organization ID in the providers.tsx file.
  4. Create a new block template for Sidebar Banner in your organization with the following configuration:
    • UI component: SidebarBanner
    • Slottable: true
    • Custom properties:
      • Title
      • Description
      • Href
    • Exit nodes:
      • continue
  5. Create a new block template for Floating Banner in your organization with the following configuration:
    • UI component: FloatingBanner
    • Slottable: false
    • Custom properties:
      • Title
      • Description
      • Button label
      • Href
    • Exit nodes:
      • continue
  6. Create a new block template for Top Banner in your organization with the following configuration:
    • UI component: TopBanner
    • Slottable: true
    • Custom properties:
      • Text
      • Href
    • Exit nodes:
      • continue
  7. Recreate the workflow in your organization and publish it.
  8. Run the development server with pnpm dev.

Learn more

To learn more about Flows take a look at the following resources:

Framework

Next.js

Tags

Announcement
Engagement
Floating
Marketing
Promotion
Slottable

Explore more examples

Build anything with Flows

Build the product adoption experiences you've always wanted.

Get started for free