From 09fff8f27700ee23bd10cc219aa652a702a4ae8d Mon Sep 17 00:00:00 2001 From: "Damon L. Montague Jr." Date: Fri, 19 Jan 2024 18:05:38 -0500 Subject: [PATCH] fixed src file --- ui/src/components/loading.tsx | 11 ++++++++ ui/src/components/navbar.tsx | 18 +++++++++++++ ui/src/model/game.ts | 48 +++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 ui/src/components/loading.tsx create mode 100644 ui/src/components/navbar.tsx create mode 100644 ui/src/model/game.ts diff --git a/ui/src/components/loading.tsx b/ui/src/components/loading.tsx new file mode 100644 index 0000000..aa53191 --- /dev/null +++ b/ui/src/components/loading.tsx @@ -0,0 +1,11 @@ +import { Component } from 'solid-js'; + +export const Loading: Component = () => { + return ( +
+
+
+
+
+ ); +}; diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx new file mode 100644 index 0000000..8187d5f --- /dev/null +++ b/ui/src/components/navbar.tsx @@ -0,0 +1,18 @@ +import { Link } from './link'; +import { Component } from 'solid-js'; + +export const Navbar: Component = () => { + return ( +
+

Accuribet

+ +
+ ); +}; diff --git a/ui/src/model/game.ts b/ui/src/model/game.ts new file mode 100644 index 0000000..4faf998 --- /dev/null +++ b/ui/src/model/game.ts @@ -0,0 +1,48 @@ +export type DailyGames = DailyGame[] + +export interface DailyGame { + id: string + date: string + status: string + home_team: HomeTeam + away_team: AwayTeam + odds?: Odd[] +} + +export interface HomeTeam { + id: number + name: string + score: number + wins: number + losses: number + abbreviation: string + injuries: Injury[] +} + +export interface Injury { + player: string + team: string + position: string + injury: string + status: string +} + +export interface AwayTeam { + id: number + name: string + score: number + wins: number + losses: number + abbreviation: string + injuries: Injury[] +} + + + +export interface Odd { + book_name: string + home_money_line: number + away_money_line: number + over_under: number + num_bets: any +}