Instantly share code, notes, and snippets.
-
cloud engineering studio
-
14:43
(UTC -04:00) - https://cloudengineering.studio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="social-media" [ngClass]="{'vertical':vertical}"> | |
<div *ngIf="facebook" class="social-media-icon"> | |
<a [href]="facebookLink + facebook.link" target="_blank" rel="noopener" title="view {{ facebook.user }} on facebook"><ces-svg-facebook></ces-svg-facebook></a> | |
</div> | |
<div *ngIf="twitter" class="social-media-icon"> | |
<a [href]="twitterLink + twitter.link" target="_blank" rel="noopener" title="view {{ twitter.user }} on twitter"><ces-svg-twitter></ces-svg-twitter></a> | |
</div> | |
<div *ngIf="linkedIn" class="social-media-icon"> | |
<a *ngIf="linkedIn.company; else altLinkedIn" [href]="linkedInLinkCompany + linkedIn.link" target="_blank" rel="noopener" title="view {{ linkedIn.user }} on twitter"><ces-svg-linkedin></ces-svg-linkedin></a> | |
<ng-template #altLinkedIn> |
yokoishioka
/ footer.component.html
Created
February 6, 2020 01:14
footer for social media component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<footer> | |
<ces-social-media ngClass="social-media-footer" [facebook]="{link: 'cloudengineeringstudio', user: 'Cloud Engineering Studio' }" [twitter]="{link: 'CloudEngineeer', user: 'CloudEngineer'}" [linkedIn]="{link: 'cloud-engineering-studio', user: 'Cloud Engineering Studio', company: true}" [medium]="{link:'yoko_65687', user: 'Yoko Ishioka'}"></ces-social-media> | |
© {{ startYear }} - {{ year }} Cloud Engineering Studio by, <a href="https://yokoishioka.com" title="Yoko Ishioka Cloud Engineering Website">Yoko Ishioka</a> | | |
<a routerLink="privacy-policy" routerLinkActive="active" title="{{ name }}'s Privacy Policy">privacy policy</a> | |
</footer> |
yokoishioka
/ footer.component.html
Last active
April 2, 2021 13:57
Social Media component in Angular
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<footer> | |
<ces-social-media ngClass="social-media-footer" [facebook]="{link: 'cloudengineeringstudio', user: 'Cloud Engineering Studio' }" [twitter]="{link: 'CloudEngineeer', user: 'CloudEngineer'}" [linkedIn]="{link: 'cloud-engineering-studio', user: 'Cloud Engineering Studio', company: true}" [medium]="{link:'yoko_65687', user: 'Yoko Ishioka'}"></ces-social-media> | |
© {{ startYear }} - {{ year }} Cloud Engineering Studio by, <a href="https://yokoishioka.com" title="Yoko Ishioka Cloud Engineering Website">Yoko Ishioka</a> | | |
<a routerLink="privacy-policy" routerLinkActive="active" title="{{ name }}'s Privacy Policy">privacy policy</a> | |
</footer> |
NewerOlder