Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded to Polymer 2.0, added googleplus link #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 61 additions & 57 deletions behance-link.html
Original file line number Diff line number Diff line change
@@ -1,67 +1,71 @@
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="social-link-behavior.html">

<!--
`behance-link`
@demo demo/index.html
Sample usage of this element
Example:
<behance-link></behance-link>
Example:
<behance-link>
<h2>Hello behance-link</h2>
</behance-link>
@demo demo/index.html
-->

<dom-module id="behance-link">
<template>
<style>
:host {
display: inline-block;
}
a{
text-decoration: none;
color: black;
}
a:hover{
text-decoration: underline;
color: black;
}
.container {
cursor: hand;
cursor: pointer;
@apply(--layout-horizontal);
}
p {
margin: 0px 0px 0px 5px;
@apply(--layout-flex-none)
}
</style>

<a href="{{href}}" target="_blank" style="color:{{color}}">
<div class="container">

<svg viewBox="0 0 26.01 16.26" style="height:{{height}};fill:{{color}}; padding-left: 15px">
<path id="Behance" d="M23.92,2.82H17.46V1.21h6.47V2.82h0ZM13.15,9.4a4.25,4.25,0,0,1,.63,2.35,4.68,4.68,0,0,1-.71,2.56,4.44,4.44,0,0,1-1.14,1.26,4.39,4.39,0,0,1-1.81.81,11.2,11.2,0,0,1-2.27.22H0.62V0.54H8.37c2,0,3.34.6,4.16,1.71a4.09,4.09,0,0,1,.73,2.45,3.57,3.57,0,0,1-.74,2.36A3.79,3.79,0,0,1,11.3,8,3.57,3.57,0,0,1,13.15,9.4ZM4.32,6.87h3.4a3.22,3.22,0,0,0,1.7-.4,1.52,1.52,0,0,0,.65-1.41,1.44,1.44,0,0,0-.86-1.48,6.07,6.07,0,0,0-1.9-.25h-3V6.87Zm6.07,4.65a1.72,1.72,0,0,0-1-1.72,4,4,0,0,0-1.61-.27H4.32v4.28H7.71a3.77,3.77,0,0,0,1.63-.28A2,2,0,0,0,10.4,11.52ZM26.32,8.91a15.1,15.1,0,0,1,.1,2.28H18a2.75,2.75,0,0,0,1.2,2.43,3,3,0,0,0,1.66.43,2.34,2.34,0,0,0,2.29-1.32h3.07a3.74,3.74,0,0,1-1.11,2.08,5.59,5.59,0,0,1-4.33,1.68,6.28,6.28,0,0,1-4.05-1.42Q15,13.66,15,10.47A6.23,6.23,0,0,1,16.6,5.89a5.55,5.55,0,0,1,4.11-1.6,6.56,6.56,0,0,1,2.7.54,4.66,4.66,0,0,1,2,1.7A5.68,5.68,0,0,1,26.32,8.91Zm-3,.3a2.51,2.51,0,0,0-.8-1.82,2.62,2.62,0,0,0-1.78-.62,2.38,2.38,0,0,0-1.79.66,3.1,3.1,0,0,0-.8,1.78H23.3Z" transform="translate(-0.52 -0.44)" style="stroke:#000;stroke-miterlimit:10;stroke-width:0.20000000298023224px"/>
</svg>


<template is="dom-if" if="{{text}}">
<p style="color:{{color}}; font-size: {{height}};">Behance<p>
</template>
</div>
</a>

</template>

