splash init

This commit is contained in:
Ben Wilson
2023-06-20 22:50:02 -04:00
parent 86fe6ca57b
commit 9aafc19923
12 changed files with 83 additions and 6 deletions
+7 -2
View File
@@ -1,17 +1,22 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardComponent } from './dashboard/dashboard.component';
import { AppLayoutComponent } from './layout/app.layout.component';
import { SplashComponent } from './splash/splash.component';
const routes: Routes = [
{
path: '',
component: SplashComponent
},
{
path: 'app',
component: AppLayoutComponent,
children: [
{
path: '',
component: SplashComponent
path: 'dashboard',
component: DashboardComponent
}
]
}
+8 -2
View File
@@ -1,24 +1,30 @@
import { CommonModule, HashLocationStrategy, LocationStrategy } from '@angular/common';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { PrimeNGModule } from '../prime-ng.module';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { AppLayoutModule } from './layout/app.layout.module';
import { SplashComponent } from './splash/splash.component';
@NgModule({
declarations: [
AppComponent,
SplashComponent
SplashComponent,
DashboardComponent
],
imports: [
CommonModule,
BrowserModule,
AppRoutingModule,
PrimeNGModule,
AppLayoutModule
],
providers: [],
providers: [
{ provide: LocationStrategy, useClass: HashLocationStrategy },
],
bootstrap: [AppComponent]
})
export class AppModule { }
@@ -0,0 +1 @@
<p>dashboard works!</p>
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DashboardComponent } from './dashboard.component';
describe('DashboardComponent', () => {
let component: DashboardComponent;
let fixture: ComponentFixture<DashboardComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ DashboardComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(DashboardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
+10
View File
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent {
}
+19 -1
View File
@@ -1 +1,19 @@
<p>splash works!</p>
<div class="py-4 px-4 lg:px-8 mt-5 mx-0 lg:mx-8">
<div class="grid justify-content-center">
<div class="col-12 text-center mt-8 mb-4">
<h2 class="text-900 font-normal mb-2">Public Pool</h2>
</div>
<div class="col-12">
<div class="card text-center">
<code>stratum+tcp://public-pool-web.airdns.org:40557</code>
<div class="field mt-8">
<input placeholder="Address" pInputText id="name1" type="text"
class="p-inputtext p-component p-element">
<button class="ml-3" pButton label="My Account" [routerLink]="['app','dashboard']"></button>
</div>
</div>
</div>
</div>
</div>
+1
View File
@@ -7,4 +7,5 @@ import { Component } from '@angular/core';
})
export class SplashComponent {
constructor() { }
}