Skip to content

Commit 031ec71

Browse files
Merge pull request #45 from Rajesh-Nagarajan-11/faq-upgrade
Added FAQ for Certifications
2 parents 2bacfb5 + 4a12246 commit 031ec71

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

src/pages/index.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,18 @@ const App = () => {
267267
for details of when and how each badge is awarded.
268268
</p>
269269
<section className="faq">
270-
{/* <h1>Frequently Asked Questions</h1> */}
270+
<h2>General</h2>
271271
<Faq
272272
category={['Layer5 Badges']}
273-
display-category-title={'false'}
273+
display-category-title={'true'}
274+
/>
275+
</section>
276+
277+
<section className="faq">
278+
<h2>Certifications</h2>
279+
<Faq
280+
category={['certifications']}
281+
display-category-title={'true'}
274282
/>
275283
</section>
276284

@@ -328,6 +336,7 @@ const App = () => {
328336
{/* <p className="caption">Launch and learn with Meshery</p>
329337
<p className="byline">The cloud native playground contains a set of learning paths that incorporate an application networking centric curriculum featuring training on 200+ integrations.</p> */}
330338

339+
331340
<BadgePreview theme={theme}>
332341
<PreviewText theme={theme}>
333342
Your badge will appear in your GitHub profile, showcasing your milestones!

src/sitecomponents/App.style.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,12 @@ export const Main = styled.main`
341341
margin: 1rem;
342342
}
343343
.faq {
344-
text-align: center;
344+
text-align: left;
345345
margin: 0rem auto 0rem auto;
346+
347+
h2 {
348+
text-align: left;
349+
}
346350
}
347351
@media screen and (max-width: 1230px) {
348352
.display-badge {

src/sitecomponents/Faq/faqSection.style.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from "styled-components";
22

33
const FaqSectionWrapper = styled.section`
4-
margin: 2.5rem auto;
4+
margin: 1.75rem auto 2.5rem auto;
55
position: relative;
66
overflow: hidden;
77
@@ -14,11 +14,11 @@ const FaqSectionWrapper = styled.section`
1414
border-color: transparent;
1515
}
1616
.reusecore__accordion {
17-
margin-bottom: 5rem;
17+
margin-bottom: 1rem;
1818
}
1919
.accordion__item {
2020
.accordion__header {
21-
padding:0;
21+
padding:0.5px;
2222
background: #00b39f;
2323
h5 {
2424
font-weight: 700;

0 commit comments

Comments
 (0)