重构界面ui

This commit is contained in:
小海
2020-04-06 20:48:40 +08:00
parent f2791ee150
commit 3ea8f63abc
601 changed files with 95141 additions and 90135 deletions

View File

@@ -0,0 +1,6 @@
<div class="error404">
<div class="wenzi">
<div class="wenzi-1">亲,您已经飘到外太空了哦!</div>
<div class="wenzi_2">想回地球请点击:<a href="/">小海博客</a></div>
</div>
</div>

View File

@@ -0,0 +1,52 @@
div{
margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: baseline;
background: transparent;
font-family: 'Microsoft Yahei', '\65B0\5B8B\4F53', '\5B8B\4F53', Verdana
}
.error404 {
width: 100%;
max-width: 1100px;
height: 460px;
background: url(../../../assets/img/404.jpg) 50px;
background-size: 100% 100%;
margin: 3px auto 0
}
a {
color: #00c0ff !important;
}
.wenzi {
padding-top: 326px;
text-align: center;
font-family: "微软雅黑";
font-size: 26px;
color: #686e6e
}
.wenzi {
height: 56px;
line-height: 56px;
color: #888888;
display: block;
border-bottom: 1px solid #d0cfcf
}
.wenzi_2 span {
color: #319898;
font-size: 30px;
font-weight: bold;
font-style: italic
}
@media only screen and (max-width:768px) {
.error404 {
width: 100%;
background: url(../../../assets/img/404-m.jpg) -10px;
}
}

View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PageNotFoundComponent } from './page-not-found.component';
describe('PageNotFoundComponent', () => {
let component: PageNotFoundComponent;
let fixture: ComponentFixture<PageNotFoundComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ PageNotFoundComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(PageNotFoundComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,18 @@
import {Component, OnInit} from '@angular/core';
import {Title} from '@angular/platform-browser';
@Component({
selector: 'view-page-not-found',
templateUrl: './page-not-found.component.html',
styleUrls: ['./page-not-found.component.less']
})
export class PageNotFoundComponent implements OnInit {
constructor(private title: Title) {
}
ngOnInit(): void {
this.title.setTitle('小海博客 | 404 page not found');
}
}

View File

@@ -0,0 +1,18 @@
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {PageNotFoundComponent} from './page-not-found.component';
import {Route, RouterModule} from '@angular/router';
const routes: Route[] = [
{path: '**', component: PageNotFoundComponent}
];
@NgModule({
declarations: [PageNotFoundComponent],
imports: [
CommonModule,
RouterModule.forChild(routes)
]
})
export class PageNotFoundModule {
}