| """Detailed Appreciation - Show detailed thanks and appreciation""" |
|
|
| import sys |
| import time |
| from typing import Optional, List |
|
|
|
|
| class Appreciation: |
| """Detailed appreciation display""" |
|
|
| APPRECIATION_MESSAGES = [ |
| { |
| "title": "Developer Appreciation", |
| "message": "Thank you for being an amazing developer!", |
| "details": [ |
| "Your code inspires others", |
| "Your questions help the community grow", |
| "Your learning journey motivates us", |
| ], |
| }, |
| { |
| "title": "Learning Partner", |
| "message": "Thank you for learning with us!", |
| "details": [ |
| "Every question makes us better", |
| "Your curiosity drives innovation", |
| "Together we grow stronger", |
| ], |
| }, |
| ] |
|
|
| @classmethod |
| def show(cls, topic: Optional[str] = None): |
| """Show detailed appreciation""" |
| print("\n" + "=" * 50) |
| print(" 🙏 APPRECIATION 🙏 ".center(50)) |
| print("=" * 50) |
|
|
| if topic: |
| print(f"\nThank you for asking about: [cyan]{topic}[/cyan]\n") |
| else: |
| print() |
|
|
| for msg in cls.APPRECIATION_MESSAGES[:1]: |
| print(f"[bold]{msg['title']}[/bold]") |
| print(f"[yellow]{msg['message']}[/yellow]\n") |
|
|
| if "details" in msg: |
| print("[dim]Special thanks for:[/dim]") |
| for detail in msg["details"]: |
| print(f" ✦ {detail}") |
|
|
| print() |
| print("=" * 50) |
| print() |
|
|
| @classmethod |
| def show_banner(cls, name: str = "Developer"): |
| """Show appreciation banner""" |
| banner = f""" |
| ╔══════════════════════════════════════════╗ |
| ║ ║ |
| ║ 🙏 Thank You, {name}! 🙏 ║ |
| ║ ║ |
| ║ Your contribution matters to us! ║ |
| ║ Keep coding and never stop learning! ║ |
| ║ ║ |
| ╚══════════════════════════════════════════╝ |
| """ |
| print(banner) |
|
|
| @classmethod |
| def show_stacked(cls, topics: List[str]): |
| """Show stacked appreciation for multiple topics""" |
| print("\n" + "─" * 40) |
| print(" 📚 Multiple Topic Appreciation 📚 ".center(40)) |
| print("─" * 40 + "\n") |
|
|
| for i, topic in enumerate(topics, 1): |
| print(f"{i}. 🙏 Thank you for asking about: [cyan]{topic}[/cyan]") |
|
|
| print("\n" + "─" * 40) |
| print("[green]Your questions are valuable to us![/green]") |
| print("─" * 40 + "\n") |
|
|
|
|
| def show_custom_appreciation(title: str, message: str, badges: List[str] = None): |
| """Show custom appreciation with badges""" |
| print("\n" + "═" * 50) |
| print(f" 🏆 {title} 🏆 ".center(50)) |
| print("═" * 50 + "\n") |
|
|
| print(f"[bold]{message}[/bold]\n") |
|
|
| if badges: |
| print("Your achievements:") |
| for badge in badges: |
| print(f" ⭐ {badge}") |
|
|
| print("\n" + "═" * 50 + "\n") |
|
|