Welcome to this in-depth tutorial on how to build a modern, AI-assisted landing page for a BBQ restaurant using FlyonUI, Copy Prompt, and Context7 MCP โ all inside a Next.js project.
โก Whether you're a developer looking to speed up UI creation or someone curious about integrating AI tools into your dev workflow, this guide will walk you through every step.
Table of Contents
- ๐จโ๐ซ Introduction
- ๐งฑ What Are FlyonUI Blocks?
- โ๏ธ Starting with Different Framework and Technologies
- โ Steps:
- ๐ง Letโs build the BBQ Restaurant Landing Page with the Copy Prompt Feature
- ๐ ๏ธ How It Works
- How to Customise FlyonUI Blocks
- โ Conclusion
- ๐บ Watch the Full Video
๐งโ๐ป Introduction
Hey everyone! In this blog, weโll walk you through how we built a fully responsive landing page for a BBQ restaurant using FlyonUI Blocks and some powerful AI tools.
We'll be using:
- FlyonUI Blocks
- The Copy Prompt feature
- And the Context7 MCP server
All inside a Next.js setup โ itโs super fast, clean, and easy to extend.
๐งพ What Are FlyonUI Blocks?
FlyonUI Blocks are a curated collection of 500+ ready-to-use layout sections built with Tailwind CSS, covering everything from marketing headers to dashboards, ecommerce pages, data tables, and more. Each block is customizable, responsive, accessible, and supports themes and RTL layouts.
FlyonUI is an open-source Tailwind Component library offering:
- 80+ standalone components, like buttons, cards, modals, alerts, switchers, accordions, and advanced selects
- Blocks built on top of componentsโ500+ free and premium layout sections to compose pages quickly
๐ Block Categories at a Glance
FlyonUI Blocks fall into five main categories:
Category | Description |
---|---|
Marketing UI | Hero sections, CTAs, feature highlights, testimonials |
Dashboard & App UI | Layouts, widgets, modals, sidebars, charts, forms |
eCommerce UI | Product cards, filters, reviews, cart, checkout flows |
Data Table UI | Interactive tables, stats, filters, pagination |
Bento Grid UI | Responsive grids and layout systems |
Each section includes both free and pro options and is theme-ready with RTL support.
๐จ Why Use FlyonUI Blocks?
โก JetโFast UI Composition
You can assemble entire pages by mixing and matching the Tailwind blocksโno repetitive boilerplate, just copy-paste or import.
๐งฉ Clean, Maintainable Code
Blocks use semantic class names built on Tailwind utilities for readable, modifiable markup that avoids class clutter.
๐ Unlimited Theming
Support for multiple design themes (Light, Dark, Luxury, Corporate, etc.) without rewriting classes, plus full dark mode and RTL compatibility.
๐ก Fully Customizable Interactivity
Includes headless JS plugins for accessible interactive components (dropdowns, accordions, overlays)โno additional frameworks needed.
๐ CrossโFramework Support
Works seamlessly in plain HTML or within React, Vue, Svelte, and other Tailwind-compatible environments.
โ๏ธ Starting with Different Frameworks and Technologies
FlyonUI provides framework integration guides for multiple frameworks. Most contain manual setup instructions and starter kits. Weโll be using the Next.js starter kit for this tutorial.
โ Steps:
- Clone the FlyonUI Next.js starter project
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
๐ก New to FlyonUI? Watch the Getting Started with FlyonUI | Beginnerโs Guide โก๏ธ.
How to Use FlyonUI Blocks
There are multiple ways to use FlyonUI Blocks:
1. Copy-Paste FlyonUI Blocks
You can use the Copy button in the code section to grab the HTML. However, if the block contains CSS or JS, you must copy and integrate those separately into your project.
2. Using Copy Prompt
This feature lets you copy a complete code block (HTML, CSS, JS) using a structured prompt โ ideal for feeding into AI tools.
๐ง Letโs build the BBQ Restaurant Landing Page with the Copy Prompt Feature
The Copy Prompt feature is a game-changer. It helps you instantly copy a structured prompt to feed into your favorite AI tool.
๐ How It Works
Visit ๐ FlyonUIโs Tailwind CSS Blocks.
Use the pre-built prompts to generate your website sections using AI tools like VS Code, Cursor, or Windsurf.
1. ๐ฅ Hero Section
- Go to the Hero section.
- Select the block you want, then click the "Copy Prompt" button.
- Paste it into your AI tool.
-
Add further custom instructions:
Create a hero section related to my BBQ restaurant, so update the context accordingly. - Don't use image imports; use an HTML <img> tag instead.
2. ๐จโ๐ณ About Us Section
- Navigate to the About Us section.
- Select the block you want, then click the "Copy Prompt" button.
- Paste it into your AI tool.
-
Add further custom instructions:
Create an About Us section using the above code, add it after the hero section, and update the image using Unsplash and context
3. ๐ Menu Section
- Navigate to the Gallery, we will use this as the Menu section so we can display images.
- Select the block you want, then click the "Copy Prompt" button.
- Paste it into your AI tool.
-
Add further custom instructions:
Create me the menu section with the help of the above Gallery code, keep the file name menu section, update the image from Unsplash, and also update the context accordingly
-
Now, sometimes the image from Unsplash might be broken as they might be pro images, so we will update those with the help of AI
Image-xzy is broken, change it to a working link, use a free Unsplash image
4. ๐๏ธ Services Section
- Go to the Blog, we will use it for Service section.
- Select the block you want, then click the "Copy Prompt" button.
- Paste it into your AI tool.
-
Add further custom instructions:
Create a Services section for my BBQ restaurant (e.g., dine-in, catering, delivery). Place it after the menu section.
5. ๐ Testimonials
- Visit the Testimonials section.
- Select the block you want, then click the "Copy Prompt" button.
- Paste it into your AI tool.
-
Add further custom instructions:
Create a Testimonials section withthe provided code and add it after the service section
6. ๐ Contact Us
- Navigate to the Contact Us section.
- Select the block you want, then click the "Copy Prompt" button.
- Paste it into your AI tool.
-
Add further custom instructions:
Create a booking section with the help of the above code and add it after the testimonials section
7. ๐ Footer
- Go to the Footer section.
- Select the block you want, then click the "Copy Prompt" button.
- Paste it into your AI tool.
-
Add further custom instructions:
Create me Footer section with the help above code and add it after the testimonials section
How to Customise FlyonUI Blocks
There are two methods:
๐งฉย 1. Direct Code Changes
Once a section is created, you might want to adjust things like icon sizes, spacing, padding, or margins to better match your design.
These changes can be done manually in the code.
๐ Example: Adjusting Icon (Avatar) Size
Letโs say you want to increase the size of an avatar icon. Hereโs the original code:
<div class="avatar"> <div class="size-10 rounded-full"> <img src="<https://cdn.flyonui.com/fy-assets/avatar/avatar-1.png>" alt="avatar" /> </div> </div>
To make the avatar larger, simply change size-10
to size-12
:
<div class="avatar"> <div class="size-12 rounded-full"> <img src="<https://cdn.flyonui.com/fy-assets/avatar/avatar-1.png>" alt="avatar" /> </div> </div>
โ This small change increases the avatar size while keeping everything else intact.
๐งฉ 2. Customizing Components with Context7 MCP
Once the landing page is complete, weโll fine-tune the components โ styles, layout, and design.
๐ What is Context7 MCP?
Context7 MCP is a Model Context Provider that plugs into your AI tool (like Cursor or VS Code) to feed real-time, version-specific documentation from FlyonUI.
It helps you:
- Get accurate suggestions
- Modify components easily
- Stay updated with the latest UI patterns.
๐ย Setup Context7 MCP
Follow the setup instructions for your preferred code editor in the official FlyonUI Context7 MCP docs.
FlyonUI provides seamless integration for VS Code, Cursor, Windsurf, and Cline, allowing you to use AI-powered suggestions directly within your editor.
๐งฐ Example Use Case
Weโll update the theme and font family for our restaurant landing page
Use context7. Using FlyonUI, update the theme to "gourmet". I don't want light or dark, only gourmet. Update the font accordingly.
Other things you can do with Context7:
- Change themes
- Modify component styles.
- Add component with just the prompt
example: Use context7, using FlyonUI, add Faq accordion after testimonials. Use the accordion shadow example.
- Update colors, icons, spacing, fonts, and more
โ Conclusion
And thatโs a wrap! ๐
Youโve now seen how to:
- Set up FlyonUI with Next.js
- Use the Copy Prompt to generate full UI blocks
- Build a clean landing page quickly
- Use Context7 MCP to customize and improve components using AI
This combination of tools drastically reduces manual coding while still giving you full control over design and structure.
๐บ Watch the Full Video
Catch the full walkthrough in the video below.
Unlock The Full Potential of Tailwind AI with FlyonUI MCP ๐คฉ
FlyonUI MCP is Tailwind AI Builder, a smart tool designed to help developers create Tailwind CSS components, blocks, and landing pages more efficiently.
Besides, it integrates directly into your IDE, allowing you to generate UI elements with simple prompts, inspired by the FlyonUI library.
Key Features:
The following are some of the awesome features that make FlyonUI MCP an awesome Tailwind AI Builder:
- Tailwind AI Builder: Generate intelligent layouts and components using AI.
- Framework Compatibility: Svelte, Nextjs, HTML, React, Nuxt, Vue
- Live Preview: See your UI evolve in real-time as you design.
- Blazing Fast Workflow: โ Build and ship interfaces in minutes, not hours.
- Low-Code Workflow: Create components, blocks, or landing pages with just a few prompts.
- IDE Integration: Visual Studio Code, Cursor, Windsurf, VS Code + Cline.
- Prompt-Based Creation: Instantly create customized Tailwind blocks, pages & more.
Top comments (0)