diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index acd3b44..384a8dc 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -10,10 +10,6 @@ jobs: check: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - uses: actions/checkout@v3 - name: Set up Node uses: actions/setup-node@v3 diff --git a/Makefile b/Makefile index 4a476b3..2e1e910 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ fmt-write: npm run fmt lint: - npm run lint \ No newline at end of file + npm run lint +local: + npm run dev +build: + npm run build diff --git a/README.md b/README.md index c403366..f028fd4 100644 --- a/README.md +++ b/README.md @@ -1,36 +1 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +Frontend NextJS project for Froodom! \ No newline at end of file diff --git a/app/products/page.tsx b/app/products/page.tsx index 21776e6..6058321 100644 --- a/app/products/page.tsx +++ b/app/products/page.tsx @@ -6,11 +6,9 @@ export default async function Home() { const data = await getProducts(); return ( -
-
- - -
+
+ +
); } diff --git a/components/icons/person.tsx b/components/icons/person.tsx deleted file mode 100644 index ff7dd18..0000000 --- a/components/icons/person.tsx +++ /dev/null @@ -1,14 +0,0 @@ - - -; diff --git a/components/navbar/SignOut.tsx b/components/navbar/SignOut.tsx index 5a482fd..1fe7795 100644 --- a/components/navbar/SignOut.tsx +++ b/components/navbar/SignOut.tsx @@ -1,9 +1,8 @@ 'use client'; -import { NavbarItem, Button, Link } from '@nextui-org/react'; +import { Link } from '@nextui-org/react'; import { signOut, useSession } from 'next-auth/react'; import { NavbarMenuItem } from '@nextui-org/navbar'; -import React from 'react'; export const SignOut = () => { const { data: session } = useSession(); diff --git a/components/products/AddNewProductForm.tsx b/components/products/AddNewProductForm.tsx index 67d6317..39ecf8a 100644 --- a/components/products/AddNewProductForm.tsx +++ b/components/products/AddNewProductForm.tsx @@ -92,9 +92,7 @@ export const AddNewProductForm = () => { }; return ( - /* "handleSubmit" will validate your inputs before invoking "onSubmit" */
- {/* register your input into the hook by invoking the "register" function */} { {...register('name', { required: true })} /> - {/* errors will return when field validation fails */} {errors.name && This field is required}