Skip to content

Commit

Permalink
feat(全局布局): 添加底部组件 版权信息和外链接
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayisheji committed Nov 7, 2017
1 parent 2bbf370 commit 4c70505
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/shared/layouts/footer/footer.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="links">
<a target="_blank" href="https://github.com/jiayisheji/ng4-admin-pro">Pro GitHub</a>
<a target="_blank" href="https://github.com/jiayisheji">jiayi GitHub</a>
<a target="_blank" href="http://pro.ant.design">Ant Design Pro</a>
</div>
<div class="copyright">
<div>Copyright <i class="icon-copyright"></i> 2017 Jiayi 出品</div>
</div>
24 changes: 24 additions & 0 deletions src/app/shared/layouts/footer/footer.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
:host {
padding: 0 16px;
margin: 48px 0 24px 0;
text-align: center;
}

.links {
margin-bottom: 8px;
a {
color: rgba(0, 0, 0, 0.45);
transition: all .3s;
+a {
margin-left: 40px;
}
&:hover {
color: rgba(0, 0, 0, 0.65);
}
}
}

.copyright {
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
}
25 changes: 25 additions & 0 deletions src/app/shared/layouts/footer/footer.component.spec.ts
Original file line number Diff line number Diff line change
@@ -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();
});
});
15 changes: 15 additions & 0 deletions src/app/shared/layouts/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

0 comments on commit 4c70505

Please sign in to comment.