|
| 1 | +@using TomAndJerry.Services |
| 2 | +@inject IStateService StateService |
| 3 | + |
| 4 | +<footer class="tom-jerry-footer mt-auto"> |
| 5 | + <div class="max-w-7xl mx-auto px-4 py-8"> |
| 6 | + <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> |
| 7 | + <!-- Left Section - Brand & Description --> |
| 8 | + <div class="text-center md:text-left"> |
| 9 | + <div class="flex items-center justify-center md:justify-start space-x-3 mb-4"> |
| 10 | + <div class="tom-character"> |
| 11 | + <div class="w-12 h-12 rounded-full overflow-hidden ring-2 ring-white/30 shadow-lg"> |
| 12 | + <RandomSticker Category="classic" CssClass="w-full h-full" ImageCssClass="w-full h-full object-cover" AutoRefresh="true" RefreshIntervalSeconds="15" /> |
| 13 | + </div> |
| 14 | + </div> |
| 15 | + <h3 class="text-2xl font-bold text-white font-comic cartoon-text"> |
| 16 | + Tom & Jerry |
| 17 | + </h3> |
| 18 | + </div> |
| 19 | + <p class="text-white/80 text-sm leading-relaxed font-comic"> |
| 20 | + The classic cat and mouse chase that has entertained generations. |
| 21 | + Watch your favorite episodes and collect adorable stickers! |
| 22 | + </p> |
| 23 | + </div> |
| 24 | + |
| 25 | + <!-- Center Section - Quick Links --> |
| 26 | + <div class="text-center"> |
| 27 | + <h4 class="text-lg font-bold text-white font-comic cartoon-text mb-4"> |
| 28 | + Quick Links |
| 29 | + </h4> |
| 30 | + <div class="space-y-2"> |
| 31 | + <button @onclick="GoToHomePage" |
| 32 | + class="block w-full text-white/80 hover:text-yellow-300 transition-colors font-comic text-sm hover:scale-105 transform"> |
| 33 | + 🎬 All Episodes |
| 34 | + </button> |
| 35 | + <button @onclick="GoToStickers" |
| 36 | + class="block w-full text-white/80 hover:text-yellow-300 transition-colors font-comic text-sm hover:scale-105 transform"> |
| 37 | + 🎭 Sticker Gallery |
| 38 | + </button> |
| 39 | + <button @onclick="GoToSearch" |
| 40 | + class="block w-full text-white/80 hover:text-yellow-300 transition-colors font-comic text-sm hover:scale-105 transform"> |
| 41 | + 🔍 Search Episodes |
| 42 | + </button> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + |
| 46 | + <!-- Right Section - Stats & Fun Facts --> |
| 47 | + <div class="text-center md:text-right"> |
| 48 | + <h4 class="text-lg font-bold text-white font-comic cartoon-text mb-4"> |
| 49 | + Fun Stats |
| 50 | + </h4> |
| 51 | + <div class="space-y-2"> |
| 52 | + @if (StateService.IsLoading || !StateService.CurrentVideos.Any()) |
| 53 | + { |
| 54 | + <div class="bg-white/20 backdrop-blur-sm rounded-xl px-4 py-2 border border-white/30"> |
| 55 | + <div class="h-4 bg-white/30 rounded w-16 mx-auto mb-1 skeleton"></div> |
| 56 | + <div class="text-xs text-white/80 font-comic">Episodes Available</div> |
| 57 | + </div> |
| 58 | + } |
| 59 | + else |
| 60 | + { |
| 61 | + <div class="bg-white/20 backdrop-blur-sm rounded-xl px-4 py-2 border border-white/30"> |
| 62 | + <div class="text-xl font-bold text-white font-cartoon">@StateService.CurrentVideos.Count()</div> |
| 63 | + <div class="text-xs text-white/80 font-comic">Episodes Available</div> |
| 64 | + </div> |
| 65 | + } |
| 66 | + <div class="bg-white/20 backdrop-blur-sm rounded-xl px-4 py-2 border border-white/30"> |
| 67 | + <div class="text-xl font-bold text-white font-cartoon">24</div> |
| 68 | + <div class="text-xs text-white/80 font-comic">Stickers to Collect</div> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + |
| 74 | + <!-- Bottom Section - Copyright & Credits --> |
| 75 | + <div class="border-t border-white/20 mt-8 pt-6"> |
| 76 | + <div class="flex flex-col space-y-4"> |
| 77 | + <!-- Main Disclaimer --> |
| 78 | + <div class="text-center"> |
| 79 | + <p class="text-white/70 text-sm font-comic leading-relaxed"> |
| 80 | + <strong class="text-yellow-300">⚠️ Educational Purpose Only</strong><br/> |
| 81 | + This application is created solely for learning and educational purposes. |
| 82 | + <span class="text-yellow-200">No content is monetized or used for commercial purposes.</span> |
| 83 | + </p> |
| 84 | + </div> |
| 85 | + |
| 86 | + <!-- Content Ownership --> |
| 87 | + <div class="text-center"> |
| 88 | + <p class="text-white/60 text-xs font-comic leading-relaxed"> |
| 89 | + <strong>Content Disclaimer:</strong> All Tom & Jerry characters, episodes, and related content |
| 90 | + belong to their respective owners (Warner Bros. Discovery). None of the content displayed |
| 91 | + on this site belongs to the developer. This is a fan-made educational project. |
| 92 | + </p> |
| 93 | + </div> |
| 94 | + |
| 95 | + <!-- Footer Bottom --> |
| 96 | + <div class="flex flex-col md:flex-row items-center justify-between space-y-2 md:space-y-0 pt-2"> |
| 97 | + <div class="text-center md:text-left"> |
| 98 | + <p class="text-white/60 text-xs font-comic"> |
| 99 | + © 2024 Educational Project. Made with ❤️ for learning purposes. |
| 100 | + </p> |
| 101 | + </div> |
| 102 | + <div class="flex items-center space-x-3"> |
| 103 | + <div class="jerry-character"> |
| 104 | + <div class="w-6 h-6 rounded-full overflow-hidden ring-2 ring-white/30 shadow-lg"> |
| 105 | + <RandomSticker Category="classic" CssClass="w-full h-full" ImageCssClass="w-full h-full object-cover" AutoRefresh="true" RefreshIntervalSeconds="18" /> |
| 106 | + </div> |
| 107 | + </div> |
| 108 | + <p class="text-white/60 text-xs font-comic"> |
| 109 | + Tom & Jerry © Warner Bros. |
| 110 | + </p> |
| 111 | + </div> |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + </div> |
| 115 | + </div> |
| 116 | +</footer> |
| 117 | + |
| 118 | +@code { |
| 119 | + [Inject] private NavigationManager nav { get; set; } = default!; |
| 120 | + |
| 121 | + void GoToHomePage() |
| 122 | + { |
| 123 | + nav.NavigateTo(""); |
| 124 | + } |
| 125 | + |
| 126 | + void GoToStickers() |
| 127 | + { |
| 128 | + nav.NavigateTo("stickers"); |
| 129 | + } |
| 130 | + |
| 131 | + void GoToSearch() |
| 132 | + { |
| 133 | + nav.NavigateTo("search"); |
| 134 | + } |
| 135 | + |
| 136 | + protected override void OnInitialized() |
| 137 | + { |
| 138 | + StateService.OnStateChanged += StateHasChanged; |
| 139 | + } |
| 140 | + |
| 141 | + public void Dispose() |
| 142 | + { |
| 143 | + StateService.OnStateChanged -= StateHasChanged; |
| 144 | + } |
| 145 | +} |
0 commit comments