-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/ui-revamp' of github.com:day-mon/sports-betting…
…-ai into feature/ui-revamp
- Loading branch information
Showing
10 changed files
with
328 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ComponentProps, JSX, useContext } from "solid-js"; | ||
import { | ||
AlertDialog, | ||
AlertDialogContent, | ||
AlertDialogDescription, | ||
AlertDialogTitle, | ||
AlertDialogTrigger | ||
} from "~/components/ui/alert-dialog"; | ||
import { Button } from "~/components/ui/button"; | ||
import { IThemeContext, ThemeContext } from "~/context/ThemeContext.tsx"; | ||
|
||
export interface DialogModalProps extends ComponentProps<"div"> { | ||
children?: JSX.Element; | ||
title?: string; | ||
trigger?: JSX.Element; | ||
} | ||
|
||
export function DialogModal(props: DialogModalProps) { | ||
const themeContext: IThemeContext = useContext(ThemeContext); | ||
|
||
return ( | ||
<AlertDialog> | ||
<AlertDialogTrigger>{props.trigger || <Button>Open Dialog</Button>}</AlertDialogTrigger> | ||
<AlertDialogContent | ||
class={`bg-primary dark:bg-blackout text-100 dark:text-white ${themeContext.theme}`} | ||
> | ||
<AlertDialogTitle | ||
class={`font-bold text-100 light:text-black underline underline-offset-2`} | ||
> | ||
{props.title} | ||
</AlertDialogTitle> | ||
<AlertDialogDescription>{props.children}</AlertDialogDescription> | ||
</AlertDialogContent> | ||
</AlertDialog> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { AiFillGithub } from "solid-icons/ai"; | ||
|
||
export function Footer() { | ||
return ( | ||
<> | ||
<footer class="flex flex-col gap-2 sm:flex-row py-6 w-full shrink-0 items-center px-4 md:px-6 bg-primary light:bg-primary text-100 light:text-black font-monserrat"> | ||
<p class="mt-2 sm:mt-auto text-xs text-100 light:text-black order-last sm:order-first"> | ||
© {new Date().getFullYear()} Accuribet. All rights reserved. | ||
</p> | ||
<nav class="sm:ml-auto flex flex-col items-center sm:items-end gap-4 sm:gap-6"> | ||
<a | ||
href="https://github.com/day-mon/sports-betting-ai" | ||
class="text-xs flex flex-row hover:underline underline-offset-4" | ||
target="_blank" | ||
> | ||
<AiFillGithub class="w-4 h-4 mx-2" /> | ||
Github | ||
</a> | ||
<p class="text-xs"> | ||
Some assets from{" "} | ||
<a href="https://solid-icons.vercel.app/" class="hover:underline" target="_blank"> | ||
Solid Icons | ||
</a>{" "} | ||
and{" "} | ||
<a href="https://www.solid-ui.com/" class="hover:underline" target="_blank"> | ||
Solid-UI | ||
</a> | ||
. | ||
</p> | ||
</nav> | ||
</footer> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.