Skip to content

Commit

Permalink
Implemented FAQ Page and added link on HomePage
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-codegen[bot] authored Sep 7, 2023
1 parent 55dc790 commit 7f5ebba
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/FAQ/FAQ.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
export const FAQ = () => {
return (
<div>
<h1>FAQs</h1>
<h2>Question 1</h2>
<p>Answer to question 1</p>
<h2>Question 2</h2>
<p>Answer to question 2</p>
</div>
);
};
export default FAQ;
3 changes: 3 additions & 0 deletions src/pages/faq.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import FAQ from '../components/FAQ/FAQ';
const FAQPage = () => <FAQ />
export default FAQPage;
2 changes: 2 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const Home: NextPage = () => {
</Head>
<main className="h-full p-4">
<div className="text-2xl font-semibold">Test your Empathy!</div>
<Link href="/faq">Go to FAQ</Link>

Check failure on line 42 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Lint with ESLint and Prettier

'Link' is not defined
<Chat />

</main>
</>
);
Expand Down

0 comments on commit 7f5ebba

Please sign in to comment.