Skip to content
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

Fix for [C4GT Community]: Implementation of Collapsible Sidebar Menu - #30 #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/app/app.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,12 @@ h5, .h5 {
margin: 2%;
bottom: 2%;
color: #fff;
} */
} */



/* <!-- Transition for Sidebar --> */

.collapse-horizontal {
transition: width .3s, height .3s;
}
268 changes: 191 additions & 77 deletions src/app/hindi-version/hindi-version.component.html
Original file line number Diff line number Diff line change
@@ -1,84 +1,198 @@
<header>
<nav class="level-nav">
</nav>
</header>
<section class="mt-3">
<div class="container-fluid">
<div class="accordion" id="accordionPanelsStayOpenExample">
<div class="accordion-item">
<div class="accordion-collapse collapse show">
<div class="container-fluid">
<div class="accordion-body bg-color">
<div class="row">
<div class="col-md-9 rounded py-2 tab-content bg-white" id="v-pills-tabContent">
<div *ngIf="exploreandlearn" class="tab-pane p-4 fade show active" id="v-pills-home"
role="tabpanel" aria-labelledby="v-pills-home-tab" tabindex="0">
<iframe
src="/assets/sb-all/index.html#/exploreandlearn?hideNavigation=true&language=hi&source=/assets/sb-all/db/hi/proto3.json"
frameborder="0" height="600px" width="100%"></iframe>
</div>
<div *ngIf="learnandplay" class="tab-pane fade p-4 show active" id="v-pills-profile"
role="tabpanel" aria-labelledby="v-pills-profile-tab" tabindex="0">
<iframe
src="/assets/sb-all/index.html#/playandlearn?hideNavigation=true&language=hi&source=/assets/sb-all/db/playAndLearn/proto4.json"
frameborder="0" height="600px" width="100%"></iframe>
</div>
<div *ngIf="playgame" class="tab-pane fade p-4 show active" id="v-pills-messages"
role="tabpanel" aria-labelledby="v-pills-messages-tab" tabindex="0">
<iframe src="/assets/games/index.html" frameborder="0" height="600px"
width="100%"></iframe>
</div>
<div *ngIf="videohelp" class="tab-pane fade p-4 show active" id="v-pills-video"
role="tabpanel" aria-labelledby="v-pills-video-tab" tabindex="0">
<iframe src="/assets/explore_and_learn.mp4" frameborder="0" height="600px"
width="100%"></iframe>
</div>
</div>
<div class="col-md-3">
<h2 class="accordion-header">
<button class="accordion-button cl fw-700" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseOne" aria-expanded="true"
aria-controls="panelsStayOpen-collapseOne">Speak with Me
</button>
</h2>
<div class="nav flex-column nav-pills bg-border m-4" id="v-pills-tab" role="tablist"
aria-orientation="vertical">
<button (click)="showExploreandLearn()"
class="nav-link active text-left fs-14 text-black" id="v-pills-home-tab"
data-bs-toggle="pill" data-bs-target="#v-pills-home" type="button" role="tab"
aria-controls="v-pills-home" aria-selected="true">Explore & Learn</button>
<button (click)="showLearnandplay()" class="nav-link text-left fs-14 text-black"
id="v-pills-profile-tab" data-bs-toggle="pill" data-bs-target="#v-pills-profile"
type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false">Play
& Learn</button>
<button (click)="showPlaygame()" class="nav-link text-left fs-14 text-black"
id="v-pills-messages-tab" data-bs-toggle="pill" data-bs-target="#v-pills-messages"
type="button" role="tab" aria-controls="v-pills-messages"
aria-selected="false">Learn with a Friend</button>
<button (click)="showVideoHelp()" class="nav-link text-left fs-14 text-black"
id="v-pills-video-tab" data-bs-toggle="pill" data-bs-target="#v-pills-video"
type="button" role="tab" aria-controls="v-pills-video" aria-selected="false">Video
help</button>
</div>
</div>
<nav class="level-nav d-grid gap-2 d-md-flex justify-content-md-end">
<!-- Sidebar Button to Collapse/Show -->
<button
type="button"
class="btn btn-light mx-2 btn-sm"
href="#"
data-bs-target="#sidebar"
data-bs-toggle="collapse"
>
<i class="bi bi-list bi-lg py-2 p-1"></i> Menu
</button>
</nav>
</header>
<section class="mt-3">
<div class="container-fluid">
<div class="accordion" id="accordionPanelsStayOpenExample">
<div class="accordion-item">
<div class="accordion-collapse collapse show">
<div class="container-fluid">
<div class="accordion-body bg-color">
<div class="row">
<div
class="col-md rounded py-2 tab-content bg-white"
id="v-pills-tabContent"
>
<div
*ngIf="exploreandlearn"
class="tab-pane p-4 fade show active"
id="v-pills-home"
role="tabpanel"
aria-labelledby="v-pills-home-tab"
tabindex="0"
>
<iframe
src="/assets/sb-all/index.html#/exploreandlearn?hideNavigation=true&language=hi&source=/assets/sb-all/db/hi/proto3.json"
frameborder="0"
height="600px"
width="100%"
></iframe>
</div>
<div
*ngIf="learnandplay"
class="tab-pane fade p-4 show active"
id="v-pills-profile"
role="tabpanel"
aria-labelledby="v-pills-profile-tab"
tabindex="0"
>
<iframe
src="/assets/sb-all/index.html#/playandlearn?hideNavigation=true&language=hi&source=/assets/sb-all/db/playAndLearn/proto4.json"
frameborder="0"
height="600px"
width="100%"
></iframe>
</div>
<div
*ngIf="playgame"
class="tab-pane fade p-4 show active"
id="v-pills-messages"
role="tabpanel"
aria-labelledby="v-pills-messages-tab"
tabindex="0"
>
<iframe
src="/assets/games/index.html"
frameborder="0"
height="600px"
width="100%"
></iframe>
</div>
<div
*ngIf="videohelp"
class="tab-pane fade p-4 show active"
id="v-pills-video"
role="tabpanel"
aria-labelledby="v-pills-video-tab"
tabindex="0"
>
<iframe
src="/assets/explore_and_learn.mp4"
frameborder="0"
height="600px"
width="100%"
></iframe>
</div>
</div>
<div class="col-auto px-0">
<div
id="sidebar"
class="collapse collapse-horizontal show border-end"
>
<div
id="sidebar-nav"
class="list-group border-0 rounded-0 text-sm-start min-vh-100"
>
<h2 class="accordion-header">
<button
class="accordion-button cl fw-700"
type="button"
data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseOne"
aria-expanded="true"
aria-controls="panelsStayOpen-collapseOne"
>
Speak with Me
</button>
</h2>
<div
class="nav flex-column nav-pills bg-border m-4"
id="v-pills-tab"
role="tablist"
aria-orientation="vertical"
>
<button
(click)="showExploreandLearn()"
class="nav-link active text-left fs-14 text-black"
id="v-pills-home-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-home"
type="button"
role="tab"
aria-controls="v-pills-home"
aria-selected="true"
>
Explore & Learn
</button>
<button
(click)="showLearnandplay()"
class="nav-link text-left fs-14 text-black"
id="v-pills-profile-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-profile"
type="button"
role="tab"
aria-controls="v-pills-profile"
aria-selected="false"
>
Play & Learn
</button>
<button
(click)="showPlaygame()"
class="nav-link text-left fs-14 text-black"
id="v-pills-messages-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-messages"
type="button"
role="tab"
aria-controls="v-pills-messages"
aria-selected="false"
>
Learn with a Friend
</button>
<button
(click)="showVideoHelp()"
class="nav-link text-left fs-14 text-black"
id="v-pills-video-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-video"
type="button"
role="tab"
aria-controls="v-pills-video"
aria-selected="false"
>
Video help
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- <div class="tab-pane active flex-center w-75 mb-5 mt-3" id="tab1">
</div>
</section>
<!-- <div class="tab-pane active flex-center w-75 mb-5 mt-3" id="tab1">
<a class="btnNext cursor px-5 py-3 rounded bg-primary border-0 text-white fs-4">Next</a>
</div> -->
<footer>
<div class="footer-level-img footer" style="position:relative!important"></div>
<!-- hitwebcounter Code START -->
<span>Visitors Counter: </span>
<!-- Start of CuterCounter Code -->
<a href="https://www.cutercounter.com/" target="_blank"><img
src="https://www.cutercounter.com/hits.php?id=hemxnakfa&nd=6&style=3" border="0" alt="hit counter"></a>
<!-- End of CuterCounter Code -->
<div>Device Id: {{this.getFingerPrintJsId()}}</div>
</footer>
<footer>
<div
class="footer-level-img footer"
style="position: relative !important"
></div>
<!-- hitwebcounter Code START -->
<span>Visitors Counter: </span>
<!-- Start of CuterCounter Code -->
<a href="https://www.cutercounter.com/" target="_blank"
><img
src="https://www.cutercounter.com/hits.php?id=hemxnakfa&nd=6&style=3"
border="0"
alt="hit counter"
/></a>
<!-- End of CuterCounter Code -->
<div>Device Id: {{ this.getFingerPrintJsId() }}</div>
</footer>
Loading