Skip to content

Instantly share code, notes, and snippets.

@OlavHN
Created October 28, 2014 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OlavHN/f11798cf233f7661b898 to your computer and use it in GitHub Desktop.
Save OlavHN/f11798cf233f7661b898 to your computer and use it in GitHub Desktop.
polymer hello-world
<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