-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
footer.component.ts
106 lines (102 loc) · 4.83 KB
/
footer.component.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
@Component({
selector: 'app-footer',
template: `
<footer class="rc-footer rc-footer-dark">
<section class="rc-footer-container">
<section class="rc-footer-columns">
<div app-footer-col [title]="language === 'zh' ? '相关资源' : 'Resources'">
<app-footer-item title="NG-ZORRO-MOBILE" link="https://ng.mobile.ant.design/" description="Angular"></app-footer-item>
<app-footer-item title="Ant Design" link="https://ant.design/docs/react/introduce-cn" description="React"></app-footer-item>
<app-footer-item title="Ant Design" link="https://vue.ant.design/" description="Vue"></app-footer-item>
<app-footer-item title="Angular" link="https://angular.io/"></app-footer-item>
<app-footer-item title="Angular CLI" link="https://cli.angular.io/"></app-footer-item>
</div>
<div app-footer-col [title]="language === 'zh' ? '社区' : 'Community'">
<app-footer-item
icon="ant-design"
title="Awesome Ant Design"
link="https://github.com/websemantics/awesome-ant-design"
></app-footer-item>
<app-footer-item icon="global" title="Blog" link="https://ng.ant.design/blog"></app-footer-item>
<app-footer-item icon="twitter" title="Twitter" link="https://twitter.com/ng_zorro"></app-footer-item>
<app-footer-item
*ngIf="language === 'zh'"
icon="zhihu"
title="知乎专栏"
link="https://zhuanlan.zhihu.com/100000"
></app-footer-item>
<app-footer-item icon="medium" title="Medium" link="https://medium.com/ng-zorro"></app-footer-item>
</div>
<div app-footer-col [title]="language === 'zh' ? '帮助' : 'Help'">
<app-footer-item icon="github" title="GitHub" link="https://github.com/NG-ZORRO/ng-zorro-antd"></app-footer-item>
<app-footer-item
icon="history"
[title]="language === 'zh' ? '更新日志' : 'Changelog'"
[link]="language === 'zh' ? 'https://ng.ant.design/docs/changelog/zh' : 'https://ng.ant.design/docs/changelog/en'"
></app-footer-item>
<app-footer-item
icon="profile"
[title]="language === 'zh' ? '常见问题' : 'FAQ'"
[link]="language === 'zh' ? 'https://ng.ant.design/docs/faq/zh' : 'https://ng.ant.design/docs/faq/en'"
></app-footer-item>
<app-footer-item
icon="bug"
[title]="language === 'zh' ? '报告 Bug' : 'Bug Report'"
[link]="language === 'zh' ? 'https://ng.ant.design/issue-helper/#/zh' : 'https://ng.ant.design/issue-helper/#/en'"
></app-footer-item>
<app-footer-item
icon="issues-close"
[title]="language === 'zh' ? '讨论列表' : 'Issue'"
[link]="language === 'zh' ? 'https://ng.ant.design/issue-helper/#/zh' : 'https://ng.ant.design/issue-helper/#/en'"
></app-footer-item>
<app-footer-item
*ngIf="language === 'zh'"
icon="book"
title="NG-ZORRO 实战教程"
link="https://github.com/NG-ZORRO/today-ng-steps"
></app-footer-item>
<app-footer-item
icon="question-circle"
title="StackOverflow"
link="https://stackoverflow.com/questions/tagged/ng-zorro-antd"
></app-footer-item>
<div class="rc-footer-item" style="margin-top: 20px;">
<div
class="theme-pick-wrap"
nz-popover
[nzPopoverTrigger]="'click'"
nzPopoverOverlayClassName="theme-color-content"
[nzPopoverContent]="colorTpl"
>
<div class="theme-pick" [ngStyle]="{ background: colorHex }"></div>
</div>
<ng-template #colorTpl>
<color-sketch [color]="colorHex" (onChangeComplete)="changeColor($event)"></color-sketch>
</ng-template>
</div>
</div>
</section>
</section>
<section class="rc-footer-bottom">
<div class="rc-footer-bottom-container">
Made with
<span style="color: rgb(255, 255, 255);">❤</span>
by NG-ZORRO team
</div>
</section>
</footer>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['./footer.component.less'],
})
export class FooterComponent implements OnInit {
@Input() language: string = 'zh';
@Input() colorHex: string = '#1890ff';
@Output() colorChange = new EventEmitter<any>();
constructor() { }
changeColor(res: any): void {
this.colorChange.emit(res);
}
ngOnInit(): void { }
}