|
1 | | -<!-- TODO: copy in demo template from existing mat-card demo. --> |
2 | | -Not yet implemented. |
| 1 | +<div class="demo-card-container"> |
| 2 | + |
| 3 | +<!-- TODO(jelbourn): re-add dividers and footers with progress bars once the MDC versions exist --> |
| 4 | + |
| 5 | + <mat-card> |
| 6 | + Card with only text content |
| 7 | + </mat-card> |
| 8 | + |
| 9 | + <mat-card> |
| 10 | + <mat-card-content> |
| 11 | + Card with only <code><mat-card-content></code> and text content. |
| 12 | + </mat-card-content> |
| 13 | + </mat-card> |
| 14 | + |
| 15 | + <mat-card> |
| 16 | + <mat-card-subtitle>Subtitle</mat-card-subtitle> |
| 17 | + <mat-card-title>Card with title and footer</mat-card-title> |
| 18 | + <mat-card-content> |
| 19 | + <p>This is supporting text.</p> |
| 20 | + <p>{{longText}}</p> |
| 21 | + </mat-card-content> |
| 22 | + <mat-card-actions> |
| 23 | + <button mat-button>Like</button> |
| 24 | + <button mat-button>Share</button> |
| 25 | + </mat-card-actions> |
| 26 | + </mat-card> |
| 27 | + |
| 28 | + <mat-card> |
| 29 | + <mat-card-subtitle>Subtitle</mat-card-subtitle> |
| 30 | + <mat-card-title>Card with title, footer, and inset-divider</mat-card-title> |
| 31 | + <mat-card-content> |
| 32 | + <p>This is supporting text.</p> |
| 33 | + <p>{{longText}}</p> |
| 34 | + </mat-card-content> |
| 35 | + <mat-card-actions> |
| 36 | + <button mat-button>Like</button> |
| 37 | + <button mat-button>Share</button> |
| 38 | + </mat-card-actions> |
| 39 | + |
| 40 | + </mat-card> |
| 41 | + |
| 42 | + <mat-card> |
| 43 | + <img mat-card-image src="https://material.angularjs.org/latest/img/washedout.png"> |
| 44 | + <mat-card-title>Content Title</mat-card-title> |
| 45 | + <mat-card-content> |
| 46 | + <p>Here is some content</p> |
| 47 | + </mat-card-content> |
| 48 | + <mat-card-actions align="end"> |
| 49 | + <button mat-button>Like</button> |
| 50 | + <button mat-button>Share</button> |
| 51 | + </mat-card-actions> |
| 52 | + </mat-card> |
| 53 | + |
| 54 | + <mat-card> |
| 55 | + <mat-card-header> |
| 56 | + <img mat-card-avatar> |
| 57 | + <mat-card-title>Header title</mat-card-title> |
| 58 | + <mat-card-subtitle>Header subtitle</mat-card-subtitle> |
| 59 | + </mat-card-header> |
| 60 | + <img mat-card-image src="https://material.angularjs.org/latest/img/washedout.png"> |
| 61 | + <mat-card-content> |
| 62 | + <p>Here is some content</p> |
| 63 | + </mat-card-content> |
| 64 | + </mat-card> |
| 65 | + |
| 66 | + <mat-card class="demo-card-blue mat-card-flat"> |
| 67 | + <mat-card-title>Easily customizable</mat-card-title> |
| 68 | + <mat-card-actions> |
| 69 | + <button mat-button>First</button> |
| 70 | + <button mat-button>Second</button> |
| 71 | + </mat-card-actions> |
| 72 | + </mat-card> |
| 73 | + |
| 74 | + <hr> |
| 75 | + <h2>Cards with media area</h2> |
| 76 | + |
| 77 | + <mat-card> |
| 78 | + <mat-card-title-group> |
| 79 | + <mat-card-title>Card</mat-card-title> |
| 80 | + <mat-card-subtitle>Small</mat-card-subtitle> |
| 81 | + <img mat-card-sm-image> |
| 82 | + </mat-card-title-group> |
| 83 | + <mat-card-content> |
| 84 | + {{longText}} |
| 85 | + </mat-card-content> |
| 86 | + </mat-card> |
| 87 | + |
| 88 | + <mat-card> |
| 89 | + <mat-card-title-group> |
| 90 | + <mat-card-title>Card</mat-card-title> |
| 91 | + <mat-card-subtitle>Medium</mat-card-subtitle> |
| 92 | + <img mat-card-md-image> |
| 93 | + </mat-card-title-group> |
| 94 | + <mat-card-content> |
| 95 | + {{longText}} |
| 96 | + </mat-card-content> |
| 97 | + </mat-card> |
| 98 | + |
| 99 | + <mat-card> |
| 100 | + <mat-card-title-group> |
| 101 | + <mat-card-title>Card</mat-card-title> |
| 102 | + <mat-card-subtitle>Large</mat-card-subtitle> |
| 103 | + <img mat-card-lg-image> |
| 104 | + </mat-card-title-group> |
| 105 | + <mat-card-content> |
| 106 | + {{longText}} |
| 107 | + </mat-card-content> |
| 108 | + </mat-card> |
| 109 | + |
| 110 | + <mat-card> |
| 111 | + <mat-card-title-group> |
| 112 | + <mat-card-title>Card</mat-card-title> |
| 113 | + <mat-card-subtitle>Extra large</mat-card-subtitle> |
| 114 | + <img mat-card-xl-image> |
| 115 | + </mat-card-title-group> |
| 116 | + <mat-card-content> |
| 117 | + {{longText}} |
| 118 | + </mat-card-content> |
| 119 | + </mat-card> |
| 120 | + |
| 121 | + |
| 122 | +</div> |
0 commit comments