How to add border on top of cards

Hello all,

I just want to add some borders on top of a basic card element like you see on the main page. I did try mine but it cuts off on each side. Are there any snippets on adding a top border on the card that is as wide as the card ?

I am also intrested in this. Is the Ionic View app open source? It looks nice, and I would like to see how they made it.