-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-page-header.html
66 lines (59 loc) · 1.8 KB
/
demo-page-header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../content-editor/content-editor.html">
<dom-module id="demo-page-header">
<template>
<link href="https://fonts.googleapis.com/css?family=Cabin+Sketch|Caveat|Pompiere" rel="stylesheet">
<style>
:host {
margin: 0;
padding: 50px;
background: cadetblue;
text-align: center;
display: block;
font-family: 'Pompiere', cursive;
}
img {
height: 200px;
}
h1 {
font-size: 180px;
margin: 0;
font-family: 'Cabin Sketch', cursive;
}
p {
font-family: 'Pompiere', cursive;
font-size: 60px;
}
</style>
<img src$="[[src]]" alt$="[[alt]]" is-content="attr" content-id="image-url" content-attr="src, alt">
<h1 is-content="inline" content-id="heading">Header</h1>
<div is-content="wsywig" content-id="paragraphs">
<p>Paragraphs</p>
</div>
</template>
<script>
Polymer({
is: 'demo-page-header',
properties: {
src: {
type: String,
value: '',
notify: true
},
alt: {
type: String,
value: '',
notify: true
},
usercontent: {
type: Object,
notify: true,
reflectToAttribute: false
}
},
behaviors: [
ContentEditorBehavior
],
});
</script>
</dom-module>