forked from coderwassananmol/BUB2
-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
84 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from "react"; | ||
|
||
const FaqsSection = ({ faqs_data }) => { | ||
return ( | ||
<div> | ||
<style jsx> | ||
{` | ||
.cdx-card-custom { | ||
margin-top: 20px; | ||
flex: 20%; | ||
margin-right: 20px; | ||
max-width: 400px; | ||
} | ||
.queue-section { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
`} | ||
</style> | ||
{faqs_data?.map((faq, index) => ( | ||
<span key={index} className="cdx-card cdx-card-custom"> | ||
<span className="cdx-card__text"> | ||
<span className="cdx-card__text__title">{faq?.que}</span> | ||
<span className="cdx-card__text__description">{faq?.ans}</span> | ||
</span> | ||
</span> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default FaqsSection; |
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,40 @@ | ||
import Header from "../components/Header"; | ||
import FaqsSection from "../components/FaqsSection"; | ||
import { faq_data } from "../utils/constants"; | ||
|
||
const Faqs = () => { | ||
return ( | ||
<div> | ||
<style jsx> | ||
{` | ||
.faq-container { | ||
color: #36c; | ||
flex-grow: 0; | ||
overflow: auto; | ||
height: 70vh; | ||
} | ||
.cdx-message { | ||
margin-top: 20px; | ||
flex-grow: 0.1; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
. | ||
`} | ||
</style> | ||
<Header page="faqs" /> | ||
<div> | ||
<div className="container p-0"> | ||
<div className="main-content"> | ||
<h4>Frequently ask questions</h4> | ||
<div className="faq-container"> | ||
<FaqsSection faqs_data={faq_data} /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Faqs; |