From 872deaa6547425748b167c7c024d0de224d75688 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Mon, 7 Oct 2024 22:26:56 +0700 Subject: [PATCH] Refactor component and page structure for responsiveness and add remote image patterns --- next.config.mjs | 17 ++++++++++++++--- src/app/business/apply/page.tsx | 7 +++++++ src/app/page.tsx | 4 ++++ src/components/navigationBar/nav.tsx | 6 +++--- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 src/app/business/apply/page.tsx diff --git a/next.config.mjs b/next.config.mjs index 4678774..6922688 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,15 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; - -export default nextConfig; +const nextConfig = { + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: 'upload.wikimedia.org', + pathname: '/wikipedia/**', + }, + ], + }, + }; + + export default nextConfig; + \ No newline at end of file diff --git a/src/app/business/apply/page.tsx b/src/app/business/apply/page.tsx new file mode 100644 index 0000000..0ba4cb5 --- /dev/null +++ b/src/app/business/apply/page.tsx @@ -0,0 +1,7 @@ +"use client" + +export default function ApplyPage(){ + return ( +
+ ); +} diff --git a/src/app/page.tsx b/src/app/page.tsx index d0faf93..d095188 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -92,6 +92,7 @@ export default function Home() { minInvestment={10000} totalInvestor={58400} totalRaised={9000000} + imageUri={"https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Google_%22G%22_logo.svg/768px-Google_%22G%22_logo.svg.png"} />
diff --git a/src/components/navigationBar/nav.tsx b/src/components/navigationBar/nav.tsx index 92f83d1..229532b 100644 --- a/src/components/navigationBar/nav.tsx +++ b/src/components/navigationBar/nav.tsx @@ -146,9 +146,9 @@ export function NavigationBar() { const businessComponents = [ { - title: "Businesses", - href: "/landing", - description: "Raise on B2DVentures", + title: "Business", + href: "/business/apply", + description: "Apply to raise on on B2DVentures", }, ];