<script>
Polymer({

is: 'behance-link',
behaviors: [
SocialLinkBehavior
],

properties: {
color: {
value: "#1769ff"
<template>
<style>
:host {
display: inline-block;
}
a{
text-decoration: none;
color: black;
}
a:hover{
text-decoration: underline;
color: black;
}
.container {
cursor: hand;
cursor: pointer;
@apply(--layout-horizontal);
}
p {
margin: 0px 0px 0px 5px;
@apply(--layout-flex-none)
}
</style>

<a href="{{href}}" target="_blank" style="color:{{color}}">
<div class="container">

<svg viewBox="0 0 26.01 16.26" style="height:{{height}};fill:{{color}}; padding-left: 15px">
<path id="Behance" d="M23.92,2.82H17.46V1.21h6.47V2.82h0ZM13.15,9.4a4.25,4.25,0,0,1,.63,2.35,4.68,4.68,0,0,1-.71,2.56,4.44,4.44,0,0,1-1.14,1.26,4.39,4.39,0,0,1-1.81.81,11.2,11.2,0,0,1-2.27.22H0.62V0.54H8.37c2,0,3.34.6,4.16,1.71a4.09,4.09,0,0,1,.73,2.45,3.57,3.57,0,0,1-.74,2.36A3.79,3.79,0,0,1,11.3,8,3.57,3.57,0,0,1,13.15,9.4ZM4.32,6.87h3.4a3.22,3.22,0,0,0,1.7-.4,1.52,1.52,0,0,0,.65-1.41,1.44,1.44,0,0,0-.86-1.48,6.07,6.07,0,0,0-1.9-.25h-3V6.87Zm6.07,4.65a1.72,1.72,0,0,0-1-1.72,4,4,0,0,0-1.61-.27H4.32v4.28H7.71a3.77,3.77,0,0,0,1.63-.28A2,2,0,0,0,10.4,11.52ZM26.32,8.91a15.1,15.1,0,0,1,.1,2.28H18a2.75,2.75,0,0,0,1.2,2.43,3,3,0,0,0,1.66.43,2.34,2.34,0,0,0,2.29-1.32h3.07a3.74,3.74,0,0,1-1.11,2.08,5.59,5.59,0,0,1-4.33,1.68,6.28,6.28,0,0,1-4.05-1.42Q15,13.66,15,10.47A6.23,6.23,0,0,1,16.6,5.89a5.55,5.55,0,0,1,4.11-1.6,6.56,6.56,0,0,1,2.7.54,4.66,4.66,0,0,1,2,1.7A5.68,5.68,0,0,1,26.32,8.91Zm-3,.3a2.51,2.51,0,0,0-.8-1.82,2.62,2.62,0,0,0-1.78-.62,2.38,2.38,0,0,0-1.79.66,3.1,3.1,0,0,0-.8,1.78H23.3Z" transform="translate(-0.52 -0.44)" style="stroke:#000;stroke-miterlimit:10;stroke-width:0.20000000298023224px"/>
</svg>


<template is="dom-if" if="{{text}}">
<p style="color:{{color}}; font-size: {{height}};">Behance<p>
</template>
</div>
</a>

</template>
<script>
class BehanceLink extends Polymer.mixinBehaviors([SocialLinkBehavior],Polymer.Element){
static get is(){ return 'behance-link';}
static get properties() {
return {
color: {
type: String,
value: '#1769ff'
},
};
}

});
</script>
}
customElements.define(BehanceLink.is,BehanceLink);
</script>
</dom-module>

12 changes: 6 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"main": "social-links.html",
"version": "0.0.2",
"dependencies": {
"polymer": "Polymer/polymer#^1.4.0",
"iron-flex-layout": "^1.3.1"
"polymer": "Polymer/polymer#^2.0.0",
"iron-flex-layout": "^2.0.0"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^2.0.0",
"web-component-tester": "Polymer/web-component-tester#^6.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0",
"iron-component-page": "PolymerElements/iron-component-page#^3.0.1"
}
}
112 changes: 60 additions & 52 deletions convoo-link.html
Original file line number Diff line number Diff line change
@@ -1,66 +1,74 @@
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="social-link-behavior.html">

<!--
`convoo-link`
@demo demo/index.html
Sample usage of this element
Example:
<convoo-link></convoo-link>
Example:
<convoo-link>
<h2>Hello convoo-link</h2>
</convoo-link>
@demo demo/index.html
-->

<dom-module id="convoo-link">
<template>
<style>
:host {
display: inline-block;
}
a{
text-decoration: none;
color: black;
}
a:hover{
text-decoration: underline;
color: black;
}
.container {
cursor: hand;
cursor: pointer;
@apply(--layout-horizontal);
}
p {
margin: 0px 0px 0px 5px;
@apply(--layout-flex-none)
}
</style>
<template>
<style>
:host {
display: inline-block;
}

<a href="{{href}}" target="_blank" style="color:{{color}}">
<div class="container">
a {
text-decoration: none;
color: black;
}

<svg viewBox="0 0 16.23 16.33" style="height:{{height}};fill:{{color}}; padding-left: 15px">
<path d="M0.37,8.79a10.13,10.13,0,0,1,1.51-5.6c1.3-2,3.61-3.35,6-2.61S11.8,3.65,12.37,6c0.31,1.24.14,2.54,0.45,3.77a2.14,2.14,0,0,0,.91,1.45,1,1,0,0,0,.8-0.06,3.36,3.36,0,0,1,.68.1c0.19,0,.07.09,0.14,0a4.92,4.92,0,0,0-.08-0.64,3.8,3.8,0,0,1,.13-1.11,5.1,5.1,0,0,0,0-2.2c-0.15-.59-0.51-1.55-1.25-1.56a1.07,1.07,0,0,0-.83.52C13.21,6.37,12.91,7,12.9,7s-0.43-2-.49-2.15a4.31,4.31,0,0,1-.37-1,1.53,1.53,0,0,1,.66-0.71c1.44-1,2.7.5,3.22,1.75a9.22,9.22,0,0,1-.41,7.87c-0.8,1.27-2.22,1.76-3.32.54a6.84,6.84,0,0,1-1.41-4c-0.11-1.44-.08-2.84-1.15-4a2.38,2.38,0,0,0-3.54,0A4.84,4.84,0,0,0,5,9.6c0.13,0.63.51,1.16,0.63,1.78a2.83,2.83,0,0,1-.05,1.08,4.54,4.54,0,0,0-.23,1c0.53-.25,1-0.59,1.56-0.84a8,8,0,0,1,1.42-.22,2.64,2.64,0,0,0,1.15-.68A3.61,3.61,0,0,0,10.09,11a8.33,8.33,0,0,1,.36-0.78s0.25,1.21.28,1.33a7.45,7.45,0,0,0,.46,1.22,1.49,1.49,0,0,1,.27.59,2.21,2.21,0,0,1-.39.65,7.2,7.2,0,0,1-1,1.15,5.05,5.05,0,0,1-5.19,1.32,6.51,6.51,0,0,1-3.49-3.27A9.53,9.53,0,0,1,.6,10.77c-0.07-.31-0.11-0.63-0.15-1a3.94,3.94,0,0,0-.08-1C0.37,8.64.38,8.81,0.37,8.79Z" transform="translate(-0.37 -0.38)"/>
</svg>
a:hover {
text-decoration: underline;
color: black;
}

<template is="dom-if" if="{{text}}">
<p style="color:{{color}}; font-size: {{height}};">Convoo<p>
</template>
</div>
</a>
.container {
cursor: hand;
cursor: pointer;
@apply(--layout-horizontal);
}

</template>
p {
margin: 0px 0px 0px 5px;
@apply(--layout-flex-none)
}
</style>

<script>
Polymer({
<a href="{{href}}" target="_blank" style="color:{{color}}">
<div class="container">

is: 'convoo-link',
behaviors: [
SocialLinkBehavior
],
properties: {
color: {
value: "#b03142"
}
}
<svg viewBox="0 0 16.23 16.33" style="height:{{height}};fill:{{color}}; padding-left: 15px">
<path d="M0.37,8.79a10.13,10.13,0,0,1,1.51-5.6c1.3-2,3.61-3.35,6-2.61S11.8,3.65,12.37,6c0.31,1.24.14,2.54,0.45,3.77a2.14,2.14,0,0,0,.91,1.45,1,1,0,0,0,.8-0.06,3.36,3.36,0,0,1,.68.1c0.19,0,.07.09,0.14,0a4.92,4.92,0,0,0-.08-0.64,3.8,3.8,0,0,1,.13-1.11,5.1,5.1,0,0,0,0-2.2c-0.15-.59-0.51-1.55-1.25-1.56a1.07,1.07,0,0,0-.83.52C13.21,6.37,12.91,7,12.9,7s-0.43-2-.49-2.15a4.31,4.31,0,0,1-.37-1,1.53,1.53,0,0,1,.66-0.71c1.44-1,2.7.5,3.22,1.75a9.22,9.22,0,0,1-.41,7.87c-0.8,1.27-2.22,1.76-3.32.54a6.84,6.84,0,0,1-1.41-4c-0.11-1.44-.08-2.84-1.15-4a2.38,2.38,0,0,0-3.54,0A4.84,4.84,0,0,0,5,9.6c0.13,0.63.51,1.16,0.63,1.78a2.83,2.83,0,0,1-.05,1.08,4.54,4.54,0,0,0-.23,1c0.53-.25,1-0.59,1.56-0.84a8,8,0,0,1,1.42-.22,2.64,2.64,0,0,0,1.15-.68A3.61,3.61,0,0,0,10.09,11a8.33,8.33,0,0,1,.36-0.78s0.25,1.21.28,1.33a7.45,7.45,0,0,0,.46,1.22,1.49,1.49,0,0,1,.27.59,2.21,2.21,0,0,1-.39.65,7.2,7.2,0,0,1-1,1.15,5.05,5.05,0,0,1-5.19,1.32,6.51,6.51,0,0,1-3.49-3.27A9.53,9.53,0,0,1,.6,10.77c-0.07-.31-0.11-0.63-0.15-1a3.94,3.94,0,0,0-.08-1C0.37,8.64.38,8.81,0.37,8.79Z"
transform="translate(-0.37 -0.38)" />
</svg>

<template is="dom-if" if="{{text}}">
<p style="color:{{color}}; font-size: {{height}};">Convoo
<p>
</template>
</div>
</a>

});
</script>
</dom-module>
</template>
<script>
class ConvooLink extends Polymer.mixinBehaviors([SocialLinkBehavior], Polymer.Element) {
static get is() { return 'convoo-link'; }
static get properties() {
return {
color: {
type: String,
value: '#b03142'
}
};
}
}
customElements.define(ConvooLink.is, ConvooLink);
</script>
</dom-module>
4 changes: 4 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<link rel="import" href="../dribbble-link.html">
<link rel="import" href="../convoo-link.html">
<link rel="import" href="../snapchat-link.html">
<link rel="import" href="../googleplus-link.html">
<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">

<style is="custom-style" include="demo-pages-shared-styles">
Expand Down Expand Up @@ -54,6 +55,7 @@ <h3>Minimal social-link demo</h3>
<social-link network="github" href="https://www.github.com/@bkawk" height="15px" color="grey"></social-link>
<social-link network="instagram" href="https://www.instagram.com/@bkawk" height="15px" color="grey"></social-link>
<social-link network="dribbble" href="https://www.dribbble.com/@bkawk" height="15px" color="grey"></social-link>
<social-link network="googleplus" href="https://www.plus.google.com/@bkawk" height="15px" color="grey"></social-link>
</div>
</template>
</demo-snippet>
Expand All @@ -75,6 +77,7 @@ <h3>Default colors social-links demo</h3>
<github-link href="https://www.github.com/@bkawk" height="15px"></github-link>
<instagram-link href="https://www.instagram.com/@bkawk" height="15px"></instagram-link>
<dribbble-link href="https://www.dribbble.com/@bkawk" height="15px"></dribbble-link>
<googleplus-link href="https://www.plus.google.com/@bkawk" height="15px"></googleplus-link>
</div>
</template>
</demo-snippet>
Expand All @@ -96,6 +99,7 @@ <h3>Minimal social-links demo</h3>
<github-link href="https://www.github.com/@bkawk" height="15px" color="grey"></github-link>
<instagram-link href="https://www.instagram.com/@bkawk" height="15px" color="grey"></instagram-link>
<dribbble-link href="https://www.dribbble.com/@bkawk" height="15px" color="grey"></dribbble-link>
<googleplus-link href="https://www.plus.google.com/@bkawk" height="15px" color="grey"></googleplus-link>
</div>
</template>
</demo-snippet>
Expand Down
Loading