Page MenuHomeDevCentral

D3148.id8033.diff
No OneTemporary

D3148.id8033.diff

diff --git a/src/assets/scss/components/_typography.scss b/src/assets/scss/components/_typography.scss
--- a/src/assets/scss/components/_typography.scss
+++ b/src/assets/scss/components/_typography.scss
@@ -11,3 +11,11 @@
color: $primary-color;
}
}
+
+/* -------------------------------------------------------------
+ Small widgets
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
+
+.round {
+ border-radius: 50%;
+}
diff --git a/src/data/faq.yml b/src/data/faq.yml
--- a/src/data/faq.yml
+++ b/src/data/faq.yml
@@ -1,5 +1,5 @@
faq_entries:
- contributors:
+ contributors: &faq_contributors
- question: How can I start contributing code to Nasqueron projects?
slug: start
answer: |
@@ -80,7 +80,7 @@
for support. Use IRC, Monday office hours or ask on DevCentral.
We're available to help newcomers and provide guidance.
- mentoring:
+ mentoring: &faq_mentoring
- question: What is the mentoring vision at Nasqueron?
slug: mentoring-vision
answer: |
@@ -104,7 +104,7 @@
guidance, and support as you navigate real-world projects, allowing you to
gain hands-on experience and enhance your technical and soft skills.
- internship:
+ internship: &faq_internship
- question: What are the internship opportunities available at Nasqueron?
slug: what
answer: |
@@ -242,3 +242,15 @@
enthusiasm, and a strong work ethic may have the opportunity to continue
contributing to projects, becoming long-term community members,
or even pursuing leadership roles within Nasqueron.
+
+faq_layout:
+ - sections:
+ - entries: *faq_internship
+ title: Internship
+
+ - sections:
+ - entries: *faq_mentoring
+ title: Mentoring
+
+ - entries: *faq_contributors
+ title: Open-source contributions
diff --git a/src/pages/FAQ.html b/src/pages/FAQ.html
--- a/src/pages/FAQ.html
+++ b/src/pages/FAQ.html
@@ -8,65 +8,39 @@
<h1 class="text-center">FAQ :: Frequently Asked Questions</h1>
<h2>Table of contents</h2>
</div>
+ {{#each faq.faq_layout}}
<div class="large-6 cell">
<ul>
- <li><strong>Internship</strong>
+ {{#each sections}}
+ <li><strong>{{ title }}</strong>
<ul>
- {{#each faq.faq_entries.internship}}
- <li><a href="#{{ this.slug }}">{{ this.question }}</a></li>
- {{/each}}
- </ul>
- </li>
- </ul>
- </div>
- <div class="large-6 cell">
- <ul>
- <li><strong>Mentoring</strong>
- <ul>
- {{#each faq.faq_entries.mentoring}}
- <li><a href="#{{ this.slug }}">{{ this.question }}</a></li>
- {{/each}}
- </ul>
- </li>
- <li><strong>Open-source contributions</strong>
- <ul>
- {{#each faq.faq_entries.contributors}}
- <li><a href="#{{ this.slug }}">{{ this.question }}</a></li>
+ {{#each entries}}
+ <li><a href="#{{ slug }}">{{ question }}</a></li>
{{/each}}
</ul>
</li>
+ {{/each}}
</ul>
</div>
+ {{/each}}
+
<div class="large-12 cell">
- <h2>Internship</h2>
- {{#each faq.faq_entries.internship}}
- <div style="margin-bottom: 2.5em;">
- <h3 id="{{ slug }}">{{ this.question }}</h3>
- <p>{{ this.answer }}</p>
- {{#if this.link}}
- <a href="{{ this.link.target }}" class="button">{{ this.link.action }}</a>
- {{/if}}
- </div>
- {{/each}}
+ {{#each faq.faq_layout}}{{#each sections}}
- <h2>Mentoring</h2>
- {{#each faq.faq_entries.mentoring}}
- <div style="margin-bottom: 2.5em;">
- <h3 id="{{ slug }}">{{ this.question }}</h3>
- <p>{{ this.answer }}</p>
+ <h2>{{ title }}</h2>
+ <div style="float: right">
+ <a href="#" class="button tiny round">▲</a>
</div>
- {{/each}}
- <h2>Open-source contributions</h2>
- {{#each faq.faq_entries.contributors}}
- <div style="margin-bottom: 2.5em;">
- <h3 id="{{ slug }}">{{ this.question }}</h3>
- <p>{{ this.answer }}</p>
- {{#if this.link}}
- <a href="{{ this.link.target }}" class="button">{{ this.link.action }}</a>
- {{/if}}
- </div>
+ {{#each entries}}
+ <h3 id="{{ slug }}">{{ question }}</h3>
+ <p>{{ answer }}</p>
+ {{#if link}}
+ <a href="{{ link.target }}" class="button">{{ link.action }}</a>
+ {{/if}}
{{/each}}
+
+ {{/each}}{{/each}}
</div>
</div>
</div>

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 08:44 (13 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259871
Default Alt Text
D3148.id8033.diff (5 KB)

Event Timeline