Skip to content

Instantly share code, notes, and snippets.

@yokoishioka
Last active February 6, 2020 01:20
Show Gist options
  • Save yokoishioka/5c2f57cf8fd5a2ec594a0ce176562b3b to your computer and use it in GitHub Desktop.
Save yokoishioka/5c2f57cf8fd5a2ec594a0ce176562b3b to your computer and use it in GitHub Desktop.
social media component
import { Component, Input } from '@angular/core';
import { SocialMedia } from './social-media';
@Component({
selector: 'ces-social-media',
templateUrl: './social-media.component.html',
styleUrls: ['./social-media.component.scss']
})
export class SocialMediaComponent {
@Input() facebook:SocialMedia;
@Input() twitter:SocialMedia;
@Input() linkedIn:SocialMedia;
@Input() medium:SocialMedia;
@Input() vertical:boolean = true;
facebookLink:string = "https://www.facebook.com/";
twitterLink:string = "https://twitter.com/";
linkedInLink:string = "https://www.linkedin.com/";
linkedInLinkCompany:string = "https://www.linkedin.com/company/"
mediumLink:string = "https://medium.com/@";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment