forked from vmware-archive/clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bogdan Bogdanov <bbogdanov@vmware.com>
- Loading branch information
Showing
9 changed files
with
205 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
template: ` | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h3>Card title</h3> | ||
</div> | ||
<div class="card-block"> | ||
<p> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut adipisci distinctio error, totam tempore iusto, | ||
quaerat nisi quam dicta, sapiente ratione rem mollitia laudantium at magni quas in ullam. Adipisci? | ||
</p> | ||
</div> | ||
</div> | ||
`, | ||
styles: [ | ||
` | ||
:host { | ||
display: flex; | ||
margin: 1rem; | ||
justify-content: center; | ||
} | ||
`, | ||
], | ||
}) | ||
export class AppComponent {} |
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,31 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import '@cds/core/card/register.js'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
template: ` | ||
<cds-card aria-labelledby="cardWithLayout"> | ||
<div cds-layout="vertical gap:md"> | ||
<h2 id="cardWithLayout" cds-text="section" cds-layout="p-y:sm">Card Title</h2> | ||
|
||
<cds-divider cds-card-remove-margin></cds-divider> | ||
|
||
<div cds-text="body light" cds-layout="p-y:lg"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut adipisci distinctio error, totam tempore iusto, | ||
quaerat nisi quam dicta, sapiente ratione rem mollitia laudantium at magni quas in ullam. Adipisci? | ||
</div> | ||
</div> | ||
</cds-card> | ||
`, | ||
styles: [ | ||
` | ||
:host { | ||
display: flex; | ||
margin: 1rem; | ||
justify-content: center; | ||
} | ||
`, | ||
], | ||
}) | ||
export class AppComponent {} |
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,34 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
template: ` | ||
<div class="card"> | ||
<div class="card-header"> | ||
Header | ||
</div> | ||
<div class="card-block"> | ||
<div class="card-media-block"> | ||
<img src="..." class="card-media-image" /> | ||
<div class="card-media-description"> | ||
<span class="card-media-title"> | ||
Project A | ||
</span> | ||
<span class="card-media-text"> | ||
Owner: John Doe | ||
</span> | ||
</div> | ||
</div> | ||
<div class="card-text"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt excepturi labore explicabo temporibus, enim | ||
voluptate saepe corrupti illum earum eveniet ab veniam vel nisi fugit accusantium perferendis quas facilis | ||
quod. | ||
</div> | ||
</div> | ||
<div class="card-footer"> | ||
<button class="btn btn-sm btn-link">Action</button> | ||
</div> | ||
</div> | ||
`, | ||
}) | ||
export class AppComponent {} |
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,51 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import '@cds/core/alert/register.js'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
template: ` | ||
<cds-card> | ||
<div cds-layout="vertical gap:md"> | ||
<h2 id="containerOfCards1" cds-text="section" cds-layout="horizontal align:vertical-center"> | ||
Header | ||
</h2> | ||
|
||
<cds-divider cds-card-remove-margin></cds-divider> | ||
|
||
<div cds-text="body light" cds-layout="p-y:lg"> | ||
<div cds-layout="horizontal gap:md p-b:md"> | ||
<img width="60" src="..." /> | ||
<div cds-layout="vertical gap:md"> | ||
<span> | ||
Project A | ||
</span> | ||
<span> | ||
Owner: John Doe | ||
</span> | ||
</div> | ||
</div> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt excepturi labore explicabo temporibus, enim | ||
voluptate saepe corrupti illum earum eveniet ab veniam vel nisi fugit accusantium perferendis quas facilis | ||
quod. | ||
</div> | ||
|
||
<cds-divider cds-card-remove-margin></cds-divider> | ||
|
||
<div cds-layout="horizontal gap:sm p-y:sm align:vertical-center"> | ||
<cds-button action="flat-inline"> Action </cds-button> | ||
</div> | ||
</div> | ||
</cds-card> | ||
`, | ||
styles: [ | ||
` | ||
:host { | ||
display: flex; | ||
margin: 1rem; | ||
justify-content: center; | ||
} | ||
`, | ||
], | ||
}) | ||
export class AppComponent {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Component } from '@angular/core'; | ||
import { DemoTabData } from '../components/demo.component'; | ||
|
||
@Component({ | ||
selector: 'app-card', | ||
template: ` | ||
<h1>Card</h1> | ||
<demo [tabs]="demo1"> | ||
<h2>Basic</h2> | ||
</demo> | ||
<demo [tabs]="demo2"> | ||
<h2>Card media block</h2> | ||
</demo> | ||
`, | ||
}) | ||
export class CardPage { | ||
demo1: DemoTabData[] = [ | ||
{ | ||
name: 'Angular', | ||
files: { | ||
'src/app/app.component.ts': 'card/card.1.angular.txt', | ||
}, | ||
language: 'ts', | ||
template: 'angular', | ||
}, | ||
{ | ||
name: 'Core', | ||
files: { | ||
'src/app/app.component.ts': 'card/card.1.core.txt', | ||
}, | ||
language: 'ts', | ||
template: 'core', | ||
}, | ||
]; | ||
|
||
demo2: DemoTabData[] = [ | ||
{ | ||
name: 'Angular', | ||
files: { | ||
'src/app/app.component.ts': 'card/card.2.angular.txt', | ||
}, | ||
language: 'ts', | ||
template: 'angular', | ||
}, | ||
{ | ||
name: 'Core', | ||
files: { | ||
'src/app/app.component.ts': 'card/card.2.core.txt', | ||
}, | ||
language: 'ts', | ||
template: 'core', | ||
}, | ||
]; | ||
} |