A 100% open source modern, accessible, and multilingual website template designed specifically for government portals. Built with pure HTML, CSS, and JavaScript, this template provides a solid foundation for governments to quickly deploy citizen-centric service portals.
- Mobile-first approach
- Fluid layouts that work across all device sizes
- Optimised navigation for both desktop and mobile users
- Skip to main content functionality
- ARIA labels where necessary
- Semantic HTML structure
- Support for multiple languages (currently implemented with English and Sinhala)
- Tamil language support coming soon to demonstrate multi-script capabilities
- Language switching functionality
- Uses
data-i18n
attributes for easy text replacement
- Clean, professional government aesthetic
- FontAwesome 6.5.1 icons (CDN hosted)
- Service cards with intuitive icons
- Grid-based layouts for services and topics
- Social media integration
This is a static HTML template that requires no build process or dependencies. To use it:
- Clone the repository:
git clone https://github.com/pasan93/opengovui.git
- Open
index.html
in your browser
That's it! No build process or installation required.
opengovui/
├── index.html
├── css/
│ └── styles.css
├── js/
│ ├── i18n.js
│ └── script.js
└── images/
└── sl-govt-logo.png
The template uses a straightforward i18n system:
- HTML Markup: Uses
data-i18n
attributes for translatable content:
<h1 data-i18n="hero.title">Access government services and information in one place</h1>
- Language Selection: Simple language switcher in the header:
<div class="language-selector">
<a href="#" lang="si">සිංහල</a>
<a href="#" lang="ta">தமிழ்</a>
<a href="#" lang="en" class="active">English</a>
</div>
- Header with language selector and search
- Hero section with featured services
- Topic categories with icon navigation
- Government updates section
- Footer with important links and social media
- Edit the HTML directly to change the content
- Update the
data-i18n
attributes and corresponding translation files for multilingual support - Modify icons by changing FontAwesome classes
- Edit
styles.css
to match your government's brand colours and styling preferences - FontAwesome 6.5.1 is included for icons (CDN hosted)
This project is licensed under the MIT Licence - see the LICENCE file for details.
Contributions are welcome! Feel free to submit pull requests or open issues for any improvements.
For support, please open an issue in the GitHub repository.
Made with ❤️ in 🇱🇰 for better government services