-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added faq page. #502
Open
AllanCao12
wants to merge
1
commit into
master
Choose a base branch
from
addFaq
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Added faq page. #502
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,53 @@ | ||
.faq { | ||
&__page { | ||
background: #faf9f8; | ||
height: fit-content; | ||
padding-bottom: 5rem; | ||
} | ||
|
||
&__content { | ||
max-width: 65rem; | ||
margin: 0 auto; | ||
height: fit-content; | ||
padding: 2.5rem; | ||
} | ||
|
||
&__header { | ||
.page-section-image { | ||
min-height: 20rem; | ||
} | ||
|
||
.page-section { | ||
padding: 2rem 0rem; | ||
margin-bottom: 3rem; | ||
} | ||
} | ||
|
||
.page-section-grid-primary { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
} | ||
.page-section-grid-secondary { | ||
display: block; | ||
height: 200px; | ||
background-size: cover; | ||
background-position: center; | ||
} | ||
|
||
&__topic_name { | ||
display: inline-block; | ||
} | ||
|
||
&__questions { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: 2.5rem; | ||
} | ||
@media (max-width: 768px) { | ||
&__questions { | ||
grid-template-columns: 1fr; | ||
gap: 2.5rem; | ||
} | ||
} | ||
} | ||
|
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,9 @@ | ||
--- | ||
title: "Frequently Asked Questions" | ||
description: "Find answers to all your frequently asked questions in one place. Below is a list of topics you maybe have questions about!" | ||
url: "/faq/" | ||
layout: faq-overview | ||
header_image_url: images/general/game_lab.jpg | ||
Topics: | ||
- course-registration | ||
--- |
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,44 @@ | ||
{{ define "main" }} | ||
{{- partial "navbar_temp.html" . -}} | ||
<div class="faq__page"> | ||
<div class="faq__content"> | ||
<div class="faq__header"> | ||
<div class="page-section"> | ||
<div class="page-section-content page-section-grid-primary"> | ||
<div class="page-section-text">{{ .Title }}</div> | ||
<div class="page-section-body"> | ||
{{ .Description }} | ||
</div> | ||
</div> | ||
<div | ||
class="page-section-image page-section-grid-secondary" | ||
style="background-image: url({{ absURL .Params.header_image_url }})" | ||
></div> | ||
</div> | ||
</div> | ||
<div class="faq__topics"> | ||
{{ range .Params.Topics }} | ||
{{ $page := printf "resources/faq/topics/%s" . }} | ||
{{ with $.Site.GetPage $page }} | ||
<div class="faq__topic"> | ||
<a href="{{ .RelPermalink }}"> | ||
<div class=faq__topic_name><h3>{{ .Title }} <i class="fas fa-arrow-right read-more-arrow"></i></h3></div> | ||
</a> | ||
<div class = "faq-topic__questions"> | ||
{{ range first 2 .Params.questions }} | ||
{{ $questionPage := printf "resources/faq/questions/%s" . }} | ||
{{ with $.Site.GetPage $questionPage }} | ||
<div class="faq__question"> | ||
<div>{{- partial "curated-questions.html" (dict "Title" .Title "summary" .Params.summary) -}}</div> | ||
<div>{{- partial "read-more.html" (dict "label" "Read More " "link" .RelPermalink) -}}</div> | ||
</div> | ||
Comment on lines
+31
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
{{ end }} |
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
></div> | ||
</div> | ||
</div> | ||
<div class="faq-topic__questions"> | ||
<div class="faq__questions"> | ||
{{ range .Params.questions }} | ||
{{ $page := printf "resources/faq/questions/%s" . }} | ||
{{ with $.Site.GetPage $page }} | ||
Comment on lines
-22
to
25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we could create a common partial called like "faq question group" to reuse across the 2 pages |
||
|
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,4 @@ | ||
<div> | ||
<h4>{{ .Title }}</h4> | ||
<p>{{ .summary }}</p> | ||
</div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should be named
_index.md