Skip to content

Commit

Permalink
Add team number
Browse files Browse the repository at this point in the history
  • Loading branch information
tytremblay committed Dec 17, 2024
1 parent 08f7b5c commit bc69550
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@headlessui/react": "^1.7.19",
"@heroicons/react": "^2.2.0",
"@monaco-editor/react": "^4.6.0",
"@radix-ui/react-aspect-ratio": "^1.1.1",
"@radix-ui/react-checkbox": "^1.1.3",
"@radix-ui/react-dialog": "^1.1.3",
"@radix-ui/react-select": "^2.1.3",
Expand Down
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { useQRScoutState } from '@/store/store';
import { Heart } from 'lucide-react';
import { Logo } from './Logo';

export function Footer() {
const teamNumber = useQRScoutState(state => state.formData.teamNumber);
return (
<footer>
<div className="mt-8 flex h-24 flex-col items-center justify-center p-2">
<Logo />
<div className="mt-8 flex flex-col items-center justify-center p-2 gap-2">
<div className="h-24 w-96">
<Logo />
</div>
<Heart className="text-primary size-8 fill-primary" />
<span className="text-2xl text-primary font-rhr-ns">{teamNumber}</span>
</div>
</footer>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/inputs/BaseInputProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ export const configSchema = z.object({
teamNumber: z
.number()
.describe('The team number of the team using this form.')
.default(2713),
sections: z.array(sectionSchema),

Check failure on line 193 in src/components/inputs/BaseInputProps.ts

View workflow job for this annotation

GitHub Actions / deploy

',' expected.
});

Expand Down
5 changes: 5 additions & 0 deletions src/components/ui/aspect-ratio.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"

const AspectRatio = AspectRatioPrimitive.Root

export { AspectRatio }

0 comments on commit bc69550

Please sign in to comment.