A modern, responsive web application built for the Web Worriers hackathon
Service Before Self | เคธเฅเคตเคพ เคชเคฐเคฎเฅ เคงเคฐเฅเคฎเค
- About
- Features
- Tech Stack
- Installation
- File Structure
- Usage Guide
- Competition Requirements
- Deployment
- Screenshots
- Credits
The Indian Army Portal is a fully functional frontend web application designed with a military/army theme. Built for the Web Worriers hackathon, this project showcases modern UI/UX design principles, responsive layouts, and interactive features without requiring a backend.
- Event: Web Worriers
- Date: February 12, 2026
- Mode: Online
- Theme: Army/Military
- Sign Up - Complete user registration with validation
- Sign In/Login - Secure login with username/email support
- Session Management - Persistent login state using localStorage
- Profile Protection - Restricted access to profile pages
- Profile Card - Display with image, name, role, and bio
- Editable Bio - Character-limited bio editor (200 chars)
- Profile Image - Customizable profile picture via URL
- Role Display - User role badge (Officer, Soldier, Cadet, etc.)
- Profile Theme Selector - 4 army-themed color schemes:
- Army Green (Default)
- Camouflage
- Tactical Black
- Desert Sand
- Social Link Manager - Customizable links for:
- X (Twitter)
- Theme Switcher - Light/Dark mode toggle
- Welcome Messages - Personalized greetings on sign-in
- Responsive Navigation - Mobile-friendly hamburger menu
- Form Validation - Real-time error handling
- โ Home - Hero section, features, statistics
- โ Sign In/Login - Authentication page
- โ Sign Up - User registration
- โ About - Indian Army history and mission
- โ Contact Us - Contact form with localStorage
- โ Profile - User dashboard with customization
- Military green color palette with gold accents
- Indian Army official logo integration
- Tactical patterns and military typography
- Army-inspired UI components
- Patriotic color schemes
- Mobile-first approach
- Tablet-optimized layouts
- Desktop-enhanced experience
- Cross-browser compatibility
| Technology | Purpose |
|---|---|
| HTML5 | Structure and semantic markup |
| CSS3 | Styling, animations, and responsive design |
| JavaScript (ES6+) | Interactivity and data management |
| localStorage | Client-side data persistence |
| Google Fonts | Custom typography (Rajdhani, Teko) |
- Clean, modern UI/UX
- Consistent color schemes
- Proper spacing and typography
- Accessible design patterns
- Smooth transitions and animations
- A modern web browser (Chrome, Firefox, Safari, Edge)
- A text editor (VS Code, Sublime Text, etc.)
- Basic knowledge of HTML/CSS/JavaScript
-
Download the Project
# Clone or download all project files git clone https://github.com/Devanshuhc29/indian-army-portal.git cd indian-army-portal
-
Verify File Structure Ensure all files are present:
โโโ index.html โโโ signup.html โโโ signin.html โโโ profile.html โโโ about.html โโโ contact.html โโโ styles.css โโโ script.js โโโ auth.js โโโ profile.js โโโ contact.js โโโ README.md -
Open in Browser
- Double-click
index.htmlto open in your default browser - Or use a local server:
# Python 3 python -m http.server 8000 # Or use VS Code Live Server extension
- Double-click
-
Access the Application
- Navigate to
http://localhost:8000(if using local server) - Or simply open the HTML file directly
- Navigate to
indian-army-portal/
โ
โโโ ๐ index.html # Home page with hero section
โโโ ๐ signup.html # User registration page
โโโ ๐ signin.html # User login page
โโโ ๐ profile.html # User profile dashboard
โโโ ๐ about.html # About Indian Army
โโโ ๐ contact.html # Contact form page
โ
โโโ ๐จ styles.css # Complete styling (Army theme)
โ
โโโ ๐ script.js # Main JavaScript
โ โโโ Mobile navigation
โ โโโ Theme switcher
โ โโโ Auth status check
โ โโโ Page protection
โ
โโโ ๐ auth.js # Authentication logic
โ โโโ Sign up handler
โ โโโ Sign in handler
โ โโโ Form validation
โ โโโ User data management
โ
โโโ ๐ profile.js # Profile management
โ โโโ Profile data loader
โ โโโ Bio editor
โ โโโ Theme selector
โ โโโ Social link manager
โ โโโ Image uploader
โ
โโโ ๐ contact.js # Contact form handler
โ โโโ Form submission
โ โโโ Message storage
โ
โโโ ๐ README.md # Project documentation
- Navigate to the Sign Up page
- Fill in all required fields:
- Full Name
- Email Address
- Username (unique)
- Role (Officer, Soldier, Cadet, etc.)
- Password (min 6 characters)
- Confirm Password
- Click SIGN UP
- You'll be automatically logged in and redirected to your profile
- Go to the Sign In page
- Enter your username or email
- Enter your password
- Click SIGN IN
- You'll see a welcome message and be redirected to your profile
- Navigate to your profile
- Scroll to "Edit Bio" section
- Type your bio (max 200 characters)
- Click SAVE BIO
- Choose from 4 army-themed color schemes
- Click on any theme preview
- Your profile header will update instantly
- Add URLs for LinkedIn, Instagram, Facebook, Twitter
- Click SAVE SOCIAL LINKS
- Links will appear in your profile card
- Enter an image URL in the "Change Profile Image" section
- Click UPDATE IMAGE
- Or click the camera icon on your profile picture
- Visit the Contact Us page
- Fill in your details and message
- Click SEND MESSAGE
- Your message will be stored locally
- Click the theme button in the navigation (๐ DARK / โ๏ธ LIGHT)
- Your preference is saved automatically
| Requirement | Status |
|---|---|
| Working frontend application | โ Complete |
| Sign up functionality | โ Complete |
| Sign in/Login | โ Complete |
| Profile related interactions | โ Complete |
| UI based features | โ Complete |
| Backend implementation (not required) | โ Not implemented |
| Real application behavior | โ Complete |
| Element | Status |
|---|---|
| Army theme throughout UI | โ Complete |
| Military colors | โ Complete |
| Army-relevant content | โ Complete |
| Tactical layout design | โ Complete |
- โ Home
- โ Sign In / Login
- โ About
- โ Contact Us
- โ Profile card with image
- โ Name and role display
- โ Short bio
- โ Social links (LinkedIn, Instagram, Facebook, Twitter)
- โ Clean layout
- โ Responsive design
- โ Consistent colors
- โ Proper spacing
- โ Readable typography
- โ Editable bio
- โ Profile theme selector
- โ Social link manager
- โ Theme switcher (Light/Dark mode)
- โ Welcome message based on username
- โ Frontend technology (HTML/CSS/JS)
- โ Ready for hosting
- โ Publicly accessible (no localhost dependency)
-
Via Drag & Drop
- Go to netlify.com
- Sign up or log in
- Drag your project folder to the deployment area
- Your site will be live in seconds!
-
Via Git
# Initialize git repository git init git add . git commit -m "Initial commit" # Push to GitHub git remote add origin <https://github.com/Devanshuhc29/Army-Portal-2026> git push -u origin main # Connect to Netlify # Go to Netlify Dashboard > New site from Git # Select your repository # Deploy!
# Install Vercel CLI
npm install -g vercel
# Deploy
vercel- Push code to GitHub repository
- Go to repository Settings > Pages
- Select branch (main) and folder (root)https://github.com/Devanshuhc29/Army-Portal-2026
- Click Save
- Your site will be live at
https://github.com/Devanshuhc29/Army-Portal-2026
Upload all files to any web hosting service:
- Upload via FTP/SFTP
- Ensure all files are in the root directory
- Access via your domain
All user data is stored in browser localStorage:
- User credentials (username, email, password)
- Profile information (name, role, bio)
- Profile customization (theme, image URL)
- Social media links
- Contact form messages
// Users Array
[
{
fullName: "John Doe",
email: "john@example.com",
username: "johndoe",
role: "Officer",
password: "hashed_password",
bio: "Serving the nation...",
profileTheme: "default",
profileImage: "https://...",
socialLinks: {
linkedin: "https://...",
instagram: "https://...",
facebook: "https://...",
twitter: "https://..."
},
createdAt: "2026-02-12T..."
}
]
// Current User
"currentUser": "johndoe"
// Contact Messages
[
{
name: "User Name",
email: "user@example.com",
subject: "Query",
message: "Message content...",
timestamp: "2026-02-12T..."
}
]--army-green: #4a5d23
--army-dark: #2d3a1a
--army-light: #6b7f3a
--accent-gold: #d4af37/* Default - Army Green */
--primary: #4a5d23
/* Camouflage */
--primary: #6b5d4f
/* Tactical Black */
--primary: #1a1a1a
/* Desert Sand */
--primary: #c19a6b| Browser | Version | Status |
|---|---|---|
| Chrome | 90+ | โ Fully Supported |
| Firefox | 88+ | โ Fully Supported |
| Safari | 14+ | โ Fully Supported |
| Edge | 90+ | โ Fully Supported |
| Opera | 76+ | โ Fully Supported |
โ ๏ธ Data persists only in localStorage (cleared on cache clear)โ ๏ธ No real authentication (frontend only)โ ๏ธ Profile images must be valid URLsโ ๏ธ No password recovery mechanism
- Backend integration with Node.js/Express
- Database storage (MongoDB/PostgreSQL)
- Real authentication with JWT
- File upload for profile images
- Email notifications
- Password encryption (bcrypt)
- Admin dashboard
signupForm.submit()- Handles user registrationsigninForm.submit()- Handles user login
getCurrentUser()- Retrieves current logged-in userupdateUser()- Updates user data in localStorageloadProfile()- Loads profile data on page loadupdateSocialLinks()- Updates social media links
checkAuth()- Checks authentication statusprotectPage()- Restricts access to protected pages
Contributions are welcome! If you'd like to improve this project:
- Fork the repository
- Create a 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
This project is created for educational purposes as part of the Web Worriers hackathon.
Disclaimer: This is a demonstration project and not affiliated with the official Indian Army.
Devanshu Hemant Chheda
- ๐ B.Tech CSE-AI Student, Parul University
- ๐ผ LinkedIn: Your LinkedIn
- ๐ฆ Twitter: @yourhandle
- Indian Army - For the inspiration and logo
- Web Worriers Team - For organizing the competition
- Google Fonts - For Rajdhani and Teko fonts
If you encounter any issues or have questions:
- Check the Known Issues section
- Review the Usage Guide
- Open an issue on GitHub
- Contact via the Contact Us page in the application
โญ If you found this project helpful, please give it a star! โญ
Made with โค๏ธ for Web Worriers 2026
เคธเฅเคตเคพ เคชเคฐเคฎเฅ เคงเคฐเฅเคฎเค
