Commit Graph

288 Commits

Author SHA1 Message Date
sHa
0a3b7a9049 Update fill attributes to currentColor for consistency in shkafnik-ev.svg 2025-12-10 21:51:36 +02:00
sHa
79a7eada6a Update fill attributes to transparent for consistency in shkafnik-ev.svg 2025-12-10 21:40:01 +02:00
sHa
8911d1525e Refactor SVG element attributes for consistency in shkafnik-ev.svg 2025-12-10 21:33:27 +02:00
sHa
768cbf9151 Refactor SVG structure and remove redundant style attributes in shkafnik-ev.svg 2025-12-10 21:28:28 +02:00
sHa
6702cbc342 Add new color definitions for 'ng' logo in logos.json 2025-12-10 21:26:20 +02:00
sHa
85db756e43 Add Shkafnik-ev logo and update logos.json with new brand details 2025-12-10 21:25:10 +02:00
sHa
25a67e43ef Rename Shkafnik to shkafnik-ng and update title in logos.json
Some checks failed
Deploy to GitHub Pages / build-and-deploy (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2025-12-09 23:24:47 +02:00
sHa
90719f2e16 Refactor JSON data structure and add new logo for Shkafnik
- Cleaned up formatting in flags.json for better readability by removing unnecessary newlines.
- Added new logo entry for "Shkafnik" in logos.json with associated properties and color sets.
- Created a new SVG file for "Shkafnik" logo with detailed path definitions.
- Ensured proper formatting in existing SVG files by adding missing newlines at the end of files.
2025-12-09 23:12:34 +02:00
sHa
4ee8757577 Add color and target definitions for Nikamebel brand in logos.json; update SVG file to new design
Some checks failed
Deploy to GitHub Pages / build-and-deploy (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2025-12-07 15:51:05 +02:00
sHa
1cd6764078 Add CLAUDE.md guidance and add targets/sets for Dalnoboy Service in logos.json
Some checks failed
Deploy to GitHub Pages / build-and-deploy (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2025-10-30 14:43:21 +02:00
sHa
fc172cfa36 Add SVG cleanup utility for worldmap.svg
This commit introduces a new script, cleanup_worldmap.py, which provides a utility for cleaning and normalizing the SVG file worldmap.svg. The script performs various transformations including:

- Normalizing path tags and attributes
- Adding data-iso attributes based on a provided JSON mapping
- Pretty-printing the SVG output
- Creating a backup before overwriting the original file when using the --in-place option

The script is designed for ease of use with command-line arguments and includes error handling for XML validation.
2025-09-01 02:07:34 +03:00
sHa
58ab00f08d Fix layout issue in preview container by adjusting flex display properties 2025-09-01 01:44:36 +03:00
sHa
4dd4317d66 Refactor CardFull and InlineSvg components for improved layout and SVG handling 2025-09-01 01:37:09 +03:00
sHa
fe07f166cf Add ISO 3166-1 country codes JSON file and refactor Game.svelte to remove upcoming games section 2025-08-16 01:35:03 +03:00
sHa
fba47c142c Refactor CountryMap and CardFull components for ISO code handling
- Updated CardFull to ensure ISO codes are trimmed and uppercased before passing to CountryMap.
- Removed unused countryNames prop from CountryMap and adjusted highlighting logic to use data-iso attributes for country identification.
- Enhanced GeographyQuiz to prioritize ISO code checks and normalize values for consistency.
- Cleaned up code by removing legacy attribute handling and ensuring robust attribute management during country highlighting.
2025-08-16 00:01:01 +03:00
sHa
3ee3ffeb17 Implement code changes to enhance functionality and improve performance 2025-08-15 23:09:19 +03:00
sHa
c1bfa83963 Enhance Geography Quiz functionality and UI
- Updated Header component to recognize new quiz route for geography.
- Improved InlineSvg component to ensure proper SVG scaling and color handling.
- Refactored GeographyQuiz component to streamline game logic, including session management, question generation, and scoring.
- Added achievements tracking and settings management for user preferences.
- Enhanced UI elements for better user experience, including loading states and responsive design adjustments.
- Implemented auto-advance timer for quiz questions and improved state restoration on page reload.
2025-08-15 15:03:40 +03:00
sHa
d61366b91d Refactor session management in quizzes to use centralized restoreSessionState function and improve flag loading logic with shared utilities 2025-08-15 12:15:55 +03:00
sHa
44078938fe Refactor quiz components to improve session management and theme handling
- Updated QuizSettings component to handle full reset of quiz data and reload the application after clearing local storage.
- Refactored CapitalsQuiz and FlagQuiz components to utilize shared session management functions, reducing code duplication.
- Introduced createNewSessionState function to streamline session initialization across quizzes.
- Implemented a shared advance timer utility for managing auto-advance functionality in quizzes.
- Centralized theme management into a utility module, allowing for consistent theme application and storage across components.
- Removed redundant session state management code from quiz components, enhancing maintainability.
2025-08-15 02:03:58 +03:00
sHa
63d6c99ff1 Refactor CapitalsQuiz and FlagQuiz to utilize shared logic for achievements and settings management, enhancing code consistency and maintainability. 2025-08-15 00:37:47 +03:00
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
88f786496c Add new SVG icons for stars and map points
- Added star-shine.svg, star.svg, stars-1.svg, stars-line.svg, stars-minimalistic.svg, stars.svg, streets-map-point.svg, and ticker-star.svg to the public/icons directory.
- Each SVG file contains unique designs for various star and map point icons, enhancing the icon library for the project.
2025-08-14 10:51:50 +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
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