Skip to content

Commit

Permalink
improve footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Sep 28, 2024
1 parent 73f8bec commit 5ead1ed
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions postrify-frontend/src/app/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ import packageJson from '../../../../package.json';
template: `
<footer class="footer">
<div class="version-date">
<span>Version: {{ version }}</span> -
<span>{{ currentDate }}</span>
<p>v{{ version }} &copy; {{ currentYear }} Postrify</p>
<p>
Licensed under
<a href="https://github.com/jorbush/postrify/blob/main/LICENSE"
>Apache 2.0</a
>
</p>
</div>
<div class="social-icons">
<a href="mailto:[email protected]" aria-label="Email">
Expand Down Expand Up @@ -162,10 +167,14 @@ import packageJson from '../../../../package.json';
transform: scale(1.2);
stroke: var(--primary-color-hover);
}
a {
text-decoration: none;
}
`,
],
})
export class FooterComponent {
version: string = packageJson.version;
currentDate: string = new Date().toLocaleDateString();
currentYear: string = new Date().getFullYear().toString();
}

0 comments on commit 5ead1ed

Please sign in to comment.