Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b037374

Browse files
committed
add bml munjal university routes
1 parent 2f0f718 commit b037374

File tree

7 files changed

+61
-0
lines changed

7 files changed

+61
-0
lines changed

‎app/models/user.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export default DS.Model.extend({
2525
return 'https://www.chitkara.edu.in/wp-content/themes/chitkara/images/CU_logo.png';
2626
case 'saitm':
2727
return 'https://minio.cb.lk/public/saitm.png';
28+
case 'munjal':
29+
return 'https://minio.cb.lk/public/thumbnail_bml-munjal-university-logo.png';
2830
default:
2931
return 'https://minio.codingblocks.com/amoeba/OnlineLogo2020.svg';
3032
}

‎app/pods/munjal/index/controller.js‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Controller from '@ember/controller';
2+
import { action } from '@ember/object';
3+
4+
export default class MunjalIndexController extends Controller {
5+
@action
6+
goToRecommendedCourses () {
7+
window.scrollTo({
8+
top: document.getElementById('recommended-courses').offsetTop - 70,
9+
left: 0,
10+
behavior: 'smooth'
11+
})
12+
}
13+
}

‎app/pods/munjal/index/route.js‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Route from '@ember/routing/route';
2+
import { inject as service } from '@ember/service';
3+
4+
export default class MunjalIndexRoute extends Route {
5+
@service currentUser;
6+
7+
activate () {
8+
this.currentUser.setOrg('munjal');
9+
window.localStorage.setItem('org', 'munjal')
10+
}
11+
}

‎app/pods/munjal/index/template.hbs‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<div class="munjal-banner p-5" style="border-radius: 30px;">
2+
3+
<div class="information row justify-content-between mt-md-5 mt-lg-0">
4+
<div class="title col-lg-6 col-md-8 mt-lg-5">Courses specially curated for <br>
5+
BML Munjal University</div>
6+
<div class="col-2"><img class="logo d-none d-md-block" src="thumbnail_bml-munjal-university-logo.png" alt="chitkara-logo"></div>
7+
</div>
8+
9+
<div class="row justify-content-between">
10+
<div class="col-md-5 align-self-end mb-5 d-none d-md-block">
11+
12+
<button class="button-solid white-button font-lg" {{action 'goToRecommendedCourses'}}>Explore Courses</button>
13+
</div>
14+
<div class="banner-image col-md-7">
15+
<img src="/app/images/thumbnail_bml-munjal-university-logo.png" alt="munjal-banner-image">
16+
</div>
17+
</div>
18+
19+
20+
<div class="d-md-none row justify-content-center">
21+
<div><button class="button-solid white-button mt-5" {{action 'goToRecommendedCourses'}}>Explore Courses</button></div>
22+
</div>
23+
</div>
24+
25+
<div class="container mt-5" id="recommended-courses">
26+
{{recommended-courses organization='munjal'}}
27+
</div>
28+
29+
30+
{{offerings-static}}

‎app/pods/munjal/route.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Route from '@ember/routing/route';
2+
3+
export default class MunjalRoute extends Route {
4+
}

‎app/pods/munjal/template.hbs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{outlet}}
38.4 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /