Translation in Brazilian Portuguese README.pt-BR
front-sketch-service-email is a modern, high-conversion newsletter subscription interface built with React and Vite. It features a clean UI, smooth animations, and direct integration with a backend service to manage email subscriptions.
- Framework: React 19.
- Build Tool: Vite 8.
- Styling: Tailwind CSS 4 (utilizing the
@tailwindcss/viteplugin). - Animations: Motion (formerly Framer Motion).
- Icons: Lucide React.
- HTTP Client: Axios.
- Language: TypeScript.
src/main.tsx: The core application file containing theAppcomponent, form logic, and API request handling.src/index.css: Global stylesheet initializing Tailwind CSS 4.vite.config.ts: Configuration for plugins and the development proxy..proxyrc: Supplementary proxy configuration for the API.
Install the necessary dependencies using npm:
npm installStart the Vite development server:
npm run devThe application will be available at http://localhost:5173.
To create an optimized production build:
npm run buildThe frontend is configured to communicate with a backend service hosted on Render.
-
Proxy Target:
https://sketch-service-email.onrender.com. -
Endpoint:
POST /api/v1/subs. -
Payload Format:
{ "email": "string" } -
Expected Response: The application expects a
201status code upon successful subscription.
- Interactive UI: Animated list of benefits for subscribers using Motion.
- Form Validation: Required email input with built-in browser validation.
- Error Handling: User-friendly error messages if the server is unreachable.
- Success State: A dedicated confirmation view once the email is successfully registered.
Would you like me to help you create a Dockerignore or GitHub Actions workflow to automate the deployment of this frontend?