RetroGamingHomeView.xaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.RetroGamingHomeView">
  4. <ScrollViewer VerticalScrollBarVisibility="Auto">
  5. <StackPanel Spacing="0">
  6. <!-- GAME OF THE DAY header -->
  7. <Grid ColumnDefinitions="*,Auto" Margin="16,16,16,8">
  8. <TextBlock Text="&gt; GAME OF THE DAY"
  9. FontFamily="Courier New, monospace" FontSize="11" FontWeight="Bold"
  10. Foreground="#00ffff" VerticalAlignment="Center"/>
  11. <Border Grid.Column="1" Background="#ffff00" Padding="8,3" VerticalAlignment="Center">
  12. <TextBlock Text="NEW!" FontFamily="Courier New, monospace" FontSize="9"
  13. FontWeight="Bold" Foreground="#120a1f"/>
  14. </Border>
  15. </Grid>
  16. <!-- Hero Section: Cyber Ninja 2084 -->
  17. <Border Margin="16,0,16,0" BorderBrush="#00ffff" BorderThickness="2">
  18. <StackPanel Spacing="0">
  19. <Border Height="180" ClipToBounds="True">
  20. <Panel>
  21. <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  22. <Border.Background>
  23. <ImageBrush Source="avares://ControlCatalog/Assets/RetroGaming/hero.jpg"
  24. Stretch="UniformToFill"/>
  25. </Border.Background>
  26. </Border>
  27. <Border>
  28. <Border.Background>
  29. <LinearGradientBrush StartPoint="0%,0%" EndPoint="0%,100%">
  30. <GradientStop Color="#20000000" Offset="0"/>
  31. <GradientStop Color="#D0000000" Offset="1"/>
  32. </LinearGradientBrush>
  33. </Border.Background>
  34. </Border>
  35. <!-- Pixel decorations (right side) -->
  36. <Canvas Width="220" Height="150" HorizontalAlignment="Right">
  37. <Border Canvas.Left="20" Canvas.Top="20" Width="8" Height="8" Background="#00ffff"/>
  38. <Border Canvas.Left="30" Canvas.Top="12" Width="8" Height="8" Background="#00ffff"/>
  39. <Border Canvas.Left="30" Canvas.Top="20" Width="8" Height="8" Background="#00ffff"/>
  40. <Border Canvas.Left="40" Canvas.Top="20" Width="8" Height="8" Background="#00ffff"/>
  41. <Border Canvas.Left="30" Canvas.Top="28" Width="8" Height="8" Background="#00ffff"/>
  42. <Border Canvas.Left="80" Canvas.Top="35" Width="12" Height="12" Background="#ad2bee"/>
  43. <Border Canvas.Left="92" Canvas.Top="22" Width="12" Height="12" Background="#ad2bee"/>
  44. <Border Canvas.Left="104" Canvas.Top="35" Width="12" Height="12" Background="#ad2bee"/>
  45. <Border Canvas.Left="92" Canvas.Top="47" Width="12" Height="12" Background="#ad2bee"/>
  46. <Border Canvas.Left="150" Canvas.Top="18" Width="10" Height="10" Background="#ffff00"/>
  47. <Border Canvas.Left="150" Canvas.Top="42" Width="10" Height="10" Background="#ffff00"/>
  48. <Border Canvas.Left="165" Canvas.Top="30" Width="8" Height="8" Background="#ff4466"/>
  49. <Border Canvas.Left="190" Canvas.Top="15" Width="6" Height="6" Background="#00ffff"/>
  50. <Border Canvas.Left="200" Canvas.Top="25" Width="4" Height="4" Background="#ad2bee"/>
  51. <Border Canvas.Left="180" Canvas.Top="60" Width="8" Height="8" Background="#ffff00"/>
  52. </Canvas>
  53. <!-- Genre badges -->
  54. <StackPanel Orientation="Horizontal" Spacing="6"
  55. HorizontalAlignment="Left" VerticalAlignment="Top"
  56. Margin="10,10,0,0">
  57. <Border Background="#00ffff" BorderBrush="#00ffff" BorderThickness="1" Padding="5,2">
  58. <TextBlock Text="ACTION" FontFamily="Courier New, monospace"
  59. FontSize="7" FontWeight="Bold" Foreground="#120a1f"/>
  60. </Border>
  61. <Border Background="#4050ad2b" BorderBrush="#7856a8" BorderThickness="1" Padding="5,2">
  62. <TextBlock Text="RPG" FontFamily="Courier New, monospace"
  63. FontSize="7" FontWeight="Bold" Foreground="#7856a8"/>
  64. </Border>
  65. </StackPanel>
  66. <!-- Title overlay -->
  67. <StackPanel VerticalAlignment="Bottom" Margin="10,0,10,10" Spacing="4">
  68. <WrapPanel Orientation="Horizontal">
  69. <TextBlock Text="CYBER " FontFamily="Courier New, monospace"
  70. FontSize="20" FontWeight="Bold" Foreground="#ff00ff"/>
  71. <TextBlock Text="NINJA" FontFamily="Courier New, monospace"
  72. FontSize="20" FontWeight="Bold" Foreground="White"/>
  73. </WrapPanel>
  74. <WrapPanel Orientation="Horizontal">
  75. <TextBlock Text="2084 " FontFamily="Courier New, monospace"
  76. FontSize="20" FontWeight="Bold" Foreground="White"/>
  77. <TextBlock Text="₿" FontFamily="Courier New, monospace"
  78. FontSize="18" FontWeight="Bold" Foreground="#ffff00"
  79. VerticalAlignment="Center"/>
  80. </WrapPanel>
  81. <TextBlock Text="Hack the mainframe. Slice the AI."
  82. FontFamily="Courier New, monospace" FontSize="9"
  83. Foreground="#D2E0D0FF"/>
  84. </StackPanel>
  85. </Panel>
  86. </Border>
  87. <!-- Play button -->
  88. <Button x:Name="HeroPlayBtn"
  89. HorizontalAlignment="Stretch"
  90. HorizontalContentAlignment="Center"
  91. Margin="0" Padding="0,14" CornerRadius="0"
  92. Classes="retro-primary-btn">
  93. <TextBlock Text="▶ INSERT COIN TO PLAY"
  94. FontFamily="Courier New, monospace" FontSize="10"
  95. FontWeight="Bold" Foreground="White"/>
  96. </Button>
  97. </StackPanel>
  98. </Border>
  99. <!-- CONTINUE PLAYING header -->
  100. <Grid ColumnDefinitions="*,Auto" Margin="16,16,16,8">
  101. <StackPanel Orientation="Horizontal" Spacing="6" VerticalAlignment="Center">
  102. <PathIcon Width="13" Height="13" Foreground="#00ffff"
  103. Data="M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2Z"/>
  104. <TextBlock Text="CONTINUE PLAYING"
  105. FontFamily="Courier New, monospace" FontSize="11" FontWeight="Bold"
  106. Foreground="#00ffff" VerticalAlignment="Center"/>
  107. </StackPanel>
  108. </Grid>
  109. <!-- Continue Playing cards (horizontal scroll) -->
  110. <ScrollViewer HorizontalScrollBarVisibility="Auto"
  111. VerticalScrollBarVisibility="Disabled"
  112. Margin="0,0,0,4">
  113. <StackPanel Orientation="Horizontal" Spacing="10" Margin="16,0">
  114. <!-- Pixel Quest card -->
  115. <Button x:Name="ContinuePixelQuestBtn" Padding="0" Background="Transparent"
  116. CornerRadius="0" MinWidth="240" Classes="retro-list-btn">
  117. <Border Background="#1a0a33"
  118. BorderBrush="#3300ffff" BorderThickness="1" ClipToBounds="True">
  119. <StackPanel Spacing="0">
  120. <Grid ColumnDefinitions="80,*,40" MinHeight="80">
  121. <Border Width="80" ClipToBounds="True">
  122. <Border.Background>
  123. <ImageBrush Source="avares://ControlCatalog/Assets/RetroGaming/pixel_quest.jpg"
  124. Stretch="UniformToFill"/>
  125. </Border.Background>
  126. </Border>
  127. <StackPanel Grid.Column="1" Spacing="4" VerticalAlignment="Center"
  128. Margin="10,10,0,10">
  129. <TextBlock Text="PIXEL QUEST" FontFamily="Courier New, monospace"
  130. FontSize="11" FontWeight="Bold" Foreground="#00ffff"
  131. TextTrimming="CharacterEllipsis"/>
  132. <TextBlock Text="LVL 4 - DUNGEON" FontFamily="Courier New, monospace"
  133. FontSize="9" Foreground="#7856a8"/>
  134. </StackPanel>
  135. <Panel Width="40" Grid.Column="2">
  136. <Border Width="40" Height="40" Background="#ffff00" VerticalAlignment="Center">
  137. <PathIcon Width="16" Height="16" Foreground="#120a1f"
  138. Data="M8,5.14V19.14L19,12.14L8,5.14Z"/>
  139. </Border>
  140. </Panel>
  141. </Grid>
  142. <Grid ColumnDefinitions="*,Auto" Margin="10,4,10,2">
  143. <TextBlock Text="HP" FontFamily="Courier New, monospace"
  144. FontSize="8" Foreground="#7856a8"/>
  145. <TextBlock Grid.Column="1" Text="65%"
  146. FontFamily="Courier New, monospace" FontSize="8"
  147. FontWeight="Bold" Foreground="#ffff00"
  148. HorizontalAlignment="Right"/>
  149. </Grid>
  150. <Grid ColumnDefinitions="65*,35*" Height="5">
  151. <Border Background="#ad2bee"/>
  152. <Border Grid.Column="1" Background="#33ad2bee"/>
  153. </Grid>
  154. </StackPanel>
  155. </Border>
  156. </Button>
  157. <!-- Space Voids card -->
  158. <Button x:Name="ContinueSpaceVoidsBtn" Padding="0" Background="Transparent"
  159. CornerRadius="0" MinWidth="240" Classes="retro-list-btn">
  160. <Border Background="#1a0a33"
  161. BorderBrush="#33ffff00" BorderThickness="1" ClipToBounds="True">
  162. <StackPanel Spacing="0">
  163. <Grid ColumnDefinitions="80,*,40" MinHeight="80">
  164. <Border Width="80" ClipToBounds="True">
  165. <Border.Background>
  166. <ImageBrush Source="avares://ControlCatalog/Assets/RetroGaming/space_voids.jpg"
  167. Stretch="UniformToFill"/>
  168. </Border.Background>
  169. </Border>
  170. <StackPanel Grid.Column="1" Spacing="4" VerticalAlignment="Center"
  171. Margin="10,10,0,10">
  172. <TextBlock Text="SPACE VOIDS" FontFamily="Courier New, monospace"
  173. FontSize="11" FontWeight="Bold" Foreground="#00ffff"
  174. TextTrimming="CharacterEllipsis"/>
  175. <TextBlock Text="SECTOR 7" FontFamily="Courier New, monospace"
  176. FontSize="9" Foreground="#7856a8"/>
  177. </StackPanel>
  178. <Panel Width="40" Grid.Column="2">
  179. <Border Width="40" Height="40" Background="#ffff00" VerticalAlignment="Center">
  180. <PathIcon Width="16" Height="16" Foreground="#120a1f"
  181. Data="M8,5.14V19.14L19,12.14L8,5.14Z"/>
  182. </Border>
  183. </Panel>
  184. </Grid>
  185. <Grid ColumnDefinitions="*,Auto" Margin="10,4,10,2">
  186. <TextBlock Text="HP" FontFamily="Courier New, monospace"
  187. FontSize="8" Foreground="#7856a8"/>
  188. <TextBlock Grid.Column="1" Text="32%"
  189. FontFamily="Courier New, monospace" FontSize="8"
  190. FontWeight="Bold" Foreground="#ffff00"
  191. HorizontalAlignment="Right"/>
  192. </Grid>
  193. <Grid ColumnDefinitions="32*,68*" Height="5">
  194. <Border Background="#ad2bee"/>
  195. <Border Grid.Column="1" Background="#33ad2bee"/>
  196. </Grid>
  197. </StackPanel>
  198. </Border>
  199. </Button>
  200. </StackPanel>
  201. </ScrollViewer>
  202. <!-- NEW RELEASES header -->
  203. <Grid ColumnDefinitions="*,Auto" Margin="16,20,16,10">
  204. <StackPanel Grid.Column="0" Spacing="3">
  205. <TextBlock Text="~NEW RELEASES" FontFamily="Courier New, monospace"
  206. FontSize="12" FontWeight="Bold" Foreground="#e0d0ff"/>
  207. <Border Height="1" Background="#ad2bee"/>
  208. </StackPanel>
  209. <TextBlock Grid.Column="1" Text="VIEW ALL &gt;"
  210. FontFamily="Courier New, monospace" FontSize="9" FontWeight="Bold"
  211. Foreground="#ad2bee" VerticalAlignment="Top"/>
  212. </Grid>
  213. <!-- New Releases row (horizontal scroll) -->
  214. <ScrollViewer HorizontalScrollBarVisibility="Auto"
  215. VerticalScrollBarVisibility="Disabled">
  216. <StackPanel Orientation="Horizontal" Spacing="8" Margin="16,0">
  217. <!-- Neon Racer -->
  218. <Button x:Name="NewReleaseNeonRacerBtn" Padding="0" Width="100"
  219. Background="Transparent" CornerRadius="0" Classes="retro-list-btn">
  220. <StackPanel Spacing="0">
  221. <Border Height="115" ClipToBounds="True">
  222. <Panel>
  223. <Border>
  224. <Border.Background>
  225. <ImageBrush Source="avares://ControlCatalog/Assets/RetroGaming/neon_racer.jpg"
  226. Stretch="UniformToFill"/>
  227. </Border.Background>
  228. </Border>
  229. <Border Background="#ff4466" Padding="4,2"
  230. HorizontalAlignment="Left" VerticalAlignment="Top">
  231. <TextBlock Text="HOT" FontFamily="Courier New, monospace"
  232. FontSize="7" FontWeight="Bold" Foreground="White"/>
  233. </Border>
  234. </Panel>
  235. </Border>
  236. <StackPanel Spacing="2" Margin="2,6,2,4">
  237. <TextBlock Text="Neon Racer" FontFamily="Courier New, monospace"
  238. FontSize="9" FontWeight="Bold" Foreground="#e0d0ff"
  239. TextTrimming="CharacterEllipsis"/>
  240. <TextBlock Text="Racing" FontFamily="Courier New, monospace"
  241. FontSize="8" Foreground="#7856a8"/>
  242. </StackPanel>
  243. </StackPanel>
  244. </Button>
  245. <!-- Dungeon Bit -->
  246. <Button x:Name="NewReleaseDungeonBitBtn" Padding="0" Width="100"
  247. Background="Transparent" CornerRadius="0" Classes="retro-list-btn">
  248. <StackPanel Spacing="0">
  249. <Border Height="115" ClipToBounds="True">
  250. <Border.Background>
  251. <ImageBrush Source="avares://ControlCatalog/Assets/RetroGaming/dungeon_bit.jpg"
  252. Stretch="UniformToFill"/>
  253. </Border.Background>
  254. </Border>
  255. <StackPanel Spacing="2" Margin="2,6,2,4">
  256. <TextBlock Text="Dungeon Bit" FontFamily="Courier New, monospace"
  257. FontSize="9" FontWeight="Bold" Foreground="#e0d0ff"
  258. TextTrimming="CharacterEllipsis"/>
  259. <TextBlock Text="Adventure" FontFamily="Courier New, monospace"
  260. FontSize="8" Foreground="#7856a8"/>
  261. </StackPanel>
  262. </StackPanel>
  263. </Button>
  264. <!-- Forest Spirit -->
  265. <Button x:Name="NewReleaseForestSpiritBtn" Padding="0" Width="100"
  266. Background="Transparent" CornerRadius="0" Classes="retro-list-btn">
  267. <StackPanel Spacing="0">
  268. <Border Height="115" ClipToBounds="True">
  269. <Border.Background>
  270. <ImageBrush Source="avares://ControlCatalog/Assets/RetroGaming/forest_spirit.jpg"
  271. Stretch="UniformToFill"/>
  272. </Border.Background>
  273. </Border>
  274. <StackPanel Spacing="2" Margin="2,6,2,4">
  275. <TextBlock Text="Forest Spirit" FontFamily="Courier New, monospace"
  276. FontSize="9" FontWeight="Bold" Foreground="#e0d0ff"
  277. TextTrimming="CharacterEllipsis"/>
  278. <TextBlock Text="Platform" FontFamily="Courier New, monospace"
  279. FontSize="8" Foreground="#7856a8"/>
  280. </StackPanel>
  281. </StackPanel>
  282. </Button>
  283. <!-- Cyber City -->
  284. <Button x:Name="NewReleaseCyberCityBtn" Padding="0" Width="100"
  285. Background="Transparent" CornerRadius="0" Classes="retro-list-btn">
  286. <StackPanel Spacing="0">
  287. <Border Height="115" ClipToBounds="True">
  288. <Border.Background>
  289. <ImageBrush Source="avares://ControlCatalog/Assets/RetroGaming/cyber_city.jpg"
  290. Stretch="UniformToFill"/>
  291. </Border.Background>
  292. </Border>
  293. <StackPanel Spacing="2" Margin="2,6,2,4">
  294. <TextBlock Text="Cyber City" FontFamily="Courier New, monospace"
  295. FontSize="9" FontWeight="Bold" Foreground="#e0d0ff"
  296. TextTrimming="CharacterEllipsis"/>
  297. <TextBlock Text="Strategy" FontFamily="Courier New, monospace"
  298. FontSize="8" Foreground="#7856a8"/>
  299. </StackPanel>
  300. </StackPanel>
  301. </Button>
  302. </StackPanel>
  303. </ScrollViewer>
  304. <!-- Category bar -->
  305. <WrapPanel Orientation="Horizontal" Margin="16,14,16,24">
  306. <Button Content="ARCADE" Padding="14,8" CornerRadius="0"
  307. Margin="0,0,8,8" Classes="retro-cat-selected">
  308. <Button.ContentTemplate>
  309. <DataTemplate>
  310. <TextBlock Text="ARCADE" FontFamily="Courier New, monospace"
  311. FontSize="10" FontWeight="Bold" Foreground="White"/>
  312. </DataTemplate>
  313. </Button.ContentTemplate>
  314. </Button>
  315. <Button Padding="14,8" CornerRadius="0" Margin="0,0,8,8" Classes="retro-cat-btn">
  316. <TextBlock Text="STRATEGY" FontFamily="Courier New, monospace"
  317. FontSize="10" FontWeight="Bold" Foreground="#e0d0ff"/>
  318. </Button>
  319. <Button Padding="14,8" CornerRadius="0" Margin="0,0,8,8" Classes="retro-cat-btn">
  320. <TextBlock Text="RPG" FontFamily="Courier New, monospace"
  321. FontSize="10" FontWeight="Bold" Foreground="#e0d0ff"/>
  322. </Button>
  323. <Button Padding="14,8" CornerRadius="0" Margin="0,0,8,8" Classes="retro-cat-btn">
  324. <TextBlock Text="PUZZLE" FontFamily="Courier New, monospace"
  325. FontSize="10" FontWeight="Bold" Foreground="#e0d0ff"/>
  326. </Button>
  327. </WrapPanel>
  328. </StackPanel>
  329. </ScrollViewer>
  330. </UserControl>