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

Home page: Rebuild card blocks on home page using Feature node type and view. #1082

Open
jenlampton opened this issue Feb 28, 2025 · 1 comment
Assignees

Comments

@jenlampton
Copy link
Member

jenlampton commented Feb 28, 2025

I would like the cards in the hero region to be a View of the "Feature" node type:

Image

Wes already provided great markup and CSS to make this look fab, so I've built a view that generates almost exactly the same markup - It's is pretty close!

Image

I'm having a little trouble getting the More link to look right, so going to turn it back over to him for further cleanup.

Chnges include:

  • New config for a view named home-cards
  • New views template views-view--home-cards.tpl.php
  • Changes to the Home page layout config, to place the new block

Commits containing changes (since they were not sequential)

  • 9ecdde9 - adds cards view and template
  • e69ed78 - CSS change made the hero region background black, and applied more-link styles
  • 03089fd - Rename the template file so that it will only affect the block display of the view
  • 117151d2 - switched machine name for view (since we already had a view for this)
@jenlampton jenlampton changed the title Rebuild card blocks on home page using Feature node type and view. Home page: Rebuild card blocks on home page using Feature node type and view. Feb 28, 2025
@jenlampton
Copy link
Member Author

I switched the icons over to using the Icon API (and deleted the duplicate svg files from the theme) in a1b5ca4. I left the old class names in the CSS file so both displays will keep working with the core icons.

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

No branches or pull requests

2 participants