-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
483 additions
and
162 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { useState } from 'react'; | ||
import Image from 'next/legacy/image'; | ||
|
||
type FaqsProps = { | ||
question: string, | ||
response?: string, | ||
} | ||
|
||
// @TODO expand to see response functionality | ||
|
||
const Faqs = ({ question }: FaqsProps) => { | ||
const [isToggled, setIsToggled] = useState<boolean>(false); | ||
|
||
const onToggle = () => { | ||
if (isToggled) { | ||
setIsToggled(false); | ||
} else { | ||
setIsToggled(true); | ||
} | ||
}; | ||
|
||
return ( | ||
<div className="h-auto w-auto flex my-14 justify-between bg-navy-light text-left rounded-lg hover:outline"> | ||
<h4 className="p-6 ">{question}</h4> | ||
{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */} | ||
<button type="button" className="px-5" onClick={onToggle}> | ||
<Image className="cursor-pointer" src="/svg/button-plus.svg" height={30} width={30} /> | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Faqs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const frequentlyAsked = [ | ||
{ question: 'When Will the Project be Released?', response: 'When it is ready' }, | ||
{ question: 'What is the meaning of life?', response: 'Lorem Ipsum' }, | ||
{ question: 'What is the meaning of life?', response: 'Lorem Ipsum' }, | ||
{ question: 'What is the meaning of life?', response: 'Lorem Ipsum' }, | ||
{ question: 'What is the meaning of life?', response: 'Lorem Ipsum' }, | ||
{ question: 'What is the meaning of life?', response: 'Lorem Ipsum' }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
import { useRouter } from 'next/router'; | ||
import Section from '../../components/Utils/Section'; | ||
import Container from '../../components/Utils/Container'; | ||
import Button from '../../components/Button/Button'; | ||
import { useRouter } from "next/router"; | ||
|
||
const Installer = () => { | ||
const router = useRouter(); | ||
return ( | ||
<Section theme="dark"> | ||
<Container className="grid gap-y-20 lg:grid-cols-3"> | ||
<div className="flex items-center justify-center"> | ||
<div className="grid gap-y-5"> | ||
<h2>Custom-built Installer</h2> | ||
<p> | ||
Our custom-built, open-source installer is where we keep our projects for you to easily install. | ||
</p> | ||
<Button label="Download" theme="primary" onClick={() => router.push('/downloads')}/> | ||
<Section theme="dark"> | ||
<Container className="grid gap-y-20 lg:grid-cols-3"> | ||
<div className="flex items-center justify-center"> | ||
<div className="grid gap-y-5"> | ||
<h2>Custom-built Installer</h2> | ||
<p> | ||
Our custom-built, open-source installer is where we keep our projects for you to easily install. | ||
</p> | ||
<Button label="Download" theme="primary" onClick={() => router.push('/downloads')} /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{/* TODO: Change placeholder image */} | ||
<div className="-m-8 -mb-32 lg:col-span-2 lg:m-0 lg:grid lg:p-12"> | ||
<img alt="Installer" src="/pages/index/installerPreview.png" /> | ||
</div> | ||
</Container> | ||
</Section> | ||
)}; | ||
{/* TODO: Change placeholder image */} | ||
<div className="-m-8 -mb-32 lg:col-span-2 lg:m-0 lg:grid lg:p-12"> | ||
<img alt="Installer" src="/pages/index/installerPreview.png" /> | ||
</div> | ||
</Container> | ||
</Section> | ||
); | ||
}; | ||
|
||
export default Installer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { NextPage } from 'next'; | ||
import Image from 'next/legacy/image'; | ||
import Section from '../../components/Utils/Section'; | ||
import Container from '../../components/Utils/Container'; | ||
import Faqs from '../../components/Faqs/Faqs'; | ||
import { frequentlyAsked } from '../../constants/frequentlyAsked'; | ||
|
||
const BackgroundImage = () => ( | ||
<div className="absolute left-0 top-0 -z-10 h-144 w-screen opacity-90"> | ||
<Image src="/pages/faq/faq.png" layout="fill" objectFit="cover" /> | ||
</div> | ||
); | ||
|
||
const FAQ: NextPage = () => ( | ||
<> | ||
<Section className="h-144 flex flex-col justify-center bg-black/50 bg-gradient-to-b from-primary/30 to-secondary/100"> | ||
<BackgroundImage /> | ||
<Container className="h-144 flex flex-col justify-center align-middle text-center"> | ||
<div className=""> | ||
<h2 className="pb-8">Looking for some help?</h2> | ||
<p> | ||
We have you covered! Below we have a wide coverage of frequently asked questions, along with | ||
each of their answers | ||
</p> | ||
</div> | ||
</Container> | ||
</Section> | ||
<Section theme="dark"> | ||
<Container> | ||
{frequentlyAsked.map((faq, index) => ( | ||
<Faqs key={index} question={faq.question} /> | ||
))} | ||
</Container> | ||
</Section> | ||
</> | ||
); | ||
|
||
export default FAQ; |
Oops, something went wrong.