Skip to content

Commit

Permalink
Merge pull request #22 from jaredliw/gdrive-tab
Browse files Browse the repository at this point in the history
Google Drive Link
  • Loading branch information
lynngoh7 authored Nov 11, 2024
2 parents b1b956d + e3ba011 commit d129179
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ inspiration = 'Exacerbated by class disruptions during the pandemic, we realised
aim = 'We aim to assist struggling Malaysian youth who lack academic support primarily through specialised online one-to-one or group tutoring by our own team of bright and accomplished volunteer tutors. Furthermore, we plan to use our platform to expand our reach by means of collaborations, fundraisers and more.'
tutorSignUpLink = 'https://docs.google.com/forms/d/e/1FAIpQLSf6AkKHe-03225EL0eMiKribR0APFzCh8aykc1IB509oC9LZg/viewform?usp=sharing'
tuteeSignUpLink = 'https://docs.google.com/forms/d/e/1FAIpQLSfpkixo2t9NKedNYlEChe2UvtnuVN9hTkMM6NcrkPNSIPv5SQ/viewform?usp=sharing'
resourcesGoogleDriveFolderLink = 'https://drive.google.com/drive/folders/1rjg6h0bArc4QbKTAdAV6O8mYe5dVYlil?usp=drive_link'
pages = [
['About', 'about'],
['Projects', 'projects'],
Expand Down
10 changes: 10 additions & 0 deletions layouts/page/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ <h2 class="text-center text-primary fw-lighter">

<div class="text-center">{{ .Content }}</div>

<div class="d-flex flex-column flex-sm-row align-items-center justify-content-center gap-2 my-3">
<a type="button" class="btn btn-primary text-white text-uppercase rounded-0" style="width: 230px;"
href="{{ absURL site.Params.resourcesGoogleDriveFolderLink }}" target="_blank">
View on Google Drive
</a>
</div>

<ul id="resourceNav" class="nav nav-tabs mt-2">
{{ $first := true }}
{{ $sectionLink := "" }}
{{ range site.Data.resources }}
<li class="nav-item">
<a class="nav-link {{ if $first }} active {{ end }}" data-bs-toggle="tab"
Expand All @@ -27,9 +35,11 @@ <h2 class="text-center text-primary fw-lighter">
{{ $firstTab := true }}
{{ $accordionCounter := 1 }}
{{ range site.Data.resources }}
{{ $sectionLink = .section_link }}
<div class="tab-pane container px-0 fade {{ if $firstTab -}} show active {{- end -}}"
id="{{ crypto.MD5 .section_name }}">
{{ $firstGroup := true }}

{{ range .groups }}
<div class="d-flex flex-column flex-sm-row align-items-center justify-content-between pt-4 pb-1 mb-2">
<h6 class="text-uppercase mb-0">
Expand Down

0 comments on commit d129179

Please sign in to comment.