-
Notifications
You must be signed in to change notification settings - Fork 1
/
poly-me.html
82 lines (65 loc) · 1.73 KB
/
poly-me.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-ajax/iron-ajax.html">
<link rel="import" href="poly-me-render.html">
<!--
`poly-me`
A web based resume using polymer. You can add your information in a .json file
and link to it as follows:
Example:
```
<poly-me src="john.json"></poly-me>
```
The `.json` file structure should be as follows:
```
{
"content": {
"name": "Your name",
"profileImage": "path to profile image",
"backgroundImage": "path to background image",
"position": "Your position or title",
"location": "Your location",
"social": {
"title": "a title to the social section underneath the profile info",
"profiles": [
{
"network": "the icon name from the font awesome cheatsheet see http://fontawesome.io/icons/#brand",
"link": "the link to go to when clicked"
},...
]
},
"sections": [
// See each section's definition
]
},
"settings": {
"primaryColor": "The hex value of the primary color for the app - use something close to the background image colors"
}
}
```
Section types are available as separate components with their own documentation.
Please see each section's documentation for more information.
@demo demo/index.html
-->
<dom-module id="poly-me">
<template>
<iron-ajax
auto
url="[[src]]"
handle-as="json"
last-response="{{data}}"></iron-ajax>
<poly-me-render data="[[data]]"></poly-me-render>
</template>
<script>
Polymer({
is: 'poly-me',
properties: {
/**
* The path to the json file with the profile data
*/
src: {
type: String
}
}
});
</script>
</dom-module>