An open API service indexing awesome lists of open source software.

https://github.com/arnobt78/marketing--react-frontend

Marketing-TailwindCSS-Templet is a Static React-Vite Frontend Landing Page, using React-Vite, TailwindCSS, Framer-Motion, React-Animate, React-Icons, and deployed on Netlify.
https://github.com/arnobt78/marketing--react-frontend

animatecss framer-motion marketing-landing-page netlify-deployment react react-animate react-icons react-vite reactjs static-site tailwindcss

Last synced: 4 months ago
JSON representation

Marketing-TailwindCSS-Templet is a Static React-Vite Frontend Landing Page, using React-Vite, TailwindCSS, Framer-Motion, React-Animate, React-Icons, and deployed on Netlify.

Awesome Lists containing this project

README

          

# Marketing Template - TailwindCSS Fundamental Project 2

![Screenshots](https://github.com/user-attachments/assets/b2278b37-2816-4221-bf54-c67b599ae35b)

---

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](https://marketing-arnob.netlify.app)

- _Note: The feedback widget is integrated from: [Feedback-Widget--NextJS](https://github.com/arnobt78/Feedback-Widget--NextJS)_

---

## Table of Contents

1. [Project Summary](#project-summary)
2. [Features](#features)
3. [Technology Stack](#technology-stack)
4. [Project Structure](#project-structure)
5. [Getting Started](#getting-started)
6. [Widget Integration Guide](#widget-integration-guide)
7. [Development Scripts](#development-scripts)
8. [React Testing](#react-testing)
9. [Keywords & Topics](#keywords--topics)
10. [Learn More](#learn-more)
11. [About](#about)
12. [Conclusion](#conclusion)

---

## Project Summary

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.

---

## Features

- โšก **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.

---

## Technology Stack

- **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)

---

## Project Structure

```bash
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.md
```

---

## Getting Started

### 1. Install Dependencies

```bash
npm install
```

### 2. Start the Development Server

```bash
npm run dev
```

Visit [http://localhost:5173/](http://localhost:5173/) in your browser.

### 3. Build for Production

```bash
npm run build
```

### 4. Deploy

- **Frontend**: Deploy the `marketing-tailwind` folder to Netlify.
- **Widget/API**: Deploy the feedback widget project to Vercel.

---

## Widget Integration Guide

You can embed the feedback widget into any HTML page (including this project) with just a few lines:

```html

```

- The `api-base` attribute 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:**

1. Deploy the widget project to Vercel.
2. Copy the script and `` tag above into your HTML.
3. Optionally, style or position the widget as needed.

---

## Development Scripts

- `npm run dev` โ€“ Start local dev server
- `npm run build` โ€“ Build for production
- `npm run preview` โ€“ Preview production build

---

## React Testing

This project is ready for adding React tests. To add tests:

1. Install a test runner (e.g., Jest, React Testing Library):

```bash
npm install --save-dev jest @testing-library/react @testing-library/jest-dom
```

2. Add test files alongside your components, e.g., `Widget.test.jsx`.
3. Run tests with:

```bash
npm test
# or
yarn test
```

4. For more, see [React Testing Library Docs](https://testing-library.com/docs/react-testing-library/intro/).

---

## Keywords & Topics

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

---

## Learn More

- [Next.js Documentation](https://nextjs.org/docs)
- [Learn Next.js](https://nextjs.org/learn)
- [Next.js GitHub Repository](https://github.com/vercel/next.js)
- [Prisma Documentation](https://www.prisma.io/docs/)
- [Tailwind CSS Documentation](https://tailwindcss.com/docs)
- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/)

---

## About

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.

---

## Conclusion

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!