A pixel-perfect recreation of Discord's login interface with animated interactions and clean, modern code architecture.
Everything has been updated to match the Discord login page exactly yet again! This update includes:
- Refined color palette β Updated to match Discord's latest design system
- Enhanced input styling β Modern rounded corners (8px), improved borders, and focus states
- Improved typography β Updated font weights, sizes, and line heights for better accuracy
- Better form labels β Changed from uppercase to proper case for improved readability
- Polished UI details β Refined spacing, padding, and visual consistency
- π― Pixel-perfect UI β Faithfully replicates Discordβs login page layout and design.
- π Animated QR Code Refresh β Simulates the QR refresh behavior with smooth animations.
- π§Ό Clean, Commented Code β Easy to read and modify for learning or reuse.
-
Clone the repository
git clone https://github.com/Ayanprogrammer11/discord-login-page-clone.git cd discord-login-page-clone -
Open in your browser
Windows:
start index.html
macOS:
open index.html
Linux:
xdg-open index.html
That's it! No build process, no dependencies to install. Just open and run.
discord-login-page-clone/
βββ assets/
β βββ fonts/
β β βββ ggsans/ # Discord's custom font
β βββ bg.svg # Background gradient
β βββ login-screen-logo.svg
β βββ qrcode-discord-logo.png
βββ css/
β βββ index.css # Variables and base styles
β βββ main.css # Component styles
βββ js/
β βββ script.js # Modular JavaScript
βββ index.html
βββ README.md
QRCodeModule - Handles QR code generation and refresh logic
QRCodeModule.generate(data); // Generate QR code
QRCodeModule.refresh(); // Refresh with new code
QRCodeModule.initRefreshInterval(); // Start auto-refreshLoginButtonModule - Manages login button animations
LoginButtonModule.showLoading(); // Show loading state
LoginButtonModule.reset(); // Reset to default
LoginButtonModule.init(); // Initialize event listeners// In js/script.js
const CONFIG = {
QR_REFRESH_INTERVAL: 120000, // Change this value (in milliseconds)
};/* In css/index.css */
:root {
--btn-bg: rgb(88, 101, 242); /* Button color */
--btn-bg-hover: rgb(71, 82, 196); /* Button hover */
--link-color: oklab(...); /* Link color */
}This project is perfect for learning:
- HTML5 Semantic Structure - Proper use of forms, sections, and accessibility
- CSS Custom Properties - Dynamic theming with CSS variables
- Modern JavaScript - ES6+ features, modules, and best practices
- SVG Manipulation - Generating and modifying SVG elements
- Animation Techniques - CSS keyframes and JavaScript timing
Contributions are what make the open-source community amazing! Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Add dark/light theme toggle
- Implement form validation
- Add password strength indicator
- Create mobile-responsive version
- Add more animation effects
- Improve accessibility (ARIA labels)
- Add unit tests
This project is licensed under the MIT License - see the LICENSE file for details.
Ayan Liaqat
- GitHub: @Ayanprogrammer11
- Project Link: https://github.com/Ayanprogrammer11/discord-login-page-clone
- Inspired by Discord's Login Page
- qrcode-generator for QR code generation
- Discord's design team for the beautiful UI
This project is NOT affiliated with, endorsed by, or connected to Discord Inc. in any way.
It is a frontend clone created purely for educational and non-commercial purposes to demonstrate web development skills.
DO NOT use this for:
- Phishing or impersonation
- Collecting user credentials
- Any malicious activities
Using this project for illegal purposes is unethical and illegal.
If you found this project helpful, please consider giving it a β!
Made with β€οΈ by Ayan Liaqat

