Dark mode: automatically detected and manually switchable, with no flicker during switching
tempalate-militarywebsite — Astro Starter Template
By Zyrexnn
An Astro-based military/institutional starter template with built-in dark mode, Indonesian and English bilingual switching, scroll reveal animations, and centralized content data files.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 2
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Built-in Indonesian and English bilingual translations with one-click language switching
Military-style design system: colors, fonts, and components are uniformly defined in global.css via @theme and .dark
Centralized content management: site configuration and page content are placed in src/data/siteConfig.ts and src/data/content.ts respectively
Scroll reveal animations: fade-in, slide, and scale effects are provided
SEO support: dynamic meta tags, Open Graph, and semantic HTML
Template Details
This template is aimed at military units, government agencies, and institutional organization sites. It uses an Astro static-first architecture and outputs no JavaScript by default. The pages include four routes: home, history (sejarah), organizational structure (struktur), and gallery (galeri). Components cover the navigation bar, hero, cards, timeline, gallery, footer, dark mode toggle, and language switcher.
Content and configuration are centralized in src/data/siteConfig.ts (site name, subtitle, motto, address, SEO metadata) and src/data/content.ts (hero copy, department cards, timeline events, gallery images, history sections, statistics, commander information). Bilingual strings are located in src/i18n/translations.js, where each key contains both id and en values. Styles and design tokens are defined in src/styles/global.css, with light and dark modes managed separately via @theme and .dark.
Usage limitations: The template includes sample images and placeholder content that must be replaced with your own assets. The licensing of third-party assets such as demo images, fonts, and icons must be checked separately and cannot be determined solely from the code's MIT license. External services such as domains and hosting may incur separate charges.
Is it right for your project?
Use Cases
- Building a public-facing display site for a military unit or force
- Creating information publishing pages for government agencies or public departments
- Making an institutional official website that includes a historical timeline and organizational chart
- Establishing an institutional promotional site with a gallery and bilingual switching
Suitable For
- Institutional teams that need an Indonesian and English bilingual site
- Astro users who want to maintain content through centralized data files
- Display-oriented projects that need dark mode and a military-style visual
- Developers who accept replacing sample images and placeholder content
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
After cloning the repository, run npm install to install dependencies, then npm run dev to start the local development server (default localhost:4321)
- 2
Edit src/data/siteConfig.ts to set the site name, subtitle, motto, address, and SEO metadata
- 3
Edit src/data/content.ts to update the hero copy, department cards, timeline, gallery, history sections, and statistics
- 4
Replace the sample images in src/assets/ and update public/favicon.svg and public/favicon.ico
- 5
Maintain the id and en bilingual strings in src/i18n/translations.js, and adjust color tokens in src/styles/global.css
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis listing covers the free version under the MIT license in the public repository; the free scope is the code of this version and does not mean that external services or third-party assets are free.
Must comply with when using
- You are allowed to use, modify, commercially use, and distribute the code of this version for free.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the complete MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- The template's sample images are placeholder assets only and must be replaced with your own images; the licensing of third-party assets such as sample images, fonts, and icons must be checked separately and cannot be inferred as freely usable solely from the code's MIT license.
- You must replace the public/favicon.svg and public/favicon.ico icon files yourself; the icons provided by the template are not guaranteed to be usable on a production site.
- Deploying to external hosting services such as Vercel or Netlify requires registering an account yourself, and the related services may incur fees that are not covered by the template's free scope.
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely from the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
Replace the sample images in **`src/assets/`** with your own
Original README
Replace `public/favicon.svg` and `public/favicon.ico` with your own icons.
Original README
https://github.com/Zyrexnn/tempalate-militarywebsite/blob/main/LICENSEhttps://github.com/Zyrexnn/tempalate-militarywebsite/blob/main/README.mdOr connect your GitHub repo to [Vercel](https://vercel.com) for automatic deployments.
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- Astro Themes
- Documentation and maintenance reference score
- More documented · 83 / 100
- Technologies
- Astro
- Website type
- Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-02-15
- Screenshot last checked
- 2026-10-03
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Astro as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: [email protected] · 2026-10-04
Inspect the recorded source material
SHA-256: 18ac7e7d38f8357886193059dea4615c5305216fe1d24522ec174dfe4737d720
2026-10-03T23:03:35.556Z
Source file / repository# 🎖️ Astro Military Theme
A premium, dark-mode-ready Astro starter template designed for **military units, government agencies, and institutional organizations**. Features a tactical design system, bilingual i18n support, scroll-reveal animations, and a fully responsive layout.



