|
| 1 | +<section> |
| 2 | + <h2>Husky</h2> |
| 3 | + <p>Showing a card with title only</p> |
| 4 | + <md-card class="example-card"> |
| 5 | + Siberian Husky |
| 6 | + </md-card> |
| 7 | +</section> |
| 8 | + |
| 9 | +<section> |
| 10 | + <h2>Malamute</h2> |
| 11 | + <p>Showing a Card with title and subtitle. </p> |
| 12 | + <md-card class="example-card"> |
| 13 | + <md-card-title>Alaskan Malamute</md-card-title> |
| 14 | + <md-card-subtitle>Dog breed</md-card-subtitle> |
| 15 | + </md-card> |
| 16 | +</section> |
| 17 | + |
| 18 | + |
| 19 | +<section> |
| 20 | + <h2>German Shepherd</h2> |
| 21 | + <p> |
| 22 | + Showing a card with title, subtitle, and a footer. The footer displays a progress bar when |
| 23 | + user search for more dogs. |
| 24 | + </p> |
| 25 | + <md-card class="example-card"> |
| 26 | + <md-card-subtitle>Dog breed</md-card-subtitle> |
| 27 | + <md-card-title>German Shepherd</md-card-title> |
| 28 | + <md-card-content> |
| 29 | + The German Shepherd is a breed of medium to large-sized working dog that originated in |
| 30 | + Germany. The breed's officially recognized name is German Shepherd Dog in the English |
| 31 | + language. The breed is also known as the Alsatian in Britain and Ireland. |
| 32 | + </md-card-content> |
| 33 | + <md-card-actions> |
| 34 | + Search for more dogs... |
| 35 | + <button md-button (click)="showProgress = !showProgress"> |
| 36 | + {{showProgress ? 'Cancel' : 'Search'}} |
| 37 | + </button> |
| 38 | + </md-card-actions> |
| 39 | + <md-card-footer> |
| 40 | + <md-progress-bar mode="indeterminate" aria-label="Loading" *ngIf="showProgress"> |
| 41 | + </md-progress-bar> |
| 42 | + </md-card-footer> |
| 43 | + |
| 44 | + </md-card> |
| 45 | +</section> |
| 46 | + |
| 47 | +<section> |
| 48 | + <h2>Dachshund</h2> |
| 49 | + <p>Showing a card with title, subtitle, and avatar as header and a card image.</p> |
| 50 | + <md-card class="example-card"> |
| 51 | + <md-card-header> |
| 52 | + <img md-card-avatar src="a11y/card/assets/dachshund-avatar.jpg" aria-label="Dachshund avatar"> |
| 53 | + <md-card-title>Dachshund</md-card-title> |
| 54 | + <md-card-subtitle>Dog breed</md-card-subtitle> |
| 55 | + </md-card-header> |
| 56 | + <img md-card-image src="a11y/card/assets/dachshund.jpg" |
| 57 | + aria-label="Dachshund"> |
| 58 | + <md-card-content> |
| 59 | + The dachshund is a short-legged, long-bodied, hound-type dog breed. |
| 60 | + </md-card-content> |
| 61 | + </md-card> |
| 62 | +</section> |
| 63 | + |
| 64 | +<section> |
| 65 | + <h2>Shiba Inu</h2> |
| 66 | + <p>Showing a card with header, content, image, and two action buttons: "share" and "like".</p> |
| 67 | + <md-card class="example-card"> |
| 68 | + <md-card-header> |
| 69 | + <img md-card-avatar src="a11y/card/assets/shiba-inu-avatar.jpg" aria-label="Shiba Inu avatar"> |
| 70 | + <md-card-title>Shiba Inu</md-card-title> |
| 71 | + <md-card-subtitle>Dog Breed</md-card-subtitle> |
| 72 | + </md-card-header> |
| 73 | + <img md-card-image src="a11y/card/assets/shiba-inu.jpg" aria-label="Shiba Inu"> |
| 74 | + <md-card-content> |
| 75 | + The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan. |
| 76 | + A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally |
| 77 | + bred for hunting. |
| 78 | + </md-card-content> |
| 79 | + <md-card-actions align="end"> |
| 80 | + <button md-button (click)="openSnackbar('Liked Shiba Inu')">like</button> |
| 81 | + <button md-button (click)="openSnackbar('Shared Shiba Inu')">share</button> |
| 82 | + </md-card-actions> |
| 83 | + </md-card> |
| 84 | + |
| 85 | +</section> |
0 commit comments