-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #607 from sunbird-cb/explorebyColection
Exploreby colection
- Loading branch information
Showing
31 changed files
with
1,305 additions
and
56 deletions.
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
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
16 changes: 16 additions & 0 deletions
16
...curated-courses/components/curated-collection-card/curated-collection-card.component.html
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,16 @@ | ||
<div class="cursor-pointer card2 flex item-center single_provider_card mat-card " | ||
[routerLink]="['/app/curatedCollections', collection?.identifier]"> | ||
<div class="w-full flex flex-col card-container items-center justify-center"> | ||
<div class="name-container flex flex-col"> | ||
<div class="" role="link" tabindex="0"><!----> | ||
<div class="name ws-mat-black-text cursor-pointer mat-subheading-1"> | ||
{{collection?.name}} | ||
</div> | ||
</div> | ||
</div> | ||
<!-- <div class="provider-image-container flex margin-bottom-s"> | ||
<img src="fusion-assets/images/lbs_logo.png" class="sb-certificatePage-loader-img" alt="LBSNAA" /> | ||
</div> | ||
<p class="mat-body-2 text-center margin-remove">{{provider?.slug}}</p> --> | ||
</div> | ||
</div> |
69 changes: 69 additions & 0 deletions
69
...curated-courses/components/curated-collection-card/curated-collection-card.component.scss
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,69 @@ | ||
.single_provider_card { | ||
height: 315px; | ||
width: 275px; | ||
padding: 24px 24px; | ||
box-sizing: border-box; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
.name-container { | ||
height: 70px; | ||
overflow: hidden; | ||
width: 100%; | ||
text-align: left; | ||
} | ||
.provider-image-container { | ||
width: 150px; | ||
height: 150px; | ||
border-radius: 4px 4px; | ||
overflow: hidden; | ||
align-items: center; | ||
display: flex; | ||
border: 1px solid rgba(0,0,0,.08); | ||
|
||
img { | ||
height: 120px; | ||
width: 120px; | ||
margin: 15px auto; | ||
} | ||
} | ||
|
||
|
||
// Remove this when card 2 is not needed | ||
.card2.single_provider_card { | ||
// height: 315px; | ||
height: auto; | ||
width: 275px; | ||
padding: 24px 24px; | ||
box-sizing: border-box; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: center; | ||
.name-container { | ||
// height: 70px; | ||
height: 92px; | ||
overflow: hidden; | ||
width: 100%; | ||
text-align: left; | ||
} | ||
.provider-image-container { | ||
width: 150px; | ||
height: 150px; | ||
border-radius: 4px 4px; | ||
overflow: hidden; | ||
align-items: center; | ||
display: flex; | ||
border: 1px solid rgba(0,0,0,.08); | ||
|
||
img { | ||
height: 120px; | ||
width: 120px; | ||
margin: 15px auto; | ||
} | ||
} | ||
.mat-subheading-1 { | ||
margin: 0; | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
...ated-courses/components/curated-collection-card/curated-collection-card.component.spec.ts
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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { CuratedCollectionCardComponent } from './curated-collection-card.component' | ||
|
||
describe('CuratedCollectionCardComponent', () => { | ||
let component: CuratedCollectionCardComponent | ||
let fixture: ComponentFixture<CuratedCollectionCardComponent> | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [CuratedCollectionCardComponent], | ||
}) | ||
.compileComponents() | ||
})) | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CuratedCollectionCardComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
15 changes: 15 additions & 0 deletions
15
...s/curated-courses/components/curated-collection-card/curated-collection-card.component.ts
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,15 @@ | ||
import { Component, OnInit, Input } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'ws-app-curated-collection-card', | ||
templateUrl: './curated-collection-card.component.html', | ||
styleUrls: ['./curated-collection-card.component.scss'], | ||
}) | ||
export class CuratedCollectionCardComponent implements OnInit { | ||
@Input() collection!: any | ||
constructor() { } | ||
|
||
ngOnInit() { | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...outes/curated-courses/components/curated-popular-card/curated-popular-card.component.html
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,10 @@ | ||
<div class="cursor-pointer card-box card_gradient bg_color_blue" [routerLink]="['/app/curatedCollections', collection?.identifier]"> | ||
|
||
<img src="fusion-assets/images/provider.svg"> | ||
<div class="card_text_box"> | ||
<!-- <p class="mat-subheading-1 text-white margin-bottom-m">{{provider?.slug}}</p> | ||
<p class="mat-body-2 text-white">{{provider?.orgName}}</p> --> | ||
<p class="mat-subheading-1 text-white margin-bottom-m">{{collection?.name}}</p> | ||
</div> | ||
|
||
</div> |
32 changes: 32 additions & 0 deletions
32
...outes/curated-courses/components/curated-popular-card/curated-popular-card.component.scss
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,32 @@ | ||
.card-box { | ||
width: 275px; | ||
height: 130px; | ||
// margin-bottom: 25px; | ||
border-radius: 8px 8px; | ||
overflow: hidden; | ||
// background-image: url("https://igot.blob.core.windows.net/content/content/do_11327647746152857614136/artifact/do_11327647746152857614136_1620663753379_introtoeconomics11602651204113.jpg"); | ||
// background-position: center; | ||
// background-repeat: no-repeat; | ||
// background-size: cover; | ||
// padding: 16px 16px; | ||
box-sizing: border-box; | ||
position: relative; | ||
|
||
img { | ||
height: 100%; | ||
width: 100%; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
position: absolute; | ||
z-index: -1; | ||
|
||
} | ||
.card_text_box { | ||
padding: 16px 16px; | ||
width: 100%; | ||
position: relative; | ||
z-index: 9; | ||
box-sizing: border-box; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...es/curated-courses/components/curated-popular-card/curated-popular-card.component.spec.ts
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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { CuratedPopularCardComponent } from './curated-popular-card.component' | ||
|
||
describe('CuratedPopularCardComponent', () => { | ||
let component: CuratedPopularCardComponent | ||
let fixture: ComponentFixture<CuratedPopularCardComponent> | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [CuratedPopularCardComponent], | ||
}) | ||
.compileComponents() | ||
})) | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CuratedPopularCardComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
Oops, something went wrong.