Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add paper-card title components #307

Merged

Conversation

baileymiller182
Copy link
Contributor

Adds a few components to expand potential layouts of paper-card by providing analogs of the card title components found in Angular Material (https://material.angularjs.org/latest/demo/card):

  • paper-card-title: Can be used in place of, or in conjunction with, paper-card-content to display card title text and images.
  • paper-card-title-text: Displays some title text.
  • paper-card-title-media: Displays a title image in the upper right corner of the card.

Example:

{{#paper-card class="card-lg-media-demo"}}
  {{#paper-card-title}}
    {{#paper-card-title-text}}
      <h2>Paracosm</h2>
      <p>The titles of Washed Out's breakthrough song and the first single from Paracosm share the...</p>
    {{/paper-card-title-text}}
    {{#paper-card-title-media}}
      <img class="md-media-lg" src="washedout.png">
    {{/paper-card-title-media}}
  {{/paper-card-title}}
  <div class="md-actions" layout="row" layout-align="end center">
    {{#paper-button}}Action 1{{/paper-button}}
    {{#paper-button}}Action 2{{/paper-button}}
  </div>
{{/paper-card}}

Would produce the following (from updated docs)

image

@miguelcobain
Copy link
Owner

Looks good, @baileymiller182

We just need to update the template snippet at tests/dummy/app/templates/card.hbs and add a changelog entry.

Can you please do it?

@baileymiller182
Copy link
Contributor Author

@miguelcobain Sure, this is done.

@miguelcobain
Copy link
Owner

@baileymiller182 0.2.11 is released. The changelog entry would have to be under a #master version, for example.

@baileymiller182
Copy link
Contributor Author

👍

@miguelcobain miguelcobain merged commit 68cd262 into miguelcobain:master Mar 9, 2016
@miguelcobain
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants