-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,149 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
projects/demo/src/modules/experimental/card/examples/10/index.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 tuiCard="l"> | ||
<div tuiCell="l"> | ||
<tui-avatar | ||
appearance="primary" | ||
src="tuiIconStar" | ||
></tui-avatar> | ||
<div tuiTitle> | ||
Title | ||
<div tuiSubtitle>Description</div> | ||
</div> | ||
<div tuiTitle> | ||
Secondary title | ||
<div tuiSubtitle>Another description</div> | ||
</div> | ||
</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
projects/demo/src/modules/experimental/card/examples/10/index.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,11 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
|
||
@Component({ | ||
selector: 'tui-card-example-10', | ||
templateUrl: './index.html', | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export class TuiCardExample10 {} |
38 changes: 38 additions & 0 deletions
38
projects/demo/src/modules/experimental/card/examples/11/index.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,38 @@ | ||
<div tuiCard="l"> | ||
<div tuiHeader="m"> | ||
<h1 tuiTitle> | ||
Title | ||
<span tuiSubtitle>Subtitle</span> | ||
</h1> | ||
</div> | ||
|
||
<tui-scrollbar> | ||
<div class="card-list"> | ||
<div | ||
*tuiRepeatTimes="let index of 4" | ||
tuiCard | ||
> | ||
<tui-icon | ||
icon="tuiIconPlusSquareLarge" | ||
class="plus" | ||
></tui-icon> | ||
|
||
<h2 tuiTitle> | ||
Title | ||
<span tuiSubtitle>Subtitle</span> | ||
</h2> | ||
</div> | ||
</div> | ||
</tui-scrollbar> | ||
|
||
<div> | ||
<button | ||
appearance="secondary" | ||
size="m" | ||
tuiButton | ||
type="button" | ||
> | ||
Label | ||
</button> | ||
</div> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
projects/demo/src/modules/experimental/card/examples/11/index.less
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,12 @@ | ||
.card-list { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 0.75rem; | ||
flex-wrap: nowrap; | ||
} | ||
|
||
.plus { | ||
background: #428bfa; | ||
color: #fff; | ||
border-radius: 0.25rem; | ||
} |
12 changes: 12 additions & 0 deletions
12
projects/demo/src/modules/experimental/card/examples/11/index.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,12 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
|
||
@Component({ | ||
selector: 'tui-card-example-11', | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export class TuiCardExample11 {} |
Oops, something went wrong.