This is a base theme template for Timopedia, a Wikipedia-like encyclopedia focused on accurate and unaltered historical information.
index.html: The main landing page with category cards and theme togglestyle.css: CSS styles with dark/light theme support and responsive designscript.js: JavaScript for theme toggle functionality with system preference detection
- Dark/Light Theme Toggle: Manual toggle button with automatic system theme detection
- Responsive Design: Works on desktop and mobile devices
- Category Cards: Landing page with cards linking to different historical categories
- Clean, Wikipedia-inspired Styling: Familiar layout with proper color schemes
The following subfolders have been created for organizing content:
- politics/
- geography/
- physics/
- science/
- economics/
- culture/
- military/
- technology/
- Open
index.htmlin your web browser to view the landing page - Click the theme toggle button (moon/sun icon) to switch between light and dark modes
- Click on category cards to navigate to their respective sections
- Add content pages within the category subfolders
- Customize colors and styles in
style.cssas needed
- Modify category cards in
index.htmlto add/remove categories - Adjust color variables in
style.cssfor different themes - Extend
script.jsfor additional interactive features - Create individual article pages using the same HTML structure
The theme system uses CSS custom properties and the data-theme attribute on the HTML element. It supports:
- Light theme (default)
- Dark theme
- Automatic system preference detection
- Manual override with localStorage persistence
This template is provided as-is for educational and non-commercial use.