From c3f1fa126976ed1a7789f37affbb2a0236e8fa94 Mon Sep 17 00:00:00 2001 From: aryan Date: Thu, 15 Aug 2024 10:27:41 +0530 Subject: [PATCH] Adding docs route Signed-off-by: aryan --- components/Header.tsx | 4 ++-- components/sections/HeroSection.tsx | 4 ++-- constants/faqdata.ts | 2 +- src/app/docs/page.tsx | 16 ++++++++++++++++ src/app/page.tsx | 2 +- 5 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 src/app/docs/page.tsx diff --git a/components/Header.tsx b/components/Header.tsx index 907d51b..5832ebe 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -38,7 +38,7 @@ export function Header(props: Headerprops) { Features Docs @@ -104,7 +104,7 @@ export function Header(props: Headerprops) { Features Docs diff --git a/components/sections/HeroSection.tsx b/components/sections/HeroSection.tsx index 46cb9bf..aaffbdb 100644 --- a/components/sections/HeroSection.tsx +++ b/components/sections/HeroSection.tsx @@ -49,7 +49,7 @@ export default function HeroSection(props: HeroSectionProps) { single API request. get started ➔ @@ -97,7 +97,7 @@ export default function HeroSection(props: HeroSectionProps) { get started ➔ diff --git a/constants/faqdata.ts b/constants/faqdata.ts index 0cad750..6242047 100644 --- a/constants/faqdata.ts +++ b/constants/faqdata.ts @@ -2,7 +2,7 @@ export const FAQData = [ { question: "How can I install IntelOwl?", answer: - 'That is super fast and straightforward: follow the guide here', + 'That is super fast and straightforward: follow the guide here', }, { question: diff --git a/src/app/docs/page.tsx b/src/app/docs/page.tsx new file mode 100644 index 0000000..34a4381 --- /dev/null +++ b/src/app/docs/page.tsx @@ -0,0 +1,16 @@ +"use client"; + +import { useEffect, useState } from "react"; + +export default function DocsPage() { + const [isReloaded, setIsReloaded] = useState(false); + useEffect(() => { + if (!isReloaded) { + setIsReloaded(true); + window.location.reload(); + } + console.log("ji"); + }, []); + + return
Loading
; +} diff --git a/src/app/page.tsx b/src/app/page.tsx index b07d919..bcc4f0e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -64,7 +64,7 @@ export default function Home() {