Commit Graph

112 Commits

Author SHA1 Message Date
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
sHa
1b51146c29 refactor: Enhance logo loading logic and streamline theme setting in Preview component 2025-06-12 11:18:39 +03:00
sHa
d02e11fd7d refactor: Simplify ColorSwitcher integration and clean up related styles 2025-06-12 10:21:23 +03:00
sHa
224a2c7e27 refactor: Clean up unused styles and improve color switcher functionality 2025-06-12 03:41:59 +03:00
sHa
ec55af55d9 feat: Implement ColorSwitcher component and integrate it into logo cards for enhanced color selection 2025-06-12 03:27:57 +03:00
sHa
7968d399f2 feat: Add script to generate PWA cache file list and improve SVG circle rendering 2025-06-12 01:59:13 +03:00
sHa
0650c40199 feat: Add PWA support with service worker and caching
- Implemented service worker registration in main.js
- Added icons for PWA in manifest.json
- Created a basic service worker (sw.js) for caching static assets
- Generated a list of files to cache using a Node.js script (generate-pwa-cache-list.js)
- Added icon images (icon-192.png and icon-512.png) for PWA
- Defined PWA manifest with app details and icon references
2025-06-11 22:36:48 +03:00
sHa
13e148dc8a refactor: improve layout and styling of preview components for better responsiveness 2025-05-30 02:35:29 +03:00
sHa
754f87eaca feat: update SVG handling to support active color sets and improve URL copying 2025-05-29 23:27:18 +03:00
sHa
9f315ac247 feat: refactor Header and Footer styles for improved layout and consistency 2025-05-29 21:09:34 +03:00
sHa
23a45aaf71 feat: update border-radius of selected filter buttons for improved styling 2025-05-29 20:37:42 +03:00
sHa
670c265db1 feat: add additional color variable and update selected filter button styles for improved UI 2025-05-29 20:36:46 +03:00
sHa
585589a2d4 feat: add addBrand prop to CardSmall, CardMiddle, List, and Home components for brand filtering 2025-05-29 17:40:35 +03:00
sHa
f1731e55dd feat: update Header component to use allLogos for accurate logo count display 2025-05-29 17:27:10 +03:00
sHa
ac263276af feat: reorganize filter display and improve layout for selected tags and brands 2025-05-29 16:23:25 +03:00
sHa
2010eb6704 feat: refactor header layout for improved responsiveness on mobile 2025-05-29 15:48:16 +03:00
sHa
341571d920 feat: remove mobile logo count display and clean up responsive styles in header 2025-05-29 14:55:08 +03:00
sHa
07931e9767 feat: add mobile logo count display and responsive styles for header 2025-05-29 14:19:34 +03:00
sHa
2212c6db17 feat: enhance layout styles for better responsiveness and visual consistency 2025-05-29 13:21:22 +03:00
sHa
52a4292079 feat: add brand filtering functionality and integrate with localStorage 2025-05-29 13:00:27 +03:00
sHa
436d6847b2 feat: update tag labels for consistency and add clear all filters functionality 2025-05-29 11:45:14 +03:00
sHa
f4f4312d5b feat: restore selected tags from localStorage and update on changes 2025-05-29 11:27:12 +03:00
sHa
e1165b72d8 refactor: improve tag filtering logic and clean up unused styles 2025-05-29 11:04:20 +03:00
sHa
aac4889a25 refactor: rename 'Tags' to 'Categories' and update placeholder text in search input 2025-05-29 04:21:47 +03:00
sHa
13077a9925 style: update header layout and adjust tag background color for consistency 2025-05-29 04:18:22 +03:00
sHa
9c63c940cb feat: enhance tag filtering with search functionality and update compact mode toggle 2025-05-29 04:05:33 +03:00