diff --git a/README.md b/README.md index 62620f3..e996c0b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,15 @@ An online campaign manager for [Star Wars: Imperial Assault](https://www.fantasyflightgames.com/en/products/star-wars-imperial-assault/) -




+![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white) +[![Remix](https://img.shields.io/badge/remix-%23000.svg?style=for-the-badge&logo=remix&logoColor=white)](https://remix.run) +[![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white)](https://vite.dev) +[![Prisma](https://img.shields.io/badge/Prisma-3982CE?style=for-the-badge&logo=Prisma&logoColor=white)](https://www.prisma.io) +[![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white)](https://tailwindcss.com) +[![DaisyUI](https://img.shields.io/badge/daisyui-5A0EF8?style=for-the-badge&logo=daisyui&logoColor=white)](https://daisyui.com) +[![Clerk](https://img.shields.io/badge/Clerk-6C47FF?style=for-the-badge&logo=clerk&logoColor=white)](https://clerk.com/) +[![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge&logo=vercel&logoColor=white)](https://vercel.com) +[![Cloudflare](https://img.shields.io/badge/Cloudflare-F38020?style=for-the-badge&logo=Cloudflare&logoColor=white)](https://cloudflare.com) --- diff --git a/TODO.md b/TODO.md index 43f9144..2cda641 100644 --- a/TODO.md +++ b/TODO.md @@ -1,20 +1,20 @@ # MVP -- [X] empire page - - [X] view only - - [X] manage owned agendas (discard and reshuffle) - - [X] arbitrary updates (agendas, villains, class cards, rewards, xp, name, influence) - - [X] BUG - fix styling for class card edit mode - - [X] BUG - fix styling for villains manager edit mode +- [x] empire page + - [x] view only + - [x] manage owned agendas (discard and reshuffle) + - [x] arbitrary updates (agendas, villains, class cards, rewards, xp, name, influence) + - [x] BUG - fix styling for class card edit mode + - [x] BUG - fix styling for villains manager edit mode - [ ] move save buttons to match rebels page -- [X] rebels page - - [X] view only - - [X] update player name and xp - - [X] update player class cards - - [X] update player rewards - - [X] update allies - - [X] update items and credits -- [X] Move drawing side missions to resolve mission page, with mission rewards +- [x] rebels page + - [x] view only + - [x] update player name and xp + - [x] update player class cards + - [x] update player rewards + - [x] update allies + - [x] update items and credits +- [x] Move drawing side missions to resolve mission page, with mission rewards - [ ] Edit side mission deck - [ ] Delete games - [ ] mobile view @@ -26,8 +26,11 @@ - [ ] imperial buy - [ ] empire - [ ] rebel -- [X] home page (maybe just replace with games page?) +- [x] home page (maybe just replace with games page?) - [ ] landing page (before login) +- [ ] Migrate from remix to react-router@7 +- [x] Clerk auth +- [ ] Default theme picker to "os" # Stretch diff --git a/app/components/AppNav/index.tsx b/app/components/AppNav/index.tsx index 1a469c8..4846724 100644 --- a/app/components/AppNav/index.tsx +++ b/app/components/AppNav/index.tsx @@ -1,58 +1,51 @@ -import { Link, NavLink } from '@remix-run/react' +import { + SignedIn, + SignedOut, + SignInButton, + UserButton, + useUser +} from '@clerk/remix' +import { NavLink } from '@remix-run/react' import ThemePicker from '~/components/ThemePicker' -import type { getUser } from '~/services/auth.server' -import { getAvatarUrls } from '~/utils/avatar' -type Props = { - user: Awaited> -} - -const AppNav = ({ user }: Props) => { - const urls = getAvatarUrls(user, 32) +const AppNav = ({ minimal = false }) => { + const { isSignedIn } = useUser() return ( -
+
- + Unquestable
-
-
    -
  • - Collection -
  • -
  • - - Games - -
  • -
-
-
- -
-
- -
    -
  • - Profile -
  • -
  • - Log Out -
  • -
-
+ + + + + + )}
) } diff --git a/app/components/Footer/index.tsx b/app/components/Footer/index.tsx index 1d8d963..e7d6be2 100644 --- a/app/components/Footer/index.tsx +++ b/app/components/Footer/index.tsx @@ -2,7 +2,7 @@ import { Link } from '@remix-run/react' const Footer = () => { return ( -