Commit Graph

137 Commits

Author SHA1 Message Date
sHa
eb139840ba Refactor CapitalsQuiz to replace WelcomeStats with QuizInfo component and remove unused code for improved clarity and maintainability. 2025-08-14 15:59:04 +03:00
sHa
d7ad274a63 Refactor FlagQuiz and GeographyQuiz to replace WelcomeStats with QuizInfo component for improved consistency and clarity in the welcome subpage. 2025-08-14 15:49:43 +03:00
sHa
71ce614762 Add common logic for achievements, global stats, session management, settings, and sound in quizzes 2025-08-14 15:47:09 +03:00
sHa
388b865bdf Add QuizHeader, QuizInfo, QuizStats, and QuizWelcome components with styling; remove WelcomeStats component 2025-08-14 15:46:21 +03:00
sHa
2434f5f6d6 Add new quiz types: Emblem, Logo, and update Geography and Flag quizzes with routing and state 2025-08-14 15:44:33 +03:00
sHa
ecc09b6b9a Add Geography Quiz and related components with quiz info and routing 2025-08-14 13:42:06 +03:00
sHa
163bd33c3c Add new achievements for "Star Performer" and "City Expert" with tracking logic in CapitalsQuiz 2025-08-14 11:26:56 +03:00
sHa
9b700bd9e8 Add mouse down event handler to InlineSvg for improved interaction 2025-08-14 09:46:53 +03:00
sHa
f9fce8e5ba Add cursor style to map wrapper and clean up zoom button styles for improved UI 2025-08-14 02:14:45 +03:00
sHa
1e722252e2 Enhance CountryMap component with zoom and recenter functionality, and add map controls for improved user interaction 2025-08-14 02:05:49 +03:00
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
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
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
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
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
fff1e0b395 Refactor SVG handling for responsive scaling and improve styling attributes 2025-06-20 00:02:36 +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
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
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
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
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
sHa
d87e79f44d chore: update code structure and remove redundant changes 2025-06-18 00:30:47 +03:00
sHa
ca97046961 feat: Enhance collection management with dropdown in Header and update related components 2025-06-17 17:50:47 +03:00
sHa
b81271c1cc feat: Implement collection support for logos and flags in the gallery 2025-06-17 16:21:31 +03:00
sHa
b0014295c8 refactor: Remove padding from logo image container in CardSmall component 2025-06-16 00:56:34 +03:00
sHa
d88c5b802d Enhance logo search and display functionality
- Updated logo filtering to include title in search criteria across multiple components.
- Modified CardFull, CardMiddle, CardSmall, and CardTiny components to display title or name as appropriate.
- Added support for displaying logo variants in CardFull component.
- Improved logo retrieval logic in Preview page to account for title matching.
2025-06-12 18:23:42 +03:00
sHa
de3c5dc52b refactor: Remove unused import of push from svelte-spa-router in Home component 2025-06-12 17:35:12 +03:00
sHa
1a006e75b8 feat: Enhance filtering capabilities by adding support for variants in Filter, Header, and Home components 2025-06-12 17:34:43 +03:00
sHa
b4bd726dad feat: Add Filter, ListViewSwitcher, SearchBar, and ThemeSwitcher components
- Implemented Filter component for managing tags and brands with localStorage and URL parameter updates.
- Created ListViewSwitcher component to toggle between compact, grid, and list views.
- Developed SearchBar component with global hotkey support for quick access and URL search parameter management.
- Added ThemeSwitcher component to allow users to switch between system, light, and dark themes.
2025-06-12 16:14:17 +03:00