修改路径
This commit is contained in:
12
src/app/components/footer/footer.component.html
Normal file
12
src/app/components/footer/footer.component.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="footer">
|
||||
<nz-divider></nz-divider>
|
||||
<div>
|
||||
<a href="http://www.miitbeian.gov.cn" target="_blank">
|
||||
鄂ICP备18023929号
|
||||
</a>
|
||||
<div>
|
||||
© 2019 <a href="https://www.celess.cn">小海博客</a> -
|
||||
<span>郑海 </span> <span *ngIf="gName">& {{gName}} </span>版权所有
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
22
src/app/components/footer/footer.component.less
Normal file
22
src/app/components/footer/footer.component.less
Normal file
@@ -0,0 +1,22 @@
|
||||
.footer {
|
||||
clear: both;
|
||||
width: 100%;
|
||||
background-color: #eeeeee;
|
||||
text-align: center;
|
||||
color: #009688;
|
||||
height: 50px;
|
||||
position: relative;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
/* 设置z-index 是为了write页面将footer隐藏*/
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 1px solid #ffffff;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #009688 !important;
|
||||
}
|
||||
25
src/app/components/footer/footer.component.spec.ts
Normal file
25
src/app/components/footer/footer.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FooterComponent } from './footer.component';
|
||||
|
||||
describe('FooterComponent', () => {
|
||||
let component: FooterComponent;
|
||||
let fixture: ComponentFixture<FooterComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ FooterComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(FooterComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
19
src/app/components/footer/footer.component.ts
Normal file
19
src/app/components/footer/footer.component.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {ComponentStateService} from '../../services/component-state.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-footer',
|
||||
templateUrl: './footer.component.html',
|
||||
styleUrls: ['./footer.component.less']
|
||||
})
|
||||
export class FooterComponent implements OnInit {
|
||||
|
||||
constructor(public componentStateService: ComponentStateService) {
|
||||
}
|
||||
|
||||
readonly gName: string;
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user