Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

🍁 Autumn Auth Pages: Premium React + Vite authentication templates featuring animated autumn backgrounds, elegant glassmorphism UI, and fully reusable login/signup forms. Designed for speed, responsiveness, and effortless customization, perfect for crafting modern, aesthetic, and user-friendly web projects.

License

Notifications You must be signed in to change notification settings

NhanPhamThanh-IT/Autumn-Auth-Pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Autumn Auth Pages

License: MIT Vite React TypeScript PRs Welcome Node

A beautiful, modern authentication page set built with React and Vite. This project features animated autumn-themed backgrounds, responsive design, and clean, reusable authentication forms for login and signup. Available in both JavaScript and TypeScript versions.

Table of Contents

Features

  • 🍁 Animated Autumn Background: Immersive, animated leaves and themed illustrations.
  • πŸ”’ Authentication Forms: Login and Signup pages with reusable form components.
  • βš›οΈ React 19: Built with the latest React and React Router.
  • πŸ“˜ TypeScript Support: Full TypeScript implementation with type definitions.
  • ⚑ Vite: Fast development and build tooling.
  • 🎨 Modern CSS: Glassmorphism, responsive layouts, and smooth animations.
  • 🧩 Component-Based: Clean separation of UI and logic for easy extension.
  • πŸ”€ Dual Language Support: Choose between JavaScript and TypeScript versions.

Demo

Screenshot
Example background. See the app for full animation and UI.

Screenshots & GIFs

Autumn Auth Pages Screenshot
Login and Signup forms with animated autumn background

Getting Started

Prerequisites

  • Node.js (v18+ recommended)
  • npm (comes with Node.js)

Choose Your Version

This project is available in two versions:

  • JavaScript: Located in the JavaScript/ folder
  • TypeScript: Located in the TypeScript/ folder (with full type definitions)

Installation

  1. Clone the repository:

    git clone https://github.com/NhanPhamThanh-IT/Autumn-Auth-Pages.git
    cd Autumn-Auth-Pages
  2. Navigate to your preferred version:

    For JavaScript version:

    cd JavaScript

    For TypeScript version:

    cd TypeScript
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm run dev

    The app will be available at http://localhost:5173 (default Vite port).

Build for Production

npm run build

Note:

  • JavaScript version builds to dist/ folder
  • TypeScript version compiles TypeScript first, then builds to dist/ folder

The output will be in the dist/ folder.

Preview Production Build

npm run preview

Project Structure

Autumn-Auth-Pages/
β”œβ”€β”€ JavaScript/                # JavaScript implementation
β”‚   β”œβ”€β”€ public/                # Static assets
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ assets/            # Images (leaves, background, etc.)
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”œβ”€β”€ Background.jsx # Animated autumn background
β”‚   β”‚   β”‚   └── Forms/
β”‚   β”‚   β”‚       └── AuthForm.jsx # Reusable authentication form
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”‚   β”œβ”€β”€ Login.jsx      # Login page
β”‚   β”‚   β”‚   └── Signup.jsx     # Signup page
β”‚   β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”‚   └── index.jsx      # React Router routes
β”‚   β”‚   β”œβ”€β”€ styles/            # CSS files
β”‚   β”‚   β”œβ”€β”€ App.jsx            # Main app component
β”‚   β”‚   └── main.jsx           # Entry point
β”‚   β”œβ”€β”€ index.html             # HTML template
β”‚   β”œβ”€β”€ package.json           # JS project metadata and scripts
β”‚   └── vite.config.js         # Vite configuration
β”œβ”€β”€ TypeScript/                # TypeScript implementation
β”‚   β”œβ”€β”€ public/                # Static assets
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ assets/            # Images (leaves, background, etc.)
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”œβ”€β”€ Background.tsx # Animated autumn background
β”‚   β”‚   β”‚   └── Forms/
β”‚   β”‚   β”‚       └── AuthForm.tsx # Reusable authentication form
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”‚   β”œβ”€β”€ Login.tsx      # Login page
β”‚   β”‚   β”‚   └── Signup.tsx     # Signup page
β”‚   β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”‚   └── index.tsx      # React Router routes
β”‚   β”‚   β”œβ”€β”€ styles/            # CSS files
β”‚   β”‚   β”œβ”€β”€ types/             # TypeScript type definitions
β”‚   β”‚   β”‚   β”œβ”€β”€ auth.ts        # Authentication types
β”‚   β”‚   β”‚   β”œβ”€β”€ common.ts      # Common types
β”‚   β”‚   β”‚   β”œβ”€β”€ event.ts       # Event types
β”‚   β”‚   β”‚   └── input.ts       # Input field types
β”‚   β”‚   β”œβ”€β”€ App.tsx            # Main app component
β”‚   β”‚   └── main.tsx           # Entry point
β”‚   β”œβ”€β”€ index.html             # HTML template
β”‚   β”œβ”€β”€ package.json           # TS project metadata and scripts
β”‚   β”œβ”€β”€ tsconfig.json          # TypeScript configuration
β”‚   β”œβ”€β”€ tsconfig.app.json      # App-specific TS config
β”‚   β”œβ”€β”€ tsconfig.node.json     # Node-specific TS config
β”‚   └── vite.config.ts         # Vite configuration
β”œβ”€β”€ LICENSE                    # MIT License
└── README.md                  # Project documentation

Usage

  • Login Page: /login
  • Signup Page: /signup
  • The root path / and any unknown routes redirect to /login.

Customization

  • Background & Theme:
    Edit src/components/Background.jsx (JS) or src/components/Background.tsx (TS) and images in src/assets/ to change the look and feel.
  • Form Fields:
    Modify the fields prop in Login.jsx/tsx and Signup.jsx/tsx to add or remove form fields.
  • Styling:
    Update CSS in src/styles/ for custom colors, fonts, or layout.
  • TypeScript Types:
    When using the TypeScript version, modify types in src/types/ to match your data structures.

Advanced Usage

  • Routing: Easily add more pages by editing src/routes/index.jsx (JS) or src/routes/index.tsx (TS) and creating new components in src/pages/.
  • Form Validation: Integrate libraries like Formik or React Hook Form for advanced validation.
  • API Integration: Connect your backend by replacing the console.log in form submit handlers with real API calls (e.g., using axios).
  • Theming: Swap out assets in src/assets/ for a different seasonal or brand look.
  • TypeScript Benefits: When using the TypeScript version, enjoy full IntelliSense, type checking, and better refactoring support.
  • Type Safety: Extend the existing type definitions in src/types/ to match your backend API structure.

Contributing

Contributions are welcome! To contribute:

  1. Fork this repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a Pull Request

Please ensure your code follows the existing style and passes linting (npm run lint).

Credits

  • Author: NhanPhamThanh-IT
  • Inspiration: Autumn themes, glassmorphism UI, and modern web design trends.
  • Assets: All images and icons are included for demo purposes. Replace with your own for production use.

FAQ

Q: Can I use this for my own project?
A: Yes! This project is MIT licensed. See LICENSE.

Q: How do I deploy this?
A: After building (npm run build), deploy the dist/ folder to any static hosting (Vercel, Netlify, GitHub Pages, etc).

Q: How do I add social login?
A: Add new buttons and handlers in AuthForm.jsx (JS) or AuthForm.tsx (TS) and connect to your OAuth provider.

Q: What's the difference between the JavaScript and TypeScript versions?
A: Both versions have identical functionality and UI. The TypeScript version adds type safety, better IDE support, and compile-time error checking.

Q: Can I use TypeScript?
A: Yes! The project includes a complete TypeScript implementation in the TypeScript/ folder with full type definitions and type safety.


Troubleshooting

  • Port already in use:
    • Stop other dev servers or change the port in vite.config.js.
  • Images not loading:
    • Check the paths in src/assets/ and ensure the files exist.
  • CSS not applying:
    • Make sure you are importing the correct CSS files in your components.
  • Router not working:
    • Ensure you are using <BrowserRouter> in main.jsx (JS) or main.tsx (TS) and your routes are correct.
  • TypeScript errors:
    • Check that all type imports are correct and types match the expected interfaces in src/types/.
  • Build issues with TypeScript:
    • Run npm run lint to check for TypeScript errors before building.

If you encounter other issues, please open an issue or pull request.

Changelog

  • v2.0.0 (2025-09-24): Added full TypeScript support with type definitions. Project now includes both JavaScript and TypeScript versions.
  • v1.0.0 (2025-08-12): Initial release with animated background, login/signup forms, and full documentation.

Related Projects

Security

If you discover a security vulnerability, please open an issue or contact the author directly via GitHub.

Contact

Scripts

Note: Navigate to either JavaScript/ or TypeScript/ folder first, then run:

  • npm run dev – Start development server with hot reload.
  • npm run build – Build for production (TypeScript version includes compilation step).
  • npm run preview – Preview the production build.
  • npm run lint – Run ESLint on the codebase.

Dependencies

JavaScript Version

TypeScript Version

License

This project is licensed under the MIT License.


Feel free to further personalize this README for your needs! Let me know if you want to add badges, deployment instructions, or more details.

About

🍁 Autumn Auth Pages: Premium React + Vite authentication templates featuring animated autumn backgrounds, elegant glassmorphism UI, and fully reusable login/signup forms. Designed for speed, responsiveness, and effortless customization, perfect for crafting modern, aesthetic, and user-friendly web projects.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •