Skip to content

Commit 6e80eba

Browse files
Merge pull request #10 from JavaAmazonas/feat/footer-dynamic-year
Feat/footer dynamic year
2 parents ad9b447 + 2e5265e commit 6e80eba

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"browser": "src/main.ts",
1919
"polyfills": ["zone.js"],
2020
"tsConfig": "tsconfig.app.json",
21-
"assets": ["src/favicon.ico", "src/assets"],
21+
"assets": ["src/favicon.ico", "src/CNAME", "src/assets"],
2222
"styles": [
2323
"src/styles.css"
2424
],

src/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
javaamazonas.com.br

src/app/page/footer/footer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h3 class="mb-6 text-sm font-semibold text-gray-900 uppercase dark:text-white">D
9191
<img src="../assets/logo-java-jugle.png" class="h-6 mr-3 sm:h-9" alt="jugle Logo" />
9292
Java Amazonas
9393
</a>
94-
<span class="block text-sm text-center text-gray-500 dark:text-gray-400">© 2024-2025 Java Amazonas. Seja livre
94+
<span class="block text-sm text-center text-gray-500 dark:text-gray-400">© 2024-{{ currentYear }} Java Amazonas. Seja livre
9595
para contribuir. Built with <a href="https://tailwindcss.com/" target="_blank"
9696
class="text-green-600 hover:underline dark:text-green-500">Tailwind
9797
css</a> and <a href="https://angular.dev/" target="_blank"

src/app/page/footer/footer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import { Component, ChangeDetectionStrategy } from '@angular/core';
88
styleUrl: './footer.component.css'
99
})
1010
export class FooterComponent {
11-
11+
readonly currentYear = new Date().getFullYear();
1212
}

0 commit comments

Comments
 (0)