Added map page. Fixed navbar coloring when on a page.
This commit is contained in:
parent
a5ef610a09
commit
8d0da93c99
|
|
@ -7,9 +7,11 @@ import {HomeComponent} from './home/home.component';
|
||||||
import {NgOptimizedImage} from '@angular/common';
|
import {NgOptimizedImage} from '@angular/common';
|
||||||
import {ThemeComponent} from "./theme/theme.component";
|
import {ThemeComponent} from "./theme/theme.component";
|
||||||
import {CookieService} from 'ngx-cookie-service';
|
import {CookieService} from 'ngx-cookie-service';
|
||||||
|
import {MapComponent} from './map/map.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{path: '', component: HomeComponent}
|
{path: '', component: HomeComponent},
|
||||||
|
{path: 'map', component: MapComponent},
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
@ -17,7 +19,8 @@ const routes: Routes = [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
HeaderComponent,
|
HeaderComponent,
|
||||||
HomeComponent,
|
HomeComponent,
|
||||||
ThemeComponent
|
ThemeComponent,
|
||||||
|
MapComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
</div>
|
</div>
|
||||||
<a href="/"><img ngSrc="/public/img/logos/logo.png" alt="Altitude Server Logo" height="319" width="550"></a>
|
<a href="/"><img ngSrc="/public/img/logos/logo.png" alt="Altitude Server Logo" height="319" width="550"></a>
|
||||||
<ul id="nav_list">
|
<ul id="nav_list">
|
||||||
<li class="nav_li"><a [id]="getCurrentPageId(['home'])" class="nav_link" href="/">Home</a>
|
<li class="nav_li"><a [id]="getCurrentPageId(['home'])" class="nav_link" href="/" [ngClass]="active">Home</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav_li">
|
<li class="nav_li">
|
||||||
<span [id]="getCurrentPageId(['map', 'customfeatures', 'economy', 'events', 'mypet', 'warps',
|
<span [id]="getCurrentPageId(['map', 'customfeatures', 'economy', 'events', 'mypet', 'warps',
|
||||||
|
|
@ -103,10 +103,12 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="nav_li"><a class="nav_link" target="_blank" rel="noopener"
|
<li class="nav_li"><a class="nav_link" target="_blank" rel="noopener"
|
||||||
href="https://discordapp.com/invite/TGqpzCJ" [ngClass]="active">Discord</a></li>
|
href="https://discordapp.com/invite/TGqpzCJ" [ngClass]="active">Discord</a></li>
|
||||||
<li class="nav_li"><a [id]="getCurrentPageId(['vote'])" class="nav_link" [routerLink]="['/vote']" [ngClass]="active">Vote</a>
|
<li class="nav_li"><a [id]="getCurrentPageId(['vote'])" class="nav_link" [routerLink]="['/vote']"
|
||||||
|
[ngClass]="active">Vote</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav_li">
|
<li class="nav_li">
|
||||||
<a class="nav_link" target="_blank" rel="noopener" href="https://store.alttd.com" [ngClass]="active">Store</a>
|
<a class="nav_link" target="_blank" rel="noopener" href="https://store.alttd.com"
|
||||||
|
[ngClass]="active">Store</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav_li">
|
<li class="nav_li">
|
||||||
<a [id]="getCurrentPageId(['about', 'team', 'community', 'birthdays'])"
|
<a [id]="getCurrentPageId(['about', 'team', 'community', 'birthdays'])"
|
||||||
|
|
|
||||||
7
frontend/src/app/map/map.component.html
Normal file
7
frontend/src/app/map/map.component.html
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<ng-container>
|
||||||
|
<app-header [title]="'Dynmap'" [current_page]="'map'"></app-header>
|
||||||
|
|
||||||
|
<div style="height: 100vh;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
0
frontend/src/app/map/map.component.scss
Normal file
0
frontend/src/app/map/map.component.scss
Normal file
23
frontend/src/app/map/map.component.spec.ts
Normal file
23
frontend/src/app/map/map.component.spec.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { MapComponent } from './map.component';
|
||||||
|
|
||||||
|
describe('MapComponent', () => {
|
||||||
|
let component: MapComponent;
|
||||||
|
let fixture: ComponentFixture<MapComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [MapComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(MapComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
11
frontend/src/app/map/map.component.ts
Normal file
11
frontend/src/app/map/map.component.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
standalone: false,
|
||||||
|
selector: 'app-map',
|
||||||
|
templateUrl: './map.component.html',
|
||||||
|
styleUrl: './map.component.scss'
|
||||||
|
})
|
||||||
|
export class MapComponent {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user