Created
October 28, 2014 10:54
-
-
Save OlavHN/f11798cf233f7661b898 to your computer and use it in GitHub Desktop.
polymer hello-world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<polymer-element name="post-card"> | |
<template> | |
<style> | |
:host { | |
display: block; | |
position: relative; | |
background-color: white; | |
padding: 20px; | |
width: 100%; | |
font-size: 1.2rem; | |
font-weight: 300; | |
} | |
.card-header { | |
margin-bottom: 10px; | |
} | |
</style> | |
<div class="card-header" layout horizontal center> | |
<content select="img"></content> | |
<content select="h2"></content> | |
</div> | |
<content></content> | |
</template> | |
</polymer-element> | |
<post-card> | |
<img src="profile-picture.png"> | |
<h2>A. Developer</h2> | |
<p>Something really profound about code.</p> | |
</post-card> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment