Skip to content

premendrakumar/know-your-positivity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Know Your Positivity ๐Ÿš€

A beautiful, interactive web application that helps you unlock your inner power through motivational frameworks and positivity models. Navigate through inspiring cards that guide you on your journey of self-improvement and personal growth.

โœจ Features

  • ๐Ÿ“ฑ Card-Based Navigation: Browse through motivational content with intuitive prev/next controls
  • ๐ŸŒ“ Dark Mode: Toggle between light and dark themes (preference saved in localStorage)
  • ๐ŸŒ Multi-Language Support: Available in 12 languages including English, Hindi, Urdu, Punjabi, Marathi, Russian, Gujarati, Haryanvi, Bangla, Kannada, Telugu, and Tamil
  • ๐Ÿ’ก Motivational Frameworks: Learn about various models including:
    • Cognitive Loop (Thinking & Execution Framework)
    • Data Processing Model
    • Motivation & Growth Model (4 Pushes Model)
    • Generalized Learning Plan
    • Layered Approach
    • SHANTI Recursive Comeback Model
  • ๐Ÿ“ฑ Responsive Design: Works seamlessly on desktop and mobile devices
  • ๐Ÿ’พ Persistent Settings: Your theme and language preferences are saved automatically

๐Ÿš€ Getting Started

Prerequisites

  • A modern web browser (Chrome, Firefox, Safari, Edge)
  • No installation or build process required!

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/know-your-positivity.git
    cd know-your-positivity
  2. Open index.html in your web browser:

    • Simply double-click the file, or
    • Use a local server (recommended):
      # Using Python 3
      python -m http.server 8000
      
      # Using Node.js (http-server)
      npx http-server
      
      # Using PHP
      php -S localhost:8000
  3. Navigate to http://localhost:8000 in your browser

๐Ÿ“– Usage

  • Navigate Cards: Use the โฌ…๏ธ and โžก๏ธ buttons to browse through different motivational frameworks
  • Switch Language: Click the language button in the footer to cycle through all available languages (12 languages supported)
  • Toggle Theme: Click the ๐ŸŒ™ Dark Mode / โ˜€๏ธ Light Mode button to switch themes
  • About: Click the โ„น๏ธ About button to learn more about the project

๐Ÿ› ๏ธ Technologies Used

  • HTML5: Structure and semantic markup
  • TailwindCSS: Utility-first CSS framework (via CDN)
  • Vanilla JavaScript (ES6 Modules): No frameworks, pure JavaScript
  • LocalStorage API: For persisting user preferences

๐Ÿ“ Project Structure

know-your-positivity/
โ”œโ”€โ”€ assets/
โ”‚   โ””โ”€โ”€ a-studious-student.png  # Favicon
โ”œโ”€โ”€ js/                    # JavaScript modules (modular architecture)
โ”‚   โ”œโ”€โ”€ app.js            # Main application coordinator
โ”‚   โ”œโ”€โ”€ cardManager.js    # Card navigation logic
โ”‚   โ”œโ”€โ”€ themeManager.js   # Dark/light mode management
โ”‚   โ”œโ”€โ”€ languageManager.js # Language switching
โ”‚   โ”œโ”€โ”€ modalManager.js   # About modal handling
โ”‚   โ”œโ”€โ”€ uiManager.js      # UI updates
โ”‚   โ””โ”€โ”€ README.md         # Module documentation
โ”œโ”€โ”€ data.en.js            # English content data
โ”œโ”€โ”€ data.hi.js            # Hindi (เคนเคฟเค‚เคฆเฅ€) content data
โ”œโ”€โ”€ data.ur.js            # Urdu (ุงุฑุฏูˆ) content data
โ”œโ”€โ”€ data.pn.js            # Punjabi (เจชเฉฐเจœเจพเจฌเฉ€) content data
โ”œโ”€โ”€ data.mr.js            # Marathi (เคฎเคฐเคพเค เฅ€) content data
โ”œโ”€โ”€ data.ru.js            # Russian (ะ ัƒััะบะธะน) content data
โ”œโ”€โ”€ data.gu.js            # Gujarati (เช—เซเชœเชฐเชพเชคเซ€) content data
โ”œโ”€โ”€ data.hr.js            # Haryanvi (เคนเคฐเคฟเคฏเคพเคฃเคตเฅ€) content data
โ”œโ”€โ”€ data.bn.js            # Bangla (เฆฌเฆพเฆ‚เฆฒเฆพ) content data
โ”œโ”€โ”€ data.kn.js            # Kannada (เฒ•เฒจเณเฒจเฒก) content data
โ”œโ”€โ”€ data.te.js            # Telugu (เฐคเฑ†เฐฒเฑเฐ—เฑ) content data
โ”œโ”€โ”€ data.ta.js            # Tamil (เฎคเฎฎเฎฟเฎดเฏ) content data
โ”œโ”€โ”€ languageConfig.js     # Language configuration
โ”œโ”€โ”€ index.html            # Main HTML file
โ”œโ”€โ”€ changelog.md          # Project changelog
โ”œโ”€โ”€ LICENSE               # MIT License
โ””โ”€โ”€ README.md             # This file

Code Organization

The codebase follows a modular architecture with separate manager classes for different concerns:

  • CardManager: Handles card navigation and display
  • ThemeManager: Manages theme switching and persistence
  • LanguageManager: Handles language switching and localization
  • ModalManager: Manages modal interactions
  • UIManager: Updates UI elements based on language
  • App: Coordinates all modules and initializes the application

This structure makes the code more maintainable, testable, and easier to extend.

๐ŸŽฏ Current Version

v1.0.4 - Latest release with multi-language support (12 languages)

Supported Languages

๐Ÿ‡ฌ๐Ÿ‡ง English | ๐Ÿ‡ฎ๐Ÿ‡ณ Hindi | ๐Ÿ‡ต๐Ÿ‡ฐ Urdu | ๐Ÿ‡ฎ๐Ÿ‡ณ Punjabi | ๐Ÿ‡ฎ๐Ÿ‡ณ Marathi | ๐Ÿ‡ท๐Ÿ‡บ Russian | ๐Ÿ‡ฎ๐Ÿ‡ณ Gujarati | ๐Ÿ‡ฎ๐Ÿ‡ณ Haryanvi | ๐Ÿ‡ง๐Ÿ‡ฉ Bangla | ๐Ÿ‡ฎ๐Ÿ‡ณ Kannada | ๐Ÿ‡ฎ๐Ÿ‡ณ Telugu | ๐Ÿ‡ฎ๐Ÿ‡ณ Tamil

See changelog.md for detailed version history and upcoming features.

๐Ÿค Contributing

Contributions are welcome! This project is open-source and available under the MIT License. Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests
  • Add translations for new languages
  • Improve documentation

๐Ÿ“ License

This project is open-source and available under the MIT License.
Feel free to use, modify, and contribute. Just don't forget to give credit! ๐Ÿ˜Š

๐Ÿ’ญ About

Know Your Positivity was created with the belief that sometimes, all we need is a little push to see the brighter side of life! ๐ŸŒŸ

Every day is a new chance to grow and inspire others. This tool helps you unlock your inner power through motivational frameworks and positivity models.


๐Ÿš€ Stay positive & keep unlocking your potential! ๐Ÿ”ฅ

About

To push beyond limits, using some magic words!! ๐Ÿช„๐Ÿช„๐Ÿš€๐Ÿš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •