diff --git a/src/app/components/socialShare/socialShare.directive.js b/src/app/components/socialShare/socialShare.directive.js new file mode 100644 index 0000000..cfe2223 --- /dev/null +++ b/src/app/components/socialShare/socialShare.directive.js @@ -0,0 +1,33 @@ +(function() { + 'use strict'; + + angular + .module('dialoga') + .directive('socialShare', socialShare); + + /** @ngInject */ + function socialShare() { + var directive = { + restrict: 'E', + templateUrl: 'app/components/socialShare/socialShare.html', + scope: { + display: '=' + }, + controller: SocialShareController, + controllerAs: 'vm', + bindToController: true + }; + + return directive; + + /** @ngInject */ + function SocialShareController($log) { + $log.debug('SocialShareController'); + + var vm = this; + + vm.displayFull = (vm.display && vm.display === 'full'); + } + } + +})(); diff --git a/src/app/components/socialShare/socialShare.html b/src/app/components/socialShare/socialShare.html new file mode 100644 index 0000000..efe6c79 --- /dev/null +++ b/src/app/components/socialShare/socialShare.html @@ -0,0 +1,43 @@ +
+ +

+ COMPARTILHE +
+ ESTE PROGRAMA +

+ +
+ + diff --git a/src/app/components/socialShare/socialShare.scss b/src/app/components/socialShare/socialShare.scss new file mode 100644 index 0000000..bbb0890 --- /dev/null +++ b/src/app/components/socialShare/socialShare.scss @@ -0,0 +1,28 @@ +.social-share { + ul { + display: inline-block; + vertical-align: middle; + list-style: none; + padding-left: 0; + } + + li{ + display: inline-block; + padding: 0 2px !important; + vertical-align: top; + } + + .social-share--description { + display: inline-block; + color: #000; + font-size: 12px; + font-weight: 300; + padding-right: 10px; + text-align: right; + vertical-align: middle; + } + + .icon { + display: block; + } +} -- libgit2 0.21.2