From f43c94eda6ac7fb6d0c4af782c32976cb5135cad Mon Sep 17 00:00:00 2001 From: Gopal Kaul Date: Tue, 21 Feb 2023 20:25:27 +0530 Subject: [PATCH 1/4] Add FAQ Component and add appropriate question and answers --- src/pages/index.astro | 103 ++++++++++++++++++++++-------------------- 1 file changed, 54 insertions(+), 49 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 1d10990..edcf16e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -40,8 +40,13 @@ const meta = { @@ -129,8 +134,8 @@ const meta = { }} /> --> - - + - + /> @@ -251,31 +256,31 @@ const meta = {
- - - PikaOS Download - + + PikaOS Download - - Grab our latest PikaOS ISO now!

-
-
-
+ + Grab our latest PikaOS ISO now!

+
+ + From 2874c682dab735897e98c64e9fe921c06be4eaef Mon Sep 17 00:00:00 2001 From: Gopal Kaul Date: Tue, 21 Feb 2023 20:30:00 +0530 Subject: [PATCH 2/4] Add ID to make scroll work --- src/components/widgets/FAQs.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/FAQs.astro b/src/components/widgets/FAQs.astro index caf3b8b..e752cd2 100644 --- a/src/components/widgets/FAQs.astro +++ b/src/components/widgets/FAQs.astro @@ -21,7 +21,7 @@ const { } = Astro.props; --- -
+
{ (title || subtitle || highlight) && ( From 04980fc4d50d7dd45b7aad625f0ae75c768bf000 Mon Sep 17 00:00:00 2001 From: Gopal Kaul Date: Tue, 21 Feb 2023 20:30:33 +0530 Subject: [PATCH 3/4] Add scroll margin top --- src/components/widgets/FAQs.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/FAQs.astro b/src/components/widgets/FAQs.astro index e752cd2..719607c 100644 --- a/src/components/widgets/FAQs.astro +++ b/src/components/widgets/FAQs.astro @@ -21,7 +21,7 @@ const { } = Astro.props; --- -
+
{ (title || subtitle || highlight) && ( From 67370c27f0f43414a9876e09adcb7dc991e41791 Mon Sep 17 00:00:00 2001 From: Gopal Kaul Date: Tue, 21 Feb 2023 20:32:52 +0530 Subject: [PATCH 4/4] Add FAQs to the Header --- src/components/widgets/Header.astro | 59 ++++++++++++++++++----------- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/src/components/widgets/Header.astro b/src/components/widgets/Header.astro index 5e88e7e..cd5d1a9 100644 --- a/src/components/widgets/Header.astro +++ b/src/components/widgets/Header.astro @@ -1,29 +1,38 @@ --- -import { Icon } from 'astro-icon'; -import Logo from '~/components/common/Logo.astro'; -import ToggleTheme from '~/components/common/ToggleTheme.astro'; -import ToggleMenu from '~/components/common/ToggleMenu.astro'; +import { Icon } from "astro-icon"; +import Logo from "~/components/common/Logo.astro"; +import ToggleTheme from "~/components/common/ToggleTheme.astro"; +import ToggleMenu from "~/components/common/ToggleMenu.astro"; -import { getHomePermalink} from '~/utils/permalinks'; +import { getHomePermalink } from "~/utils/permalinks"; const links = [ - { - text: 'Features', - href: '#features', - }, - { - text: 'Download', - href: '#download', - }, - // { - // text: 'About us', - // href: '#about', - // }, + { + text: "Features", + href: "#features", + }, + { + text: "FAQs", + href: "#faqs", + }, + { + text: "Download", + href: "#download", + }, + // { + // text: 'About us', + // href: '#about', + // }, ]; --- -