Add some top-nav notes.
This commit is contained in:
parent
180c62a39b
commit
4cff040117
12 changed files with 2313 additions and 14 deletions
|
@ -91,5 +91,8 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
||||
|
|
2255
personal-site/package-lock.json
generated
2255
personal-site/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -15,9 +15,11 @@
|
|||
"@angular/compiler": "^17.1.0",
|
||||
"@angular/core": "^17.1.0",
|
||||
"@angular/forms": "^17.1.0",
|
||||
"@angular/material": "^17.2.2",
|
||||
"@angular/platform-browser": "^17.1.0",
|
||||
"@angular/platform-browser-dynamic": "^17.1.0",
|
||||
"@angular/router": "^17.1.0",
|
||||
"ngx-markdown": "^17.1.1",
|
||||
"rxjs": "~7.8.0",
|
||||
"tslib": "^2.3.0",
|
||||
"zone.js": "~0.14.3"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<main class="main">
|
||||
<div class="content">
|
||||
<h1>Welcome to {{ title }}</h1>
|
||||
<p>🚧 It's currently getting a facelift 🚧</p>
|
||||
<app-top-nav></app-top-nav>
|
||||
<div class="content" [innerHTML]="html">
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
|
|
@ -1,13 +1,21 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { MarkdownService } from 'ngx-markdown';
|
||||
import { TopNavComponent } from './top-nav/top-nav.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
imports: [RouterOutlet],
|
||||
imports: [RouterOutlet, TopNavComponent],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.css'
|
||||
})
|
||||
export class AppComponent {
|
||||
title = "James' personal site";
|
||||
markdown = '# Hello, world!';
|
||||
html: string = "";
|
||||
|
||||
constructor(private markdownService: MarkdownService) {
|
||||
this.html = this.markdownService.parse(this.markdown).valueOf().toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
import { ApplicationConfig } from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
|
||||
import { provideMarkdown } from 'ngx-markdown';
|
||||
import { SecurityContext } from '@angular/core';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [provideRouter(routes)]
|
||||
providers: [provideRouter(routes),
|
||||
provideMarkdown({
|
||||
sanitize: SecurityContext.NONE
|
||||
})]
|
||||
};
|
||||
|
|
4
personal-site/src/app/landing/md_page.ts
Normal file
4
personal-site/src/app/landing/md_page.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export interface MarkdownPage {
|
||||
name: string;
|
||||
content: string;
|
||||
}
|
0
personal-site/src/app/top-nav/top-nav.component.css
Normal file
0
personal-site/src/app/top-nav/top-nav.component.css
Normal file
1
personal-site/src/app/top-nav/top-nav.component.html
Normal file
1
personal-site/src/app/top-nav/top-nav.component.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>top-nav works!</p>
|
23
personal-site/src/app/top-nav/top-nav.component.spec.ts
Normal file
23
personal-site/src/app/top-nav/top-nav.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { TopNavComponent } from './top-nav.component';
|
||||
|
||||
describe('TopNavComponent', () => {
|
||||
let component: TopNavComponent;
|
||||
let fixture: ComponentFixture<TopNavComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [TopNavComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(TopNavComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
12
personal-site/src/app/top-nav/top-nav.component.ts
Normal file
12
personal-site/src/app/top-nav/top-nav.component.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-top-nav',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './top-nav.component.html',
|
||||
styleUrl: './top-nav.component.css'
|
||||
})
|
||||
export class TopNavComponent {
|
||||
|
||||
}
|
4
personal-site/src/app/top_nav_option.ts
Normal file
4
personal-site/src/app/top_nav_option.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export interface TopNavOption {
|
||||
name: string;
|
||||
route: string;
|
||||
}
|
Loading…
Reference in a new issue