Skip to content

Commit

Permalink
Poker - HUD
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHedley committed Jun 2, 2024
1 parent 34d5be7 commit 321b33d
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/includes/posts/poker.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
- [Poker - API](poker-api)
- [Poker - Stats](poker-stats)
- [Poker - App](poker-app)
- [Poker - Docs](poker-docs)
- [Poker - Docs](poker-docs)
- [Poker - Hud](poker-hud)
Binary file added src/input/posts/images/poker/hud/Board.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/input/posts/images/poker/hud/Board_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/input/posts/images/poker/hud/Player1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/input/posts/images/poker/hud/Player2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/input/posts/images/poker/hud/Players_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/input/posts/images/poker/hud/Pot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/input/posts/images/poker/hud/Pot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions src/input/posts/poker-hud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
title: Poker - HUD
# lead: Poker
tags:
- poker
- ui
- blazor
- blazor wasm
- .net
- csharp
author: alexhedley
description: Designing a HUD for the Stats
published: 2024-06-02
# image: /posts/images/###.png
# imageattribution:
---

<!-- # Poker - HUD -->

<?# Markdown ?>
<?!^ "./../includes/posts/poker.md" /?>
<?#/ Markdown ?>

I'm back to working on the [Poker Web App](poker-app), as you saw from the original post the UI is lacking somewhat.

![Web App table](images/poker/testing-table.png "Web App table")

I've taken some inspiration from live shows and started working on implementing the styles in the app. I've found a number of variations I can work through, so here's the first attempt.

This led me to creating a shared `Microsoft.NET.Sdk.Razor` project called **Poker.Components**. (I should have done this with the original [components](https://alexhedley.github.io/poker-recording/components)).

I've made a start on the first **Board**:

![Board](images/poker/hud/Board.png "Board")

![Board](images/poker/hud/Board_1.png "Board")

**Players**:

![Player 1](images/poker/hud/Player1.png "Player 1")
![Player 2](images/poker/hud/Player2.png "Player 2")

![Player 1](images/poker/hud/Players_1.png "Players")

And **Pot**:

![Pot](images/poker/hud/Pot.png "Pot")

![Pot](images/poker/hud/Pot_1.png "Pot")

<?# Info ?>
Thanks for the card images [@danielpaz6](https://github.com/danielpaz6) in [Texas holdem Rank Card Evaluator](https://github.com/danielpaz6/Poker-Hand-Evaluator)
<?#/ Info ?>

With this shared Library it means I can try it out in both my _Blazor WASM_ app (that I have deployed on GitHub Pages), and my _Blazor Server_ app which I'll be using as the main app.

See the current progress at

- https://alexhedley.com/poker-recording/hud

One very helpful tool I used to layout the _Players_ was [Layoutit!](https://grid.layoutit.com/), which is a _CSS Grid Generator_.

I copied the initial output to [codepen](https://codepen.io/) before moving to my Blazor app.

- https://codepen.io/AlexHedley/pen/KKLWXpO

Track it via

- Issue (40): https://github.com/AlexHedley/poker-recording/issues/40
- MR (39): https://github.com/AlexHedley/poker-recording/pull/39

0 comments on commit 321b33d

Please sign in to comment.