Commit Graph

257 Commits

Author SHA1 Message Date
sHa
6c7ac29f62 Refactor country name highlighting logic in CountryMap component for improved readability and maintainability 2025-08-14 01:15:44 +03:00
sHa
6c2aa6acef Add CountryMap component to display highlighted countries on the world map 2025-08-14 01:14:32 +03:00
sHa
0dfb29d6f8 Add country flag section to CardFull component
- Introduced a new section to display country information for logos tagged with 'Country'.
- Displays the ISO code and includes an inline SVG world map highlighting the specified country.
- Added styles for the new section to ensure proper layout and visual appeal.
2025-08-14 00:07:11 +03:00
sHa
e64075b5e9 Add clock-circle SVG icon for improved UI elements 2025-08-12 09:26:40 +03:00
sHa
0eab81f0e2 Add Capitals Quiz game and update Game page
- Introduced a new Capitals Quiz game with full functionality including question generation, scoring, and session management.
- Updated Game.svelte to include the Capitals Quiz in the game list with appropriate metadata.
- Enhanced the layout of the game grid for better responsiveness.
- Removed placeholder for the Capitals Quiz in the upcoming games section.
2025-08-11 22:22:02 +03:00
sHa
348617688c Refactor FlagQuiz component: standardize string quotes, improve session state management, and integrate ActionButtons component for better UI control 2025-08-11 21:47:11 +03:00
sHa
32846dfc6f Add WelcomeStats component and integrate session management in FlagQuiz
- Created a new WelcomeStats component to display user statistics and session results.
- Integrated session management in FlagQuiz, allowing users to track their performance across multiple sessions.
- Updated game state handling to include session completion and results display.
- Enhanced user experience with improved navigation and session reset functionality.
2025-08-11 21:09:41 +03:00
sHa
889514ad45 Refactor Footer and Header components for improved layout; enhance FlagQuiz with question re-rendering and state management 2025-08-11 19:34:33 +03:00
sHa
bf615ff94f Refactor FlagQuiz to integrate QuizSettings component and implement auto-advance feature with timer 2025-08-11 19:05:59 +03:00
sHa
4dd1784e00 Add sound effects for correct and wrong answers in FlagQuiz and include sound settings 2025-08-11 18:23:08 +03:00
sHa
41e3785202 Update README to include features and quiz games section for better clarity 2025-08-11 18:17:38 +03:00
sHa
e0a5d21db0 Update Coming Soon header icon for improved visual clarity 2025-08-11 18:16:15 +03:00
sHa
7d3d8c5499 Enhance Game page subtitle for clarity and add upcoming game: Capital Quiz 2025-08-11 18:15:21 +03:00
sHa
8d9cda0d88 Add Footer component to FlagQuiz and Game pages for consistent layout 2025-08-11 18:11:56 +03:00
sHa
118f7e9399 Add tracking for correct and incorrect answers in FlagQuiz and implement adaptive learning settings 2025-08-11 18:06:43 +03:00
sHa
317d953a78 Enhance achievements: Add continent knowledge achievements and track progress for correct answers in FlagQuiz 2025-08-11 17:00:22 +03:00
sHa
c7bc987d41 Refactor achievement definitions: Standardize formatting and add new achievements for improved clarity and functionality 2025-08-11 16:27:43 +03:00
sHa
064401dc58 Update achievement icon: Replace 'crown-minimalistic.svg' with 'crown-star.svg' for improved design 2025-08-11 16:25:42 +03:00
sHa
717ccbf83f Fix deployment: Ensure icons are correctly included in GitHub Pages artifact preparation 2025-08-11 16:21:51 +03:00
sHa
9aa0fedd54 Fix deployment: Include icons in GitHub Pages artifact preparation 2025-08-11 16:18:57 +03:00
sHa
21e400e989 Enhance accessibility: Add ARIA roles and keyboard navigation to reset confirmation dialog in FlagQuiz page; remove unused CSS class from AchievementButton component 2025-08-11 16:15:58 +03:00
sHa
292c7e88b6 Refactor components to use InlineSvg for icons, enhance Header layout with grid, and implement achievement system in FlagQuiz page
- Replaced inline SVGs with InlineSvg component in Filter, Header, and ThemeSwitcher components for better maintainability.
- Improved Header layout using CSS Grid for better alignment and spacing of elements.
- Added achievement tracking and display functionality in FlagQuiz, including reset confirmation dialog and achievement count updates.
- Enhanced user feedback with animated result icons in FlagQuiz for correct and wrong answers.
- Introduced country info tooltips in FlagQuiz for additional context on answers.
2025-08-11 16:14:18 +03:00
sHa
f9182a6867 Add game feature: Implement Flag Quiz and Game selection page with theme support 2025-08-11 03:04:50 +03:00
sHa
39cbaa32e1 Update rollup-plugin-terser to version 7.0.2 and add new logos for Ntfy and Vite 2025-08-11 00:20:06 +03:00
sHa
61f8e30e4e Refactor App.svelte: Update Router import for consistency and clarity 2025-07-02 10:59:25 +03:00
sHa
0dcc8f0eba Refactor App.svelte: Reorganize imports for better clarity and structure 2025-07-02 10:49:37 +03:00
sHa
4ea8da4a34 Refactor App.svelte: Remove unused imports and variables for cleaner code 2025-07-02 10:42:22 +03:00
sHa
ef4f1c31c6 Refactor Makefile for improved container runtime detection and simplify commands 2025-07-02 10:20:57 +03:00
sHa
745cfb602c Add new SVG logo for Vite 2025-07-01 19:11:10 +03:00
sHa
fff1e0b395 Refactor SVG handling for responsive scaling and improve styling attributes 2025-06-20 00:02:36 +03:00
sHa
cb373ffef2 Refactor SVG gradients and IDs for consistency and clarity
- Updated gradient IDs in google_chrome_icon.svg to be more descriptive.
- Refactored gradient IDs in grafana.svg for better identification.
- Changed gradient IDs in homebridge.svg to follow a consistent naming convention.
- Modified gradient IDs in jellyfin.svg for clarity and consistency.
- Updated gradient IDs in shadoll.svg to avoid conflicts.
- Renamed ID in tesla.svg for better identification.
- Enhanced svg-cleanup.js to fix single-letter ID conflicts by prefixing them with the filename, improving SVG file integrity.
2025-06-19 17:21:55 +03:00
sHa
374ece5142 Refactor SVG processing scripts and add new functionality
- Updated `svg-cleanup.js` to improve SVG file processing and validation.
- Refactored `update-data.js` to streamline the data update process and integrate new scripts for generating image variants and syncing data files.
- Introduced `generate-variants.js` to handle the conversion of SVG files to PNG and JPG formats.
- Created `sync-data.js` to synchronize logo data with the filesystem, ensuring accurate representation of available images.
- Enhanced error handling and logging throughout the scripts for better debugging and user feedback.
- Added support for processing all collections or a specific collection based on command-line arguments or environment variables.
2025-06-19 17:09:45 +03:00
sHa
1db0f1cbe9 Clean up SVG files and update logos
- Removed unnecessary XML and DOCTYPE declarations from SVG files.
- Eliminated comments within SVG files for cleaner output.
- Trimmed leading and trailing whitespace from SVG content.
- Ensured all SVG files end with a newline character.
- Updated multiple logo SVG files including WireGuard, Wise, WOG, Yahoo, and others to conform to the new standards.
- Enhanced the update-data.js script to automate the cleanup process for SVG files.
2025-06-19 16:54:55 +03:00
sHa
e86600b610 Update SVG logos to use percentage dimensions and add viewBox where missing
- Modified SVG files for logos (webtorrent, wifi, wise-icon, zoom-icon, zoom) to set width and height to 100% for better responsiveness.
- Added viewBox attribute to SVGs that lacked it, using existing width and height values when available.
- Implemented a validation and fixing function in update-data.js to automate the process of ensuring SVGs have the correct attributes.
2025-06-19 16:46:12 +03:00
sHa
8c8078dcd9 Add US states flags 2025-06-19 16:13:14 +03:00
sHa
9d8205f321 Add new SVG logos for mini, Rolls Royce flat, and Rolls Royce 2025-06-19 00:50:06 +03:00
sHa
e4e571fd17 Add SVG logos for Subaru and Volvo
- Added Subaru logo SVG file to the project.
- Added Volvo logo SVG file to the project.
2025-06-18 22:07:01 +03:00
sHa
26d6a65499 Add Lesser Coat of Arms of Ukraine image and Belarus flag (1918, 1991–1995) SVG 2025-06-18 19:45:35 +03:00
sHa
44b73116b3 feat: add Armenian flag SVG and update existing flag SVGs
- Added a new SVG file for the Armenian flag (am-1952–1990.svg).
- Updated the existing Armenian flag SVG (am.svg) to use a new structure and color scheme.
- Refactored logo loading logic in App.svelte to reset filters and state when loading a new collection.
- Simplified PNG and JPG download functions in Actions.svelte to directly use collection variable directory.
- Enhanced SVG source fetching in CardFull.svelte to utilize a helper function for image URL generation.
2025-06-18 18:41:00 +03:00
sHa
2463661748 Refactor code structure for improved readability and maintainability 2025-06-18 17:02:46 +03:00
sHa
83dd8245a8 fix: Update collection label retrieval to support titles and improve SVG error handling 2025-06-18 16:49:05 +03:00
sHa
5baa4bfab4 Add titles to collections and update image URL resolution in components
- Added 'title' property to collections for 'Logos', 'Flags', and 'Emblems'.
- Updated image URL generation in CardMiddle, CardSmall, and CardTiny components to dynamically resolve the current collection based on window.appData.
2025-06-18 14:55:13 +03:00
sHa
e1fb0f60f3 Add Emblem of Ethiopia image to emblems_variants directory 2025-06-18 14:17:10 +03:00
sHa
77f18007a6 fix: Correct variable name for image variable directory in update-data.js 2025-06-18 13:55:53 +03:00
sHa
60d26c5388 feat: Enhance search functionality to include logo metadata 2025-06-18 13:54:23 +03:00
sHa
4a32deaeb5 Refactor PWA caching and image generation scripts
- Updated `generate-pwa-cache-list.js` to include images directory and remove duplicate file entries.
- Refactored `generate-svg-variants.js` to utilize collections from a centralized source and renamed generation directory variable.
- Modified `update-data.js` to align with new directory structure for images and variants, ensuring proper paths are used.
- Adjusted `collections.js` to standardize directory naming for variants.
- Enhanced Svelte components (`Actions.svelte`, `CardFull.svelte`, `CardMiddle.svelte`, `CardSmall.svelte`, `CardTiny.svelte`) to utilize context for collection management, simplifying image URL generation.
2025-06-18 13:18:15 +03:00
sHa
d7feb6db19 Refactor logo path handling in update-data.js
- Updated logic to create a Set of logo filenames instead of paths.
- Stripped directory path from logo.path to ensure only filenames are compared.
- Adjusted filtering for new logos to check against filenames directly.
- Ensured consistency in handling logo paths across the scanLogos and main functions.
- Minor formatting adjustments in logos.json to ensure proper file structure.
2025-06-18 12:36:55 +03:00
sHa
6e8168daac Refactor code structure for improved readability and maintainability 2025-06-18 12:31:26 +03:00
sHa
06ecfbf377 feat: Update asset paths and add emblems collection for PWA caching 2025-06-18 12:27:34 +03:00
sHa
708334bcf4 Refactor logo image handling across components
- Introduced utility functions to determine the base directory and image URL for logos based on their collection.
- Updated `Actions.svelte`, `CardFull.svelte`, `CardMiddle.svelte`, `CardSmall.svelte`, and `CardTiny.svelte` to use the new utility functions for generating image paths.
- Ensured that the correct image format (SVG, PNG, JPG) is used based on the logo's properties and active color sets.
2025-06-18 12:27:27 +03:00