## ✨ Features
- **🌓 Dark Mode** — Automatic detection + manual toggle with no flash
- **🌍 i18n (ID/EN)** — Built-in Indonesian & English translations with one-click toggle
- **🎯 Tactical Design System** — Military-inspired color palette, typography, and components
- **📱 Fully Responsive** — Mobile-first design optimized for all screen sizes
- **✨ Scroll Reveal Animations** — Fade, slide, and scale effects on scroll
- **🔍 SEO Ready** — Dynamic meta tags, Open Graph, and semantic HTML
- **📂 Centralized Data** — All content in `src/data/` for easy customization
- **⚡ Fast** — Static-first Astro architecture with zero JS by default
## 📁 Project Structure
```
├── public/
│ ├── camo-pattern.svg # Background pattern
│ └── favicon.svg # Site favicon
├── src/
│ ├── assets/ # Images (replace with your own)
│ ├── components/
│ │ ├── Card.astro # Division/department card
│ │ ├── DarkModeToggle.astro
│ │ ├── Footer.astro
│ │ ├── Gallery.astro # Photo gallery grid
│ │ ├── Hero.astro # Landing hero section
│ │ ├── LangToggle.astro # Language switcher
│ │ ├── Navbar.astro # Sticky navigation
│ │ └── Timeline.astro # Historical timeline
│ ├── data/
│ │ ├── siteConfig.ts # ⭐ Site name, address, SEO
│ │ └── content.ts # ⭐ All page content
│ ├── i18n/
│ │ └── translations.js # ID/EN string translations
│ ├── layouts/
│ │ └── Layout.astro # Base HTML layout
│ ├── pages/
│ │ ├── index.astro # Home page
│ │ ├── sejarah.astro # History page
│ │ ├── struktur.astro # Organization structure
│ │ └── galeri.astro # Photo gallery
│ └── styles/
│ └── global.css # Design system & animations
├── astro.config.mjs
├── package.json
└── tsconfig.json
```
## 🚀 Quick Start
```bash
# Clone the repository
git clone https://github.com/your-username/astro-military-theme.git
cd astro-military-theme
# Install dependencies
npm install
# Start dev server
npm run dev
```
The site will be available at `http://localhost:4321`.
## 🎨 Customization Guide
### Step 1: Update Site Config
Edit **`src/data/siteConfig.ts`** to set your organization's name, subtitle, motto, address, and SEO metadata:
```ts
export const siteConfig = {
siteName: "Your Unit Name",
siteSubtitle: "Your Subtitle",
siteMotto: "Your Motto",
siteDescription: "A brief description for SEO.",
address: {
line1: "Your City, Region",
line2: "Your Country",
},
// ...
};
```
### Step 2: Replace Content
Edit **`src/data/content.ts`** to update:
- Hero section text
- Division/department cards (title, location, description)
- Timeline events (years, titles, descriptions)
- Gallery images
- History page chapters
- Statistics
- Commander/leader information
### Step 3: Replace Images
Replace the sample images in **`src/assets/`** with your own:
- Hero background image
- Organization logo
- Gallery photos
- History chapter photos
### Step 4: Update Translations
Edit **`src/i18n/translations.js`** to update all bilingual strings. Each key has an `id` (Indonesian) and `en` (English) value.
### Step 5: Customize Colors
Edit the CSS custom properties in **`src/styles/global.css`** under `@theme` (light mode) and `.dark` (dark mode):
```css
@theme {
--color-primary: #4b5320; /* Main brand color */
--color-secondary: #1c2526; /* Dark backgrounds */
--color-accent: #b8860b; /* Highlights & accents */
/* ... see global.css for all tokens */
}
```
### Step 6: Update Favicon
Replace `public/favicon.svg` and `public/favicon.ico` with your own icons.
## 🚢 Deployment
### Vercel
```bash
npm run build
# Then deploy the `dist/` folder
```
Or connect your GitHub repo to [Vercel](https://vercel.com) for automatic deployments.
### Netlify
```bash
npm run build
# Deploy the `dist/` folder
```
Or connect your GitHub repo to [Netlify](https://netlify.com) with:
- **Build command:** `npm run build`
- **Publish directory:** `dist`
## 🛠 Commands
| Command | Action |
| :---------------- | :----------------------------------- |
| `npm install` | Install dependencies |
| `npm run dev` | Start dev server at `localhost:4321` |
| `npm run build` | Build production site to `./dist/` |
| `npm run preview` | Preview production build locally |
## 📄 License
This project is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this template.
---
Built with [Astro](https://astro.build) + [Tailwind CSS](https://tailwindcss.com)
Explore similar templates
Compare previews and descriptions within the same stack and category.

astrowind
AstroWind is a free, open-source Astro starter theme using Astro and Tailwind CSS, released under the MIT license.
Astro · Blog
accessible-astro-starter
An accessibility-focused Astro 6 starter template with WCAG 2.2 AA practices, Tailwind CSS 4, TypeScript, Prettier, ESLint, form validation, blog and portfolio examples, and preference toggles for dark mode, high contrast, and reduced motion.
Astro · Blog

astro-erudite
astro-erudite is an opinionated, unstyled static blog template built with Astro and native CSS, with no UI or CSS framework and minimal dependencies.
Astro · Portfolio

astro-shopify
A lightweight Shopify headless ecommerce starter template built with Astro and Svelte, integrating the Shopify Storefront API for product and inventory data, with built-in cart state management and basic add-to-cart and checkout flow.
Astro · E-commerce

brutal
Brutal is a neobrutalism Astro starter theme from ElianCodes, derived from the author's personal site and generalized. It includes a Markdown blog collection, build-time RSS and sitemap, image optimization, Tailwind CSS styling, and Biome checks, with no JavaScript by default.
Astro · Starter

qwind
Qwind is a free and open-source website template built on Qwik and Tailwind CSS, featuring directory-based routing via QwikCity, a Markdown blog, dark mode, and static deployment configuration.
Astro · Tool Site
