A modern, responsive login screen built with Golang backend and vanilla HTML/CSS/JavaScript frontend.
- Go 1.21 or higher
# Clone the repository
git clone https://github.com/Decipher369/login-screen.git
cd login-screen
# Run the server
go run main.goVisit http://localhost:8080 in your browser.
- ✅ Two-panel layout - Illustration + Login form
- ✅ Responsive design - Mobile-first approach
- ✅ Form validation - Client & server-side
- ✅ Clean code - Efficient and readable
- ✅ Zero dependencies - Uses Go stdlib only
- Modern purple accent (#722F5E)
- Warm gradient background
- Skeleton illustration with decorative elements
- Smooth animations and hover effects
login-screen/
├── main.go # Go server entry point
├── go.mod # Go module file
├── handlers/
│ └── auth.go # Authentication handlers
├── templates/
│ └── login.html # Login page template
└── static/
├── css/style.css # Styling
├── js/app.js # Client-side logic
└── images/ # Assets
Backend:
- Go (net/http)
- HTML templates
- Template caching
Frontend:
- HTML5
- Vanilla CSS
- Vanilla JavaScript
- Google Fonts (Inter)
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Login page |
/login |
POST | Form submission |
/static/* |
GET | Static assets |
- Efficient: Template caching, minimal dependencies
- Readable: Well-commented, clear structure
- Validated: Input validation on both sides
MIT License - feel free to use this project as you wish!
Decipher369
- GitHub: @Decipher369
Built with ❤️ using Go