A modern, production-ready, static React landing page template built with Vite, TailwindCSS, and a fully integrated feedback widget powered by Next.js, Prisma, and Vercel. Easily customizable and deployable, this project demonstrates best practices for building, styling, and extending React apps with real-world features.
-
Live Demo: https://marketing-arnob.netlify.app
-
Note: The feedback widget is integrated from: Feedback-Widget--NextJS
- Project Summary
- Features
- Technology Stack
- Project Structure
- Getting Started
- Widget Integration Guide
- Development Scripts
- React Testing
- Keywords & Topics
- Learn More
- About
- Conclusion
This project is a static marketing landing page built with React, Vite, and TailwindCSS, featuring a real-time feedback widget. The widget is a standalone, reusable component that can be embedded in any site and submits feedback to a Next.js API (deployed on Vercel). The dashboard displays all feedback in real time.
- ⚡ Fast & Modern: Built with Vite and React 18.
- 🎨 Beautiful UI: Styled with TailwindCSS and custom design tokens.
- 📝 Feedback Widget: Collects user feedback, star ratings, and displays them in a dashboard.
- 🔌 Easy Integration: Widget can be embedded in any HTML page with a single script tag.
- 🌐 API-Driven: Feedback is stored and retrieved from a Next.js API (Vercel).
- 🧪 Ready for Testing: Easily add React tests (see below for test instructions).
- 🚀 Deployed on Netlify: Static frontend, instant global delivery.
- Frontend: React, Vite, TailwindCSS, Framer Motion, React Animate, React Icons
- Widget: React, TailwindCSS, Next.js API, Prisma, Vercel
- Backend: Next.js API routes (Vercel), Prisma ORM, (optionally MongoDB/Postgres)
- Deployment: Netlify (frontend), Vercel (widget/API)
- Testing: Jest, React Testing Library (see below)
marketing-tailwind/
├── public/
│ └── vite.svg
├── src/
│ ├── App.jsx
│ ├── index.css
│ ├── main.jsx
│ ├── assets/
│ ├── components/
│ │ ├── Banner/
│ │ ├── Cards/
│ │ ├── Dashboard/
│ │ │ └── FeedbackDashboard.jsx
│ │ ├── Email/
│ │ ├── Hero/
│ │ ├── Navbar/
│ │ ├── Services/
│ └── utility/
├── index.html
├── package.json
├── tailwind.config.js
├── postcss.config.js
└── README.mdnpm installnpm run devVisit http://localhost:5173/ in your browser.
npm run build- Frontend: Deploy the
marketing-tailwindfolder to Netlify. - Widget/API: Deploy the feedback widget project to Vercel.
You can embed the feedback widget into any HTML page (including this project) with just a few lines:
<!-- Load React and ReactDOM UMD builds for the widget -->
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<!-- Include the widget script from your Vercel deployment -->
<script src="https://widget-feedback-next.vercel.app/widget.umd.js"></script>
<my-widget
api-base="https://widget-feedback-next.vercel.app/api/feedback"
></my-widget>- The
api-baseattribute should point to your deployed Next.js API endpoint. - The widget will automatically inject its styles and handle feedback submission.
To integrate into your own project:
- Deploy the widget project to Vercel.
- Copy the script and
<my-widget>tag above into your HTML. - Optionally, style or position the widget as needed.
npm run dev– Start local dev servernpm run build– Build for productionnpm run preview– Preview production build
This project is ready for adding React tests. To add tests:
-
Install a test runner (e.g., Jest, React Testing Library):
npm install --save-dev jest @testing-library/react @testing-library/jest-dom
-
Add test files alongside your components, e.g.,
Widget.test.jsx. -
Run tests with:
npm test # or yarn test
-
For more, see React Testing Library Docs.
widget, reactjs, feedback, mongodb, feedback-form, widget-manager, tailwindcss, feedback-collector, feedback-widget, easy-integration, nextjs, prisma, fullstack, typescript, component-library, api, vercel, modern-web, boilerplate, teaching, example
- Next.js Documentation
- Learn Next.js
- Next.js GitHub Repository
- Prisma Documentation
- Tailwind CSS Documentation
- React Testing Library
This project is designed as a teaching and demonstration tool for modern React, Vite, and TailwindCSS workflows, with a focus on real-world integration patterns and best practices.
This template provides a robust starting point for any marketing or landing page project, with a fully functional feedback system that can be reused across multiple sites. The modular widget approach allows for easy integration and extension, making it ideal for both learning and production use.
If you have questions or want to contribute, feel free to open an issue or pull request!
