From 041f712264790fb0c5ab5a83cdbeb09ec74e5d3d Mon Sep 17 00:00:00 2001 From: emmanuel Date: Thu, 4 Jul 2024 21:45:54 +0100 Subject: [PATCH] worked on the button and links --- app/api/route.ts | 13 ---- app/auth/login/page.tsx | 4 ++ app/auth/register/page.tsx | 3 + app/dashboard/billings/page.tsx | 4 ++ app/dashboard/help/page.tsx | 4 ++ app/dashboard/invoices/page.tsx | 4 ++ app/dashboard/loading.tsx | 10 --- app/dashboard/page.tsx | 3 + app/dashboard/settings/page.tsx | 3 + app/layout.tsx | 5 +- app/page.tsx | 3 + components/Shared/Button.tsx | 9 ++- components/Shared/PricingCard.tsx | 4 +- components/Shared/SideBar.tsx | 1 + .../page/AdminDashboard/billings/index.tsx | 4 -- components/page/Authentication/Login.tsx | 12 ++-- components/page/Authentication/Register.tsx | 4 +- components/page/LandingPage/Hero.tsx | 2 +- tailwind.config.js | 72 +++++++++---------- 19 files changed, 89 insertions(+), 75 deletions(-) delete mode 100644 app/api/route.ts diff --git a/app/api/route.ts b/app/api/route.ts deleted file mode 100644 index f8bcc7e..0000000 --- a/app/api/route.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction -import type { NextApiRequest, NextApiResponse } from 'next' - -type Data = { - name: string -} - -export default function handler( - req: NextApiRequest, - res: NextApiResponse -) { - res.status(200).json({ name: 'John Doe' }) -} diff --git a/app/auth/login/page.tsx b/app/auth/login/page.tsx index 10a8537..b12c1f7 100644 --- a/app/auth/login/page.tsx +++ b/app/auth/login/page.tsx @@ -1,5 +1,9 @@ import SignIn from '@/components/page/Authentication/Login'; +export const metadata = { + title: 'Login', +}; + const index = () => { return ; }; diff --git a/app/auth/register/page.tsx b/app/auth/register/page.tsx index 1713d42..557d391 100644 --- a/app/auth/register/page.tsx +++ b/app/auth/register/page.tsx @@ -1,6 +1,9 @@ import SignUp from '@/components/page/Authentication/Register'; import React from 'react'; +export const metadata = { + title: 'Register', +}; const register = () => { return ; }; diff --git a/app/dashboard/billings/page.tsx b/app/dashboard/billings/page.tsx index 389bd28..453e7c3 100644 --- a/app/dashboard/billings/page.tsx +++ b/app/dashboard/billings/page.tsx @@ -2,6 +2,10 @@ import React from 'react'; import Layout from '@/components/Shared/DashboardLayout'; import Billing from '@/components/page/AdminDashboard/billings'; +export const metadata = { + title: 'Billing', +}; + const Billings = () => { return ; }; diff --git a/app/dashboard/help/page.tsx b/app/dashboard/help/page.tsx index 7da8b91..5541aaa 100644 --- a/app/dashboard/help/page.tsx +++ b/app/dashboard/help/page.tsx @@ -1,6 +1,10 @@ import ContactSupport from '@/components/page/AdminDashboard/help'; import React from 'react'; +export const metadata = { + title: 'Help', +}; + const Help = () => { return ; }; diff --git a/app/dashboard/invoices/page.tsx b/app/dashboard/invoices/page.tsx index 853838a..f52058b 100644 --- a/app/dashboard/invoices/page.tsx +++ b/app/dashboard/invoices/page.tsx @@ -2,6 +2,10 @@ import Layout from '@/components/Shared/DashboardLayout'; import Invoice from '@/components/page/AdminDashboard/invoices'; import React from 'react'; +export const metadata = { + title: 'Invoices', +}; + const Invoices = () => { return ; }; diff --git a/app/dashboard/loading.tsx b/app/dashboard/loading.tsx index 4ebe6cb..6112260 100644 --- a/app/dashboard/loading.tsx +++ b/app/dashboard/loading.tsx @@ -1,15 +1,5 @@ export default function Loading() { return ( - //
- //
- // - // - //
- - //
- // - //
- //

Loading...

diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index fd24210..4b80345 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -1,6 +1,9 @@ import React from 'react'; import Home from '@/components/page/AdminDashboard/dashboard'; +export const metadata = { + title: 'Profile', +}; const index = () => { return ; }; diff --git a/app/dashboard/settings/page.tsx b/app/dashboard/settings/page.tsx index 46894a0..a65a6ad 100644 --- a/app/dashboard/settings/page.tsx +++ b/app/dashboard/settings/page.tsx @@ -1,6 +1,9 @@ import React from 'react'; import Setting from '@/components/page/AdminDashboard/settings'; +export const metadata = { + title: 'Settings', +}; const Settings = () => { return ; }; diff --git a/app/layout.tsx b/app/layout.tsx index 33a9868..8c2b4fc 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -9,7 +9,10 @@ const font = Averta({ }); export const metadata: Metadata = { - title: 'Nucleus - Home', + title: { + template: 'Nucleus - %s', + default: 'Home', + }, description: 'Nucleus is all in one app for your public api', }; diff --git a/app/page.tsx b/app/page.tsx index 3e47b31..bc3df31 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,6 +1,9 @@ import React from 'react'; import Landingpage from '@/components/page/LandingPage'; +export const metadata = { + title: 'Home', +}; const Index = () => { return ; }; diff --git a/components/Shared/Button.tsx b/components/Shared/Button.tsx index 8c28946..a5fda15 100644 --- a/components/Shared/Button.tsx +++ b/components/Shared/Button.tsx @@ -20,9 +20,14 @@ const Button = ({ return ( diff --git a/components/Shared/PricingCard.tsx b/components/Shared/PricingCard.tsx index 3f8d45d..a74f03e 100644 --- a/components/Shared/PricingCard.tsx +++ b/components/Shared/PricingCard.tsx @@ -19,7 +19,7 @@ const PricingCard = (props: Props) => {
-

{desc}

@@ -50,7 +50,7 @@ const PricingCard = (props: Props) => {
+
@@ -85,19 +87,19 @@ const SignIn = () => {
+
diff --git a/components/page/LandingPage/Hero.tsx b/components/page/LandingPage/Hero.tsx index d031a67..156855e 100644 --- a/components/page/LandingPage/Hero.tsx +++ b/components/page/LandingPage/Hero.tsx @@ -53,7 +53,7 @@ const Hero = () => { > Get started 🚀 -
diff --git a/tailwind.config.js b/tailwind.config.js index 7cb7e37..fe12db5 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,77 +1,77 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - darkMode: ["class"], + darkMode: ['class'], content: [ './pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}', './app/**/*.{ts,tsx}', './src/**/*.{ts,tsx}', ], - prefix: "", + prefix: '', theme: { container: { center: true, - padding: "2rem", + padding: '2rem', screens: { - "2xl": "1400px", + '2xl': '1400px', }, }, extend: { colors: { - border: "hsl(var(--border))", - input: "hsl(var(--input))", - ring: "hsl(var(--ring))", - background: "hsl(var(--background))", - foreground: "hsl(var(--foreground))", + border: 'hsl(var(--border))', + input: 'hsl(var(--input))', + ring: 'hsl(var(--ring))', + background: 'hsl(var(--background))', + foreground: 'hsl(var(--foreground))', primary: { - DEFAULT: "hsl(var(--primary))", - foreground: "hsl(var(--primary-foreground))", + DEFAULT: 'hsl(var(--primary))', + foreground: 'hsl(var(--primary-foreground))', }, secondary: { - DEFAULT: "hsl(var(--secondary))", - foreground: "hsl(var(--secondary-foreground))", + DEFAULT: 'hsl(var(--secondary))', + foreground: 'hsl(var(--secondary-foreground))', }, destructive: { - DEFAULT: "hsl(var(--destructive))", - foreground: "hsl(var(--destructive-foreground))", + DEFAULT: 'hsl(var(--destructive))', + foreground: 'hsl(var(--destructive-foreground))', }, muted: { - DEFAULT: "hsl(var(--muted))", - foreground: "hsl(var(--muted-foreground))", + DEFAULT: 'hsl(var(--muted))', + foreground: 'hsl(var(--muted-foreground))', }, accent: { - DEFAULT: "hsl(var(--accent))", - foreground: "hsl(var(--accent-foreground))", + DEFAULT: 'hsl(var(--accent))', + foreground: 'hsl(var(--accent-foreground))', }, popover: { - DEFAULT: "hsl(var(--popover))", - foreground: "hsl(var(--popover-foreground))", + DEFAULT: 'hsl(var(--popover))', + foreground: 'hsl(var(--popover-foreground))', }, card: { - DEFAULT: "hsl(var(--card))", - foreground: "hsl(var(--card-foreground))", + DEFAULT: 'hsl(var(--card))', + foreground: 'hsl(var(--card-foreground))', }, }, borderRadius: { - lg: "var(--radius)", - md: "calc(var(--radius) - 2px)", - sm: "calc(var(--radius) - 4px)", + lg: 'var(--radius)', + md: 'calc(var(--radius) - 2px)', + sm: 'calc(var(--radius) - 4px)', }, keyframes: { - "accordion-down": { - from: { height: "0" }, - to: { height: "var(--radix-accordion-content-height)" }, + 'accordion-down': { + from: { height: '0' }, + to: { height: 'var(--radix-accordion-content-height)' }, }, - "accordion-up": { - from: { height: "var(--radix-accordion-content-height)" }, - to: { height: "0" }, + 'accordion-up': { + from: { height: 'var(--radix-accordion-content-height)' }, + to: { height: '0' }, }, }, animation: { - "accordion-down": "accordion-down 0.2s ease-out", - "accordion-up": "accordion-up 0.2s ease-out", + 'accordion-down': 'accordion-down 0.2s ease-out', + 'accordion-up': 'accordion-up 0.2s ease-out', }, }, }, - plugins: [require("tailwindcss-animate")], -} \ No newline at end of file + plugins: [require('tailwindcss-animate')], +};