Commit 94c41f58 authored by Sharath Prasad's avatar Sharath Prasad
Browse files

Issue #SB-0000 feat:cQube Card Addition

No related merge requests found
Showing with 61 additions and 2 deletions
+61 -2
......@@ -14,6 +14,7 @@ import { LibraryCardV4Component } from './library-card-v4/library-card-v4.compon
import { NotificationCardComponent } from './notification-card/notification-card.component';
import {BannerCardComponent} from './banner-card/banner-card.component';
import { TruncatedEllipsisComponent } from './truncated-ellipsis/truncated-ellipsis.component';
import { CqubeCardComponent } from './cqube-card/cqube-card.component';
@NgModule({
declarations: [
......@@ -30,7 +31,8 @@ import { TruncatedEllipsisComponent } from './truncated-ellipsis/truncated-ellip
LibraryCardV4Component,
NotificationCardComponent,
BannerCardComponent,
TruncatedEllipsisComponent
TruncatedEllipsisComponent,
CqubeCardComponent
],
imports: [
CommonModule
......@@ -49,7 +51,8 @@ import { TruncatedEllipsisComponent } from './truncated-ellipsis/truncated-ellip
LibraryCardV4Component,
NotificationCardComponent,
BannerCardComponent,
TruncatedEllipsisComponent
TruncatedEllipsisComponent,
CqubeCardComponent
]
})
export class CardModule { }
<div class="sb--card" (click)="onClick($event)">
<div class='sb--card__main-area'>
<div class="sb--card__img">
<div class="img-container">
<img [src]="cardImg" alt="">
</div>
</div>
</div>
</div>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CqubeCardComponent } from './cqube-card.component';
describe('CqubeCardComponent', () => {
let component: CqubeCardComponent;
let fixture: ComponentFixture<CqubeCardComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ CqubeCardComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(CqubeCardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'sb-cqube-card',
templateUrl: './cqube-card.component.html',
styleUrls: ['./cqube-card.component.scss']
})
export class CqubeCardComponent implements OnInit {
@Input() cardImg:string;
constructor() { }
ngOnInit(): void {
}
onClick(event:any) {
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment