实现一个登录页面
Generated Prompt
## APPLICATION OVERVIEW This project is a web application focused on creating a clean and minimalist login page. Its primary purpose is to provide users with a simple and efficient interface for signing into their accounts, ensuring ease of use while maintaining a focus on design and user experience. ## CORE FEATURES 1. **User Authentication**: A secure login form that allows users to enter their credentials and access their accounts. 2. **Error Handling**: Real-time feedback for incorrect credentials or validation errors, enhancing user experience. 3. **Remember Me Option**: A checkbox that allows users to stay logged in on the device for easier future access. 4. **Password Recovery**: A link to help users recover their passwords if they forget them. 5. **Sign Up Redirect**: A link to redirect new users to the registration page, encouraging account creation. ## DESIGN SPECIFICATIONS - **Visual Style**: minimalist - Clean, simple design with plenty of white space, minimal color palette, and focus on typography. - **Color Mode**: Light theme with dark text on light backgrounds. - **Primary Color**: #1978E5 (accent for buttons, links, highlights). - **Typography**: Use Inter from Google Fonts for headings, Inter for body text and UI elements. - **Border Radius**: 8px (moderately rounded) for buttons, cards, and inputs. - **Layout**: A centered login form within a full-screen container, featuring ample white space around the form elements for clarity and emphasis. ## TECHNICAL REQUIREMENTS - **Framework**: React with TypeScript - **Styling**: Tailwind CSS - **UI Components**: shadcn/ui - **State Management**: React Context API or Zustand (if necessary for global state management) ## IMPLEMENTATION STEPS 1. **Set Up Project**: Initialize a new React project using Create React App with TypeScript. 2. **Install Dependencies**: Add Tailwind CSS and shadcn/ui to the project. 3. **Create the Login Component**: Develop a functional login component with form elements for email and password fields. 4. **Implement Form Validation**: Use a validation library (like Formik or React Hook Form) to handle user input and provide real-time feedback. 5. **Add Authentication Logic**: Integrate authentication logic to manage user sessions, including login and error handling. 6. **Design the UI**: Apply Tailwind CSS classes to achieve the minimalist design and ensure responsive layout. 7. **Testing**: Test the login functionality across different devices and screen sizes for a seamless user experience. ## USER EXPERIENCE Users will arrive at a simple, uncluttered login page where the focus is on entering their credentials. The layout will guide them to easily understand where to input their information. Error messages will appear directly below the relevant fields to provide instant feedback, and the "Remember Me" option will simplify future logins. The overall experience will prioritize efficiency and clarity, making the login process as straightforward as possible. This prompt outlines a comprehensive approach to building a minimalist login page that meets the user's vision while ensuring an optimal user experience.
Loved by thousands of makers from
From early prototypes to real products, they started here.







































Generate optimized prompts for your vibe coding projects
Generate prompt
Enter a brief description of the app you want to build and get an optimized prompt
Review and use your prompt
Review (and edit if necessary) the generated prompt, then copy it or open it directly in your chosen platform
Get inspired with new ideas
Get AI-generated suggestions to expand your product with features that will surprise your users
Frequently Asked Questions
Everything you need to know about creating better prompts for your Lovable projects
Still have questions?
Can't find what you're looking for? We're here to help!
