Skip to content

Commit

Permalink
feat: translations for home and navigation
Browse files Browse the repository at this point in the history
- Remove version picker
- Translations for home and navigation
- Remove git patches for translations
- Update copyTargets on update-origin.mjs
- Create files for home, footer, navigation and links
  • Loading branch information
ricardochl committed Jun 4, 2024
1 parent 2d26693 commit c5fce47
Show file tree
Hide file tree
Showing 8 changed files with 651 additions and 126 deletions.
5 changes: 5 additions & 0 deletions adev-es/src/app/core/constants/links.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const GITHUB = 'https://github.com/angular-hispano/angular-docs-es';
export const X = 'https://x.com/AngularHispana';
export const DISCORD = 'https://discord.com/invite/4cWb6SKUcb';
export const MEDIUM = '';
export const YOUTUBE = '';
71 changes: 71 additions & 0 deletions adev-es/src/app/core/layout/footer/footer.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<div class="adev-footer-container">
<div class="adev-footer-columns">
<div>
<h2>Redes Sociales</h2>
<ul>
<li>
<a [href]="X" title="X (formerly Twitter)">X (antes Twitter)</a>
</li>
<li>
<a
[href]="DISCORD"
title="Únase a las discusiones en el servidor Angular Community Discord."
>
Discord
</a>
</li>
<li>
<a [href]="GITHUB" title="GitHub">GitHub</a>
</li>
</ul>
</div>
<div>
<h2>Comunidad</h2>
<ul>
<li>
<a
href="https://github.com/angular-hispano/angular-docs-es/blob/main/CONTRIBUTING.md"
title="Contribuir al proyecto"
>
Contribuir
</a>
</li>
<li>
<a
href="https://angular.lat/coc"
title="Tratarnos unos a otros con respeto."
>
Codigo de coducta
</a>
</li>
<li>
<a
href="https://github.com/angular-hispano/angular-docs-es/issues"
title="Publique problemas y sugerencias en github."
>
Reportar problemas
</a>
</li>
</ul>
</div>
<div>
<h2>Recursos</h2>
<ul>
<li>
<a routerLink="/press-kit" title="Contactos de prensa, logotipos y branding.">Carpeta de prensa</a>
</li>
<li>
<a routerLink="/roadmap" title="Roadmap">Roadmap</a>
</li>
</ul>
</div>
</div>
<p class="docs-license">
Super-powered by Google ©2010-2024. Code licensed under an
<a routerLink="/license" title="License text">MIT-style License</a>
. Documentation licensed under
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>
.
</p>
</div>

19 changes: 19 additions & 0 deletions adev-es/src/app/core/layout/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {CommonModule} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {ExternalLink} from '@angular/docs';
import {RouterLink} from '@angular/router';
import {DISCORD, GITHUB, X} from './../../constants/links';

@Component({
selector: 'footer[adev-footer]',
standalone: true,
imports: [CommonModule, ExternalLink, RouterLink],
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class Footer {
readonly GITHUB = GITHUB;
readonly X = X;
readonly DISCORD = DISCORD;
}
Loading

0 comments on commit c5fce47

Please sign in to comment.