Cards - The University of Pennsylvania Component Guide
Article Cards
Example of a featured article card
Example of a standard article card
A roadblock for disease-causing parasites
Notes
- The picture element is used on the standard article card and a transparent png is the default for these cards as the image is not shown until desktop. This prevents loading images that are hidden.
- Article Cards are used inside of Featured News
Code
article-card.html
Card
Penn Center for Innovation (PCI)
Every day, research activities at Penn result in exciting scientific breakthroughs and technological advances that have commercial potential. PCI works in partnership with Penn faculty, staff and students to advance these discoveries and ideas towards new products, services and/or businesses that provide benefits back to Penn, its inventors and society.
Visit PCI
Center for Undergraduate Research and Fellowships (CURF)
As one of the world’s leading research universities, Penn has an array of faculty conducting cutting-edge research in all disciplines. The Center for Undergraduate Research & Fellowships helps Penn undergraduates become involved in research by teaching them how to identify resources, narrow their searches, and shape their initial inquiries in order to find appropriate faculty mentors and research funding.
Visit CURF
Special Exhibition Moundbuilders
Aug. 1, 2017-Dec. 2, 2019 Penn Museum, 3260 South StreetAenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Penn Spectrum Weekend
Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
DateNotes
- Card--large and card--small classes control various sizing styles when used within the listing layout.
- Cards can also account for dates, location, and author as seen in the bottom two examples.
Code
card.html
Event Cards
Event category is a link
Event
Martin Luther King, Jr. Symposium
Join us in celebrating the life of Dr. Martin Luther King, Jr., through acts of service Category: Campus and Community
Event category is not a link
Event
Honour Mack
Honour Mack, a painter and professor at Maine College of Art, discusses her work.
Event has no image
Frankenthaler on Paper
This exhibition showcases 10 soak-stain paintings on paper from abstract artist Helen Frankenthaler, plus 17 prints. Works date from the 1970s to 1990s and are rarely displayed.
Notes
- The category of an event can be a link to a listing page, but not required
- Cards without images need an additional class of event-card--no-image
Code
event-card.html
Faculty Card
Sara “Sally” Bachman
PH.D., Dean School of Social Policy & Practice 3701 Locust Walk/6214 215.898.5511Code
faculty-card.html
Featured Initiative Card
The Power of Penn
The Power of Penn Campaign is about opportunity that transforms lives, ideas that spark solutions, and action that changes the world.
The Power of PennPennCOMPACT2022
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et velit nisl. Vestibulum ante ipsum primis in faucibus orci luctus.
PennCompact2022Notes
- Default color is blue
- Red cards have a modifier class of featured-initiative-card--red
- Cards can have text of image for the title (see Featured Story example)
- For SEO purposes we recommend visually hiddent text that is accessible to assitive technology instead of the alt attribute for images used as a title (due to one off fonts)
Code
featured-initiative-card.html
Gallery Card
optional image caption
Notes
- Used in Content Gallery layout.
- Can be a single image or contained within a slider.
Code
gallery-card.html
Grid Card
4:3 Aspect Ratio
Penn Museum
Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec id elit non mi porta gravida at eget metus.
2:3 Aspec Ratio
Institute of Contemporary Art
Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec id elit non mi porta gravida at eget metus.
Plain modifier class
Undergraduate Student Lunch
September 18, 2019
Notes
- Used in Grid layout.
- Display is styled for either three or four items in a row.
- Recommend either a 2:3 or 4:3 aspect ratio.
- Picture element is used to control image size as the card layout does change responsively.
- grid-card--plain modifier class will remove the border when in grid layout
Code
grid-card.html
Listing Card
Page Hero child page listing layout
Introduction to Penn
Lorem justo odio, dapibus ac facilisis in, egestas eget quam. Vivamus sagittis lacus vel augue.
Article listing layout
Penn Spectrum Weekend
Vestibulum id ligula porta felis euismod semper. Nulla vitae elit libero, a pharetra augue. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
Date
Notes
- Hero listing have a modifier class of listing-card--small
Code
listing-card.html
Priority Card
Notes
- Card is used in the Penn Priorities slider
Code
priority-card.html
Social Cards
Notes
- Card is used in the social grid
- Cards are in a slider under 1024 pixels
- Instargram cards show more information on hover