Working on first version.
- ready for addition of the backend. - adding vert.x?
This commit is contained in:
parent
287999d9b2
commit
556e62286f
@ -21,9 +21,11 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"styles.css",
|
"styles.css",
|
||||||
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
|
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
|
||||||
"../node_modules/bootstrap/dist/css/bootstrap-theme.min.css"
|
"../node_modules/bootstrap/dist/css/bootstrap-theme.min.css",
|
||||||
|
"../node_modules/font-awesome/css/font-awesome.min.css"
|
||||||
],
|
],
|
||||||
"scripts": [
|
"scripts": [
|
||||||
|
"../node_modules/jquery/dist/jquery.min.js",
|
||||||
"../node_modules/bootstrap/dist/js/bootstrap.min.js"
|
"../node_modules/bootstrap/dist/js/bootstrap.min.js"
|
||||||
],
|
],
|
||||||
"environmentSource": "environments/environment.ts",
|
"environmentSource": "environments/environment.ts",
|
||||||
|
|||||||
10
package-lock.json
generated
10
package-lock.json
generated
@ -1734,6 +1734,11 @@
|
|||||||
"integrity": "sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=",
|
"integrity": "sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"font-awesome": {
|
||||||
|
"version": "4.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz",
|
||||||
|
"integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM="
|
||||||
|
},
|
||||||
"for-in": {
|
"for-in": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
|
||||||
@ -3283,6 +3288,11 @@
|
|||||||
"integrity": "sha1-2llSddGuYx3nNqwKfH2Fyfc+9lI=",
|
"integrity": "sha1-2llSddGuYx3nNqwKfH2Fyfc+9lI=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"jquery": {
|
||||||
|
"version": "3.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.2.1.tgz",
|
||||||
|
"integrity": "sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c="
|
||||||
|
},
|
||||||
"js-base64": {
|
"js-base64": {
|
||||||
"version": "2.1.9",
|
"version": "2.1.9",
|
||||||
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.1.9.tgz",
|
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.1.9.tgz",
|
||||||
|
|||||||
@ -23,6 +23,8 @@
|
|||||||
"@angular/router": "^4.0.0",
|
"@angular/router": "^4.0.0",
|
||||||
"bootstrap": "^3.3.7",
|
"bootstrap": "^3.3.7",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
|
"font-awesome": "^4.7.0",
|
||||||
|
"jquery": "^3.2.1",
|
||||||
"rxjs": "^5.1.0",
|
"rxjs": "^5.1.0",
|
||||||
"zone.js": "^0.8.4"
|
"zone.js": "^0.8.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -7,8 +7,8 @@ import { ProjectsComponent } from './components/projects/projects.component';
|
|||||||
|
|
||||||
const appRoutes: Routes = [
|
const appRoutes: Routes = [
|
||||||
// { path: 'crisis-center', component: CrisisListComponent },
|
// { path: 'crisis-center', component: CrisisListComponent },
|
||||||
{ path: 'home', component: HomeComponent },
|
{ path: 'home', component: HomeComponent },
|
||||||
{ path: 'projects', component: ProjectsComponent },
|
{ path: 'projects', component: ProjectsComponent },
|
||||||
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
||||||
{ path: '**', component: AppComponent }
|
{ path: '**', component: AppComponent }
|
||||||
];
|
];
|
||||||
|
|||||||
@ -1 +1,20 @@
|
|||||||
<router-outlet></router-outlet>
|
<!--this is bootstrap super container-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
|
||||||
|
<!--the top menu... should be always visible, everywhere-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div id="topmenu" class="text-center">
|
||||||
|
<!--each item is an icon-->
|
||||||
|
<a routerLink="/home"><i class="fa fa-home fa-2x" aria-hidden="true"></i></a>
|
||||||
|
<a routerLink="/projects"><i class="fa fa-wrench fa-2x" aria-hidden="true"></i></a>
|
||||||
|
<a routerLink="/cv"><i class="fa fa-user fa-2x" aria-hidden="true"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--row-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--this shows the current route's content-->
|
||||||
|
<router-outlet></router-outlet>
|
||||||
|
|
||||||
|
</div>
|
||||||
@ -6,12 +6,14 @@ import { AppComponent } from './app.component';
|
|||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { HomeComponent } from './components/home/home.component';
|
import { HomeComponent } from './components/home/home.component';
|
||||||
import { ProjectsComponent } from './components/projects/projects.component';
|
import { ProjectsComponent } from './components/projects/projects.component';
|
||||||
|
import { ProjectComponent } from './components/project/project.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
HomeComponent,
|
HomeComponent,
|
||||||
ProjectsComponent
|
ProjectsComponent,
|
||||||
|
ProjectComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|||||||
@ -1,10 +1,5 @@
|
|||||||
<div class="jumbotron">
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
<p>This is the home page of Joachim Nielandt</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-body">
|
<div class="panel-body text-center pageintro">
|
||||||
<a routerLink="/projects">Projects</a> <a>Photos</a> <a>CV</a>
|
These pages are a mish-mash of things that I'd like to keep safe. Descriptions and photos of projects, so I don't forget about them. Blog-style recollections of pieces of code, so I don't forget about them. Consider it a notepad of some kind.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
0
src/app/components/project/project.component.css
Normal file
0
src/app/components/project/project.component.css
Normal file
6
src/app/components/project/project.component.html
Normal file
6
src/app/components/project/project.component.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<h3>
|
||||||
|
<ng-content select=".title"></ng-content>
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
<ng-content select=".content"></ng-content>
|
||||||
|
</p>
|
||||||
25
src/app/components/project/project.component.spec.ts
Normal file
25
src/app/components/project/project.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { ProjectComponent } from './project.component';
|
||||||
|
|
||||||
|
describe('ProjectComponent', () => {
|
||||||
|
let component: ProjectComponent;
|
||||||
|
let fixture: ComponentFixture<ProjectComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ ProjectComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(ProjectComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
15
src/app/components/project/project.component.ts
Normal file
15
src/app/components/project/project.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'project',
|
||||||
|
templateUrl: './project.component.html',
|
||||||
|
styleUrls: ['./project.component.css']
|
||||||
|
})
|
||||||
|
export class ProjectComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,28 +1,10 @@
|
|||||||
<p>These are the projects I have completed, am working on, got tired of... consider this to be a resume of work and hobbies. And also a little notebook for myself, in case I forget the specifics.</p>
|
<p>These are the projects I have completed, am working on, got tired of... consider this to be a resume of work and hobbies. And also a little notebook for myself, in case I forget the specifics.</p>
|
||||||
|
|
||||||
<div class="panel panel-default">
|
<project>
|
||||||
<div class="panel-heading">
|
<div class="title">
|
||||||
<h3 class="panel-title">Project 1</h3>
|
The title of the project :)
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="content">
|
||||||
Panel content
|
this is inner content of the project
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</project>
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Project title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Project content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Project title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@ -1 +1,10 @@
|
|||||||
/* You can add global styles to this file, and also import other style files */
|
/* You can add global styles to this file, and also import other style files */
|
||||||
|
|
||||||
|
|
||||||
|
/*top menu*/
|
||||||
|
#topmenu {
|
||||||
|
border-bottom: 1px solid gray;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user