This commit is contained in:
2024-12-11 23:26:14 -05:00
parent 972ec4f026
commit 1691c60d96
11 changed files with 39316 additions and 19 deletions

View File

@@ -5,7 +5,7 @@
"tsx": true, "tsx": true,
"tailwind": { "tailwind": {
"config": "tailwind.config.ts", "config": "tailwind.config.ts",
"css": "src/styles/globals.css", "css": "@styles/globals.css",
"baseColor": "slate", "baseColor": "slate",
"cssVariables": true, "cssVariables": true,
"prefix": "" "prefix": ""
@@ -13,7 +13,7 @@
"aliases": { "aliases": {
"components": "@/components", "components": "@/components",
"utils": "@/lib/utils", "utils": "@/lib/utils",
"ui": "@/components/ui", "ui": "@components/ui",
"lib": "@/lib", "lib": "@/lib",
"hooks": "@/hooks" "hooks": "@/hooks"
}, },

File diff suppressed because one or more lines are too long

9
package-lock.json generated
View File

@@ -25,7 +25,7 @@
"@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-slot": "^1.1.0",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dotenv": "^16.4.5", "dotenv": "^16.4.7",
"drizzle-orm": "^0.36.4", "drizzle-orm": "^0.36.4",
"fontsource-roboto": "^4.0.0", "fontsource-roboto": "^4.0.0",
"framer-motion": "^11.11.17", "framer-motion": "^11.11.17",
@@ -5325,9 +5325,10 @@
} }
}, },
"node_modules/dotenv": { "node_modules/dotenv": {
"version": "16.4.5", "version": "16.4.7",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
"license": "BSD-2-Clause",
"engines": { "engines": {
"node": ">=12" "node": ">=12"
}, },

View File

@@ -26,7 +26,7 @@
"@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-slot": "^1.1.0",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dotenv": "^16.4.5", "dotenv": "^16.4.7",
"drizzle-orm": "^0.36.4", "drizzle-orm": "^0.36.4",
"fontsource-roboto": "^4.0.0", "fontsource-roboto": "^4.0.0",
"framer-motion": "^11.11.17", "framer-motion": "^11.11.17",

View File

@@ -1,6 +1,6 @@
export const metadata = { export const metadata = {
title: 'Next.js', title: 'Ballistic Bu8ilder',
description: 'Generated by Next.js', description: 'Generated by Forward Group, LLC',
} }
export default function RootLayout({ export default function RootLayout({

View File

@@ -1,6 +1,6 @@
export const metadata = { export const metadata = {
title: 'Next.js', title: 'Ballistic Builder',
description: 'Generated by Next.js', description: 'Generated by Forward Group, LLC',
} }
export default function RootLayout({ export default function RootLayout({

View File

@@ -1,17 +1,18 @@
import { Button } from "@components/ui/button"; import { Button } from "@components/ui/button";
import { getPSA } from "@/db/queries/PSA"; import { getPSA } from "@/db/queries/PSA";
import { psa } from '@/db/schema/Psa';
import styles from '../styles.module.css'
export default async function LowerReceiverPage() { export default async function LowerReceiverPage() {
const psa = await getPSA(); const psa = await getPSA();
return ( return (
<div className="container mx-auto"> <div className="container mx-auto">
<table className="table-auto border-separate border-spacing-2 border border-slate-500"> <table className={"table-auto border-separate border-spacing-4 border border-slate-500"}>
<thead> <thead>
<tr> <tr className={styles.tr}>
<th>Component</th> <th>Component</th>
<th>Manufacturer</th> <th>Manufacturer</th>
<th>Color</th> <th>Model #</th>
<th>Price</th> <th>Price</th>
</tr> </tr>
</thead> </thead>
@@ -21,8 +22,8 @@ export default async function LowerReceiverPage() {
<td> <td>
{psa.category} {psa.category}
</td> </td>
<td>manufacturer</td> <td>{psa.brandName}</td>
<td>color</td> <td>{psa.modelnumber}</td>
<td className="flex items-center gap-2"> <td className="flex items-center gap-2">
${Number(psa.salePrice).toFixed(2)} ${Number(psa.salePrice).toFixed(2)}
<Button variant="outline">Buy</Button> <Button variant="outline">Buy</Button>

View File

@@ -0,0 +1,9 @@
.table {
border-collapse: collapse;
}
.tr {
text-align: left;
font-weight: bold;
background-color: cadetblue;
}

View File

@@ -1,5 +1,5 @@
// pages/register.js // pages/register.js
import UserRegistration from '../components/UserRegistration'; import UserRegistration from '@components/UserRegistration';
export default function Register() { export default function Register() {
return ( return (

View File

@@ -46,6 +46,9 @@
"@lib/*", "@lib/*",
"./src/lib/*" "./src/lib/*"
], ],
"@styles/*": [
"./src/styles/*"
],
"scss/*": [ "scss/*": [
"./src/scss/*" "./src/scss/*"
], ],