Skip to content

Commit

Permalink
fixed src file
Browse files Browse the repository at this point in the history
  • Loading branch information
day-mon committed Jan 19, 2024
1 parent ecca894 commit 09fff8f
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ui/src/components/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Component } from 'solid-js';

export const Loading: Component = () => {
return (
<div class="flex items-center justify-center h-screen">
<div class="flex flex-col items-center space-y-4">
<div class="animate-spin h-20 w-20 rounded-full border-t-2 border-gray-400"></div>
</div>
</div>
);
};
18 changes: 18 additions & 0 deletions ui/src/components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Link } from './link';
import { Component } from 'solid-js';

export const Navbar: Component = () => {
return (
<header class="flex items-center justify-between px-6 py-4 bg-gray-900 text-white">
<h1 class="text-2xl font-bold">Accuribet</h1>
<nav class="space-x-4">
<Link class="hover:underline" href="/">
Home
</Link>
<Link class="hover:underline" href="/games">
Games
</Link>
</nav>
</header>
);
};
48 changes: 48 additions & 0 deletions ui/src/model/game.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 09fff8f

Please sign in to comment.