Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
patelnets committed Feb 19, 2024
1 parent 2ced56e commit 4dbd54a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 73 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
fmt-write:
npm run fmt
lint:
npm run lint
npm run lint
local:
npm run dev
build:
npm run build
37 changes: 1 addition & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!
8 changes: 3 additions & 5 deletions app/products/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ export default async function Home() {
const data = await getProducts();

return (
<div className={'p-2'}>
<div className={'flex flex-col gap-2'}>
<AddNewProductButton />
<Products products={data} />
</div>
<div className={'flex flex-col gap-2'}>
<AddNewProductButton />
<Products products={data} />
</div>
);
}
14 changes: 0 additions & 14 deletions components/icons/person.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions components/navbar/SignOut.tsx
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
3 changes: 0 additions & 3 deletions components/products/AddNewProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,14 @@ export const AddNewProductForm = () => {
};

return (
/* "handleSubmit" will validate your inputs before invoking "onSubmit" */
<form onSubmit={handleSubmit(onSubmit)}>
{/* register your input into the hook by invoking the "register" function */}
<Input
isRequired
label='Name'
className='max-w-xs'
{...register('name', { required: true })}
/>

{/* errors will return when field validation fails */}
{errors.name && <span>This field is required</span>}

<Controller
Expand Down
12 changes: 4 additions & 8 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,24 @@ module.exports = {
themes: {
light: {
colors: {
background: '#F4EAE0', // or DEFAULT
foreground: '#000000', // or 50 to 900 DEFAULT
background: '#F4EAE0',
foreground: '#000000',
primary: {
//... 50 to 900
foreground: '#D2A178',
DEFAULT: '#352B29',
},
danger: '#FFB6A0',
// ... rest of the colors
},
},
dark: {
colors: {
background: '#000000', // or DEFAULT
foreground: '#ECEDEE', // or 50 to 900 DEFAULT
background: '#000000',
foreground: '#ECEDEE',
primary: {
//... 50 to 900
foreground: '#FFFFFF',
DEFAULT: '#006FEE',
},
},
// ... rest of the colors
},
},
}),
Expand Down

0 comments on commit 4dbd54a

Please sign in to comment.