|
44 | 44 |
|
45 | 45 | <section class="hero">
|
46 | 46 | <div class="mdc-card demo-card">
|
47 |
| - <div class="mdc-card__media mdc-card__media--16-9 demo-card__media demo-card__media--16-9"></div> |
48 |
| - <div class="demo-card__primary"> |
49 |
| - <h2 class="demo-card__title mdc-typography--title">Our Changing Planet</h2> |
50 |
| - <h3 class="demo-card__subtitle mdc-typography--subheading1">by Kurt Wagner</h3> |
51 |
| - </div> |
52 |
| - <div class="demo-card__secondary mdc-typography--body1"> |
53 |
| - Visit ten places on our planet that are undergoing the biggest changes today. |
54 |
| - </div> |
| 47 | + <a class="mdc-card__primary-action" href="#"> |
| 48 | + <div class="mdc-card__media mdc-card__media--16-9 demo-card__media demo-card__media--16-9"></div> |
| 49 | + <div class="demo-card__primary"> |
| 50 | + <h2 class="demo-card__title mdc-typography--title">Our Changing Planet</h2> |
| 51 | + <h3 class="demo-card__subtitle mdc-typography--subheading1">by Kurt Wagner</h3> |
| 52 | + </div> |
| 53 | + <div class="demo-card__secondary mdc-typography--body1"> |
| 54 | + Visit ten places on our planet that are undergoing the biggest changes today. |
| 55 | + </div> |
| 56 | + </a> |
55 | 57 | <div class="mdc-card__actions">
|
56 | 58 | <div class="mdc-card__action-buttons">
|
57 | 59 | <button class="mdc-button mdc-card__action mdc-card__action--button">Read</button>
|
@@ -142,13 +144,15 @@ <h2 class="demo-card-article__title mdc-typography--headline">Asia's clean energ
|
142 | 144 | </div>
|
143 | 145 |
|
144 | 146 | <div class="mdc-card demo-card demo-card--photo">
|
145 |
| - <div class="mdc-card__media mdc-card__media--square demo-card__media"> |
146 |
| - <div class="mdc-card__media-content demo-card__media-content--with-title"> |
147 |
| - <div class="demo-card__media-title mdc-typography--subheading2"> |
148 |
| - Vacation Photos |
| 147 | + <a class="mdc-card__primary-action demo-card__primary-action" href="#"> |
| 148 | + <div class="mdc-card__media mdc-card__media--square demo-card__media"> |
| 149 | + <div class="mdc-card__media-content demo-card__media-content--with-title"> |
| 150 | + <div class="demo-card__media-title mdc-typography--subheading2"> |
| 151 | + Vacation Photos |
| 152 | + </div> |
149 | 153 | </div>
|
150 | 154 | </div>
|
151 |
| - </div> |
| 155 | + </a> |
152 | 156 | <div class="mdc-card__actions mdc-card__action-icons">
|
153 | 157 | <i class="mdc-icon-toggle material-icons mdc-card__action mdc-card__action--icon"
|
154 | 158 | tabindex="0"
|
@@ -179,14 +183,16 @@ <h2 class="demo-card-article__title mdc-typography--headline">Asia's clean energ
|
179 | 183 | </div>
|
180 | 184 |
|
181 | 185 | <div class="mdc-card demo-card demo-card--music">
|
182 |
| - <div class="demo-card__music-row"> |
183 |
| - <div class="mdc-card__media mdc-card__media--square demo-card__media demo-card__media--music"></div> |
184 |
| - <div class="demo-card__music-info"> |
185 |
| - <div class="demo-card__music-title mdc-typography--headline">Rozes</div> |
186 |
| - <div class="demo-card__music-artist mdc-typography--body1">Under the Grave</div> |
187 |
| - <div class="demo-card__music-year mdc-typography--body1">(2016)</div> |
| 186 | + <a class="mdc-card__primary-action demo-card__primary-action" href="#"> |
| 187 | + <div class="demo-card__music-row"> |
| 188 | + <div class="mdc-card__media mdc-card__media--square demo-card__media demo-card__media--music"></div> |
| 189 | + <div class="demo-card__music-info"> |
| 190 | + <div class="demo-card__music-title mdc-typography--headline">Rozes</div> |
| 191 | + <div class="demo-card__music-artist mdc-typography--body1">Under the Grave</div> |
| 192 | + <div class="demo-card__music-year mdc-typography--body1">(2016)</div> |
| 193 | + </div> |
188 | 194 | </div>
|
189 |
| - </div> |
| 195 | + </a> |
190 | 196 | <hr class="mdc-list-divider">
|
191 | 197 | <div class="mdc-card__actions">
|
192 | 198 | <div class="mdc-card__action-buttons demo-card__action-buttons--text-only">Rate this album</div>
|
@@ -256,6 +262,10 @@ <h2 class="demo-card-article__title mdc-typography--headline">Asia's clean energ
|
256 | 262 | [].forEach.call(document.querySelectorAll('.mdc-ripple-surface'), function(surface) {
|
257 | 263 | mdc.ripple.MDCRipple.attachTo(surface);
|
258 | 264 | });
|
| 265 | + |
| 266 | + [].forEach.call(document.querySelectorAll('.mdc-card__primary-action'), function(el) { |
| 267 | + mdc.ripple.MDCRipple.attachTo(el); |
| 268 | + }); |
259 | 269 | });
|
260 | 270 | </script>
|
261 | 271 | </body>
|
|
0 commit comments