Skip to content

Instantly share code, notes, and snippets.

@gsans
Last active May 9, 2019 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsans/7a612479dcbe907640e9182213c47765 to your computer and use it in GitHub Desktop.
Save gsans/7a612479dcbe907640e9182213c47765 to your computer and use it in GitHub Desktop.
Angular Logo
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-angular-logo',
template: `
<div class="logo">
<a href="http://angular.io" target="_blank" alt="Angular">
<svg>
<style type="text/css">.st0 { fill: #DD0031; } .st1 { fill: #C3002F; } .st2 { fill: #FFFFFF; }</style>
<g>
<polygon class="st0" points="125,30 125,30 125,30 31.9,63.2 46.1,186.3 125,230 125,230 125,230 203.9,186.3 218.1,63.2 "
/>
</g>
</svg>
</a>
</div>
`,
style: [`
.logo {
top: 7%;
left: 2%;
width: 20%;
position: absolute;
}
@media (max-width: 780px) {
.logo {
right: 10%;
width: 20%;
}
}
`]
})
export class AngularLogoComponent { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment