more fixes

This commit is contained in:
2024-11-26 00:14:49 -05:00
parent 37393d6909
commit 1c69dd77a1
12 changed files with 12 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
"use client"; "use client";
import { FC, useState } from "react"; import { FC, useState } from "react";
import { brandType } from "../../types/brandType"; import { brandType } from "src/types/brandType";
import Brand from "./brand"; import Brand from "./brand";
import AddBrand from "./addBrand"; import AddBrand from "./addBrand";
import { addBrand, deleteBrand, editBrand } from "../../actions/brandActions"; import { addBrand, deleteBrand, editBrand } from "../../actions/brandActions";

View File

@@ -1,6 +1,6 @@
"use client"; "use client";
import { ChangeEvent, FC, useState } from "react"; import { ChangeEvent, FC, useState } from "react";
import { brandType } from "../../types/brandType"; import { brandType } from "src/types/brandType";
interface Props { interface Props {
brand: brandType; brand: brandType;
changeBrandName: (id: number, name: string) => void; changeBrandName: (id: number, name: string) => void;

View File

@@ -1,5 +1,3 @@
import Link from "next/link";
export default function FeaturesSection() { export default function FeaturesSection() {
return ( return (

View File

@@ -1,5 +1,4 @@
import { Box, Flex, Link, Heading } from "@chakra-ui/react"; import { Box, Flex, Link, Heading } from "@chakra-ui/react";
import NextLink from "next/link";
const Header: React.FC = () => { const Header: React.FC = () => {
return ( return (

View File

@@ -1,4 +1,3 @@
import Link from "next/link";
import Header from "../Header"; import Header from "../Header";
import Hero from "../Hero"; import Hero from "../Hero";
import FeaturesSection from "../FeaturesSection"; import FeaturesSection from "../FeaturesSection";

View File

@@ -8,6 +8,7 @@ import {
MenuItems, MenuItems,
} from "@headlessui/react"; } from "@headlessui/react";
import { Bars3Icon, BellIcon, XMarkIcon } from "@heroicons/react/24/outline"; import { Bars3Icon, BellIcon, XMarkIcon } from "@heroicons/react/24/outline";
import Image from "next/image";
const navigation = [ const navigation = [
{ name: "Home", href: "/", current: true }, { name: "Home", href: "/", current: true },
@@ -17,7 +18,7 @@ const navigation = [
{ name: "Brands", href: "/Brands", current: false }, { name: "Brands", href: "/Brands", current: false },
]; ];
function classNames(...classes) { function classNames(...classes: unknown[]) {
return classes.filter(Boolean).join(" "); return classes.filter(Boolean).join(" ");
} }
@@ -43,7 +44,7 @@ export default function Example() {
</div> </div>
<div className="flex flex-1 items-center justify-center sm:items-stretch sm:justify-start"> <div className="flex flex-1 items-center justify-center sm:items-stretch sm:justify-start">
<div className="flex shrink-0 items-center"> <div className="flex shrink-0 items-center">
<img <Image
alt="Ballistic Builder" alt="Ballistic Builder"
src="https://tailwindui.com/plus/img/logos/mark.svg?color=indigo&shade=500" src="https://tailwindui.com/plus/img/logos/mark.svg?color=indigo&shade=500"
className="h-8 w-auto" className="h-8 w-auto"
@@ -85,7 +86,7 @@ export default function Example() {
<MenuButton className="relative flex rounded-full bg-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800"> <MenuButton className="relative flex rounded-full bg-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800">
<span className="absolute -inset-1.5" /> <span className="absolute -inset-1.5" />
<span className="sr-only">Open user menu</span> <span className="sr-only">Open user menu</span>
<img <Image
alt="" alt=""
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
className="size-8 rounded-full" className="size-8 rounded-full"

View File

@@ -1,6 +1,4 @@
import Link from "next/link"; import { Button } from "src/components/ui/button"
import { Button } from "@/components/ui/button"
export default function About() { export default function About() {
@@ -15,7 +13,8 @@ export default function About() {
and exploring firearm parts. Designed for enthusiasts by and exploring firearm parts. Designed for enthusiasts by
enthusiasts, we make firearm building easy and accessible. enthusiasts, we make firearm building easy and accessible.
</p> </p>
<Button className="bg-gray-950 text-grey-100 hover:translate-y-[-2px] transition duration-300">Click me test</Button> <Button className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Click me test</Button>
{/* <Button className="bg-gray-950 text-grey-100 hover:translate-y-[-2px] transition duration-300">Click me test</Button> */}
</div> </div>
</section> </section>
) )

View File

@@ -1,5 +1,3 @@
import Link from "next/link";
export default function Footer() { export default function Footer() {
return ( return (

View File

@@ -2,7 +2,7 @@ import * as React from "react"
import { Slot } from "@radix-ui/react-slot" import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority" import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils" import { cn } from "@lib/utils"
const buttonVariants = cva( const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",

View File

@@ -1,8 +1,6 @@
import 'dotenv/config'; import 'dotenv/config';
import { drizzle } from 'drizzle-orm/node-postgres'; import { drizzle } from 'drizzle-orm/node-postgres';
import { Pool } from 'pg'; import { Pool } from 'pg';
import { sql } from 'drizzle-orm';
// db/index.ts // db/index.ts

View File

@@ -1,5 +0,0 @@
import { PrismaClient } from '@prisma/client'
let prisma = new PrismaClient()
export default prisma

View File

@@ -30,6 +30,7 @@
"/src/types/*"], "/src/types/*"],
"@components/*": [ "@components/*": [
"/src/components/*", "/src/components/*",
"/src/components/ui/*",
"/src/components/Brands/*" "/src/components/Brands/*"
], ],
"@actions/*": [ "@actions/*": [
@@ -42,6 +43,7 @@
"/src/app/Fragments/*" "/src/app/Fragments/*"
], ],
"@lib/*": [ "@lib/*": [
"@lib/*",
"/src/lib/*" "/src/lib/*"
], ],
"scss/*": [ "scss/*": [