Skip to content

Commit 2c1d00f

Browse files
committed
basic faq layout, no accordion
1 parent 9c31b41 commit 2c1d00f

File tree

5 files changed

+130
-0
lines changed

5 files changed

+130
-0
lines changed

frontend/src/App.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import About from "@/app/About";
99
import Catalog from "@/app/Catalog";
1010
import Landing from "@/app/Landing";
1111
import Layout from "@/app/Layout";
12+
import FAQ from "@/app/FAQ";
1213

1314
const router = createBrowserRouter([
1415
{
@@ -52,6 +53,15 @@ const router = createBrowserRouter([
5253
},
5354
],
5455
},
56+
{
57+
element: <Layout footer={false} />,
58+
children: [
59+
{
60+
element: <FAQ />,
61+
path: "/faq",
62+
},
63+
],
64+
},
5565
]);
5666

5767
export default function App() {

frontend/src/app/FAQ/FAQ.module.scss

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
.root {
2+
display: flex;
3+
flex-direction: column;
4+
5+
.container {
6+
margin-top: 2rem;
7+
margin-left: auto;
8+
margin-right: auto;
9+
text-align: center;
10+
}
11+
12+
.text {
13+
width: 512px;
14+
flex-shrink: 0;
15+
margin-left: auto;
16+
margin-right: auto;
17+
18+
.link {
19+
display: flex;
20+
align-items: center;
21+
gap: 8px;
22+
color: var(--blue-500);
23+
font-size: 16px;
24+
font-weight: 500;
25+
line-height: 1;
26+
transition: all 100ms ease-in-out;
27+
28+
&:hover {
29+
color: var(--blue-600);
30+
}
31+
}
32+
33+
.heading {
34+
font-size: 32px;
35+
font-weight: 660;
36+
font-feature-settings:
37+
"cv05" on,
38+
"cv13" on,
39+
"ss07" on,
40+
"cv12" on,
41+
"cv06" on;
42+
line-height: 1.25;
43+
letter-spacing: -1%;
44+
margin-bottom: 16px;
45+
color: var(--slate-900);
46+
}
47+
48+
.description {
49+
font-size: 16px;
50+
line-height: 1.5;
51+
margin-bottom: 32px;
52+
color: var(--slate-500);
53+
}
54+
}
55+
56+
.footer {
57+
position: absolute;
58+
bottom: 0;
59+
width: 100%;
60+
}
61+
}

frontend/src/app/FAQ/index.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import Button from "@/components/Button";
2+
import Footer from "@/components/Footer";
3+
4+
import styles from "./FAQ.module.scss";
5+
6+
const FAQ = () => {
7+
return (
8+
<div className={styles.root}>
9+
<div className={styles.container}>
10+
<div className={styles.text}>
11+
<h1 className={styles.heading}>Frequently Asked Questions</h1>
12+
<h2 className={styles.description}>
13+
Answering your most commonly asked questions.
14+
</h2>
15+
<Button children={"Contact Us"} className={styles.container} />
16+
</div>
17+
</div>
18+
{/* ADD ACCORDION ITEMS */}
19+
<div className={styles.footer}>
20+
<Footer />
21+
</div>
22+
</div>
23+
);
24+
};
25+
26+
export default FAQ;

frontend/src/components/Accordion/Accordion.module.scss

Whitespace-only changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { ComponentPropsWithRef, ElementType, useState } from 'react';
2+
3+
import classNames from "classnames";
4+
5+
import styles from "./Accordion.module.scss";
6+
7+
// export default function Button<T extends ElementType = "button">({
8+
// active,
9+
// children,
10+
// className,
11+
// secondary,
12+
// as,
13+
// ...props
14+
// }: ButtonProps<T> & Omit<ComponentPropsWithRef<T>, keyof ButtonProps<T>>) {
15+
// const Component = as ?? "button";
16+
17+
// return (
18+
// <Component
19+
// className={classNames(
20+
// styles.root,
21+
// {
22+
// [styles.active]: active,
23+
// [styles.secondary]: secondary,
24+
// },
25+
// className
26+
// )}
27+
// {...props}
28+
// >
29+
// {children}
30+
// </Component>
31+
// );
32+
// }
33+

0 commit comments

Comments
 (0)