Skip to content

Commit

Permalink
Add attribution links
Browse files Browse the repository at this point in the history
  • Loading branch information
squix78 committed Mar 2, 2023
1 parent 752dc49 commit 21bdfbd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
15 changes: 11 additions & 4 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<mat-toolbar class="mat-elevation-z6" color="primary">
<div>&nbsp;</div>
<mat-toolbar class="mat-elevation-z6 flex-toolbar" color="primary">

<button mat-raised-button color="primary" [routerLink]="['/']">Home</button>
<button mat-raised-button color="primary" [routerLink]="['/']">
<mat-icon>home</mat-icon> Home</button>
<span>esp-iot-flasher</span>
<a href="https://github.com/ThingPulse/esp-iot-flasher" target="_blank"><span><mat-icon>share</mat-icon> Github</span></a>


</mat-toolbar>
<div class="container">
<router-outlet></router-outlet>
</div>
</div>
<footer class="flex-footer">
<span>{{getCurrentYear()}} By <a href="https://www.thingpulse.com">ThingPulse</a></span>
</footer>
22 changes: 20 additions & 2 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@

a, a:visited {
color: inherit;
text-decoration: none;
}

.container {
max-width: 800px;
margin: 4em auto;
Expand All @@ -9,10 +15,22 @@
flex-direction: column;
justify-content: center;
}

.flex-toolbar {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 16px;
}
.flex-footer {
display: flex;
justify-content: center;
flex-wrap: wrap;
padding: 16px;
}
.flex-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
padding: 16px;
}
}

4 changes: 4 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { Partition } from './shared/utils.service';
})
export class AppComponent {

getCurrentYear(): number {
return new Date().getFullYear();
}

}


0 comments on commit 21bdfbd

Please sign in to comment.