Skip to content

Commit d48f04b

Browse files
final fixes suggested by @mlodic
1 parent 149aa3f commit d48f04b

4 files changed

Lines changed: 39 additions & 24 deletions

File tree

components/Footer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Footer() {
3838
className="text-body-color font-semibold hover:text-primary mb-2 inline-block text-md leading-loose"
3939
>
4040
Matteo Lodi{" "}
41-
<span className="ml-5 font-small text-sm opacity-90 font-SpaceGrotesk">
41+
<span className="ml-12 font-small text-sm opacity-90 font-SpaceGrotesk">
4242
Author and Creator{" "}
4343
</span>
4444
</a>
@@ -49,7 +49,7 @@ export default function Footer() {
4949
className="text-body-color font-semibold hover:text-primary mb-2 inline-block text-md leading-loose"
5050
>
5151
Eshaan Bansal{" "}
52-
<span className="ml-5 font-small text-sm opacity-90 font-SpaceGrotesk">
52+
<span className="ml-7 font-small text-sm opacity-90 font-SpaceGrotesk">
5353
Principal Maintainer{" "}
5454
</span>
5555
</a>
@@ -60,7 +60,7 @@ export default function Footer() {
6060
className="text-body-color font-semibold hover:text-primary mb-2 inline-block text-md leading-loose"
6161
>
6262
Simone Berni{" "}
63-
<span className="ml-5 font-small text-sm opacity-90 font-SpaceGrotesk">
63+
<span className="ml-10 font-small text-sm opacity-90 font-SpaceGrotesk">
6464
Key Contributor and Backend Maintainer{" "}
6565
</span>
6666
</a>
@@ -71,7 +71,7 @@ export default function Footer() {
7171
className="text-body-color font-semibold hover:text-primary mb-2 inline-block text-md leading-loose"
7272
>
7373
Daniele Rosetti{" "}
74-
<span className="ml-5 font-small text-sm opacity-90 font-SpaceGrotesk">
74+
<span className="ml-6 font-small text-sm opacity-90 font-SpaceGrotesk">
7575
Key Contributor and Frontend Maintainer{" "}
7676
</span>
7777
</a>

components/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ export function Header(props: Headerprops) {
9999
<Link
100100
href="#feature-section"
101101
onClick={handleScroll}
102-
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible"
102+
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible ml-3"
103103
>
104104
Features
105105
</Link>
106106
<Link
107107
href="#testimonials-section"
108108
onClick={handleScroll}
109-
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible"
109+
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible ml-3"
110110
>
111111
Testimonials
112112
</Link>

components/sections/FAQSection.tsx

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1+
"use client"
2+
3+
import { useState } from "react";
14
import { FAQData } from "../../constants/faqdata";
25
export default function FAQSection() {
6+
const [isOpen, setIsOpen] = useState(new Array(FAQData.length).fill(false));
7+
8+
const toggleFAQ = (index: number) => {
9+
const updatedIsOpen = [...isOpen];
10+
updatedIsOpen[index] = !updatedIsOpen[index];
11+
setIsOpen(updatedIsOpen);
12+
};
13+
314
return (
415
<div className="w-5/6 md:w-full max-w-screen-xs lg:max-w-screen-md xl:max-w-screen-lg mt-5 space-y-5">
516
{FAQData.map((FAQ, index) => {
617
return (
7-
<button
8-
key={index}
9-
className="w-full border-b-2 border-gray-500 pb-6 text-left group focus:outline-none"
10-
>
11-
<div className="text-lg font-semibold text-white font-SpaceGrotesk opacity-90">
12-
Q: {FAQ.question}
13-
</div>
14-
<div className="mt-3 hidden text-white group-focus:flex font-SpaceGrotesk font-light opacity-70">
15-
<p>{FAQ.answer}</p>
16-
</div>
17-
</button>
18+
<div key={index} className="w-full border-b-2 border-gray-500 pb-6">
19+
<button
20+
className="text-lg font-semibold text-white font-SpaceGrotesk opacity-90 text-left"
21+
onClick={() => toggleFAQ(index)}
22+
>
23+
Q: {FAQ.question}
24+
</button>
25+
{isOpen[index] && (
26+
<div className="mt-3 text-white font-SpaceGrotesk font-light opacity-70">
27+
<p dangerouslySetInnerHTML={{ __html: FAQ.answer.replace(/<a/g, '<a style="color: #00ADEE;"'), }} />
28+
</div>
29+
)}
30+
</div>
1831
);
1932
})}
2033
</div>

constants/faqdata.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ export const FAQData = [
44
answer:'That is super fast and straightforward: follow the guide <a href="https://intelowl.readthedocs.io/en/latest/Installation.html" target="_blank">here</a>'
55
},
66
{
7-
question: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ",
8-
answer:"Lorem ipsum dolor sit a Lorem ipsum dolor sit a Lorem ipsum dolor sit aLorem ipsum dolor sit a Lorem ipsum dolor sit a"
7+
question: "I have several techinal doubts regarding that can't just be answered at Issues. Whom I should contact? ",
8+
answer:'Join our <a href="https://gsoc-slack.honeynet.org/" target="_blank" >Slack community</a> where all our Development goes on.'
99
},
1010
{
11-
question: "Lorem ipsum dolor sit a",
12-
answer:"Lorem ipsum dolor sit a Lorem ipsum dolor sit a Lorem ipsum dolor sit aLorem ipsum dolor sit a Lorem ipsum dolor sit a"
11+
question: "I don't want to use docker deployment. Are there any other ways, I could achieve this?",
12+
answer:' Yes! The <a href="https://github.com/intelowlproject/IntelOwl/discussions/108" target="_blank" >discussion</a> thread is open for this. Follow it for more Updates. We do have a proper tutorial to deploy IntelOwl on Google-Kubernetes-Engine <a href="https://mostwanted002.cf/post/intel-owl-gke/" target="_blank" >here</a>.'
1313
},
1414
{
15-
question: "Lorem ipsum dolor sit a psum dolor si",
16-
answer:"Lorem ipsum dolor sit a Lorem ipsum dolor sit a Lorem ipsum dolor sit aLorem ipsum dolor sit a Lorem ipsum dolor sit a"
15+
question: "I have found one API which can be included in IntelOwl. What next?",
16+
answer:'Great! Head over to <a href="https://github.com/intelowlproject/IntelOwl/issues" >GitHub Issues</a> and open a new one. Contribute to it if you wish, else just leave it there. Rest of things will be taken care of by us.'
1717
},
18-
]
18+
]
19+
20+

0 commit comments

Comments
 (0)