Adding Dashboard
This commit is contained in:
@@ -5,9 +5,10 @@ import { NoMansLandComponent } from './components/pages/no-mans-land/no-mans-lan
|
|||||||
import { ToolListComponent } from './components/pages/tool-list/tool-list.component';
|
import { ToolListComponent } from './components/pages/tool-list/tool-list.component';
|
||||||
import { LoginComponent } from './components/pages/login/login.component';
|
import { LoginComponent } from './components/pages/login/login.component';
|
||||||
import { BitComponent } from './components/pages/bit/bit.component';
|
import { BitComponent } from './components/pages/bit/bit.component';
|
||||||
|
import { DashboardComponent } from './components/pages/dashboard/dashboard.component';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{path: "", component: NoMansLandComponent},
|
{path: "", component: DashboardComponent},
|
||||||
{path: "backup", component: BackupListComponent},
|
{path: "backup", component: BackupListComponent},
|
||||||
{path: "update", component: ShiftUpdateComponent},
|
{path: "update", component: ShiftUpdateComponent},
|
||||||
{path: "creds", component: ToolListComponent },
|
{path: "creds", component: ToolListComponent },
|
||||||
|
|||||||
14
src/app/components/pages/dashboard/dashboard.component.html
Normal file
14
src/app/components/pages/dashboard/dashboard.component.html
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<div class="container">
|
||||||
|
<nav>
|
||||||
|
<div class="navbar">
|
||||||
|
<div class="services-dropdown">
|
||||||
|
<button class="dropbtn">Services</button>
|
||||||
|
<div class="dropdown-content">
|
||||||
|
<a href="#">Link 1</a>
|
||||||
|
<a href="#">Link 2</a>
|
||||||
|
<a href="#">Link 3</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
49
src/app/components/pages/dashboard/dashboard.component.scss
Normal file
49
src/app/components/pages/dashboard/dashboard.component.scss
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
@import "./../../../shared/scss/colors.scss";
|
||||||
|
|
||||||
|
.container {
|
||||||
|
color: $nav-text-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
background-color: $navcolor;
|
||||||
|
width: 100%;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropbtn {
|
||||||
|
background-color: $navcolor;
|
||||||
|
color: $nav-text-color;
|
||||||
|
padding: 16px;
|
||||||
|
font-size: 1rem;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.services-dropdown {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content {
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
background-color: rgba($nav-text-color,0.3);
|
||||||
|
min-width: 160px;
|
||||||
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content a {
|
||||||
|
color: black;
|
||||||
|
padding: 12px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content a:hover {background-color: #ddd;}
|
||||||
|
.dropdown:hover .dropdown-content {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown:hover .dropbtn {
|
||||||
|
background-color: rgba($nav-text-color,0.1);
|
||||||
|
}
|
||||||
@@ -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({
|
||||||
|
imports: [DashboardComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(DashboardComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
12
src/app/components/pages/dashboard/dashboard.component.ts
Normal file
12
src/app/components/pages/dashboard/dashboard.component.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-dashboard',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './dashboard.component.html',
|
||||||
|
styleUrl: './dashboard.component.scss'
|
||||||
|
})
|
||||||
|
export class DashboardComponent {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
$bg-color: #FEF9F2;
|
$bg-color: #f4f1de;
|
||||||
$txt-heading-color: #72BF78;
|
$txt-heading-color: #e07a5f;
|
||||||
$txt-color: #1E201E;
|
$txt-color: #e07a5f;
|
||||||
$hover-color: #B6FFA1;
|
$hover-color: #e07a5f;
|
||||||
$title: #62825D;
|
$title: #e07a5f;
|
||||||
$danger: #D91656;
|
$danger: #D91656;
|
||||||
|
$navcolor: #352208;
|
||||||
|
$nav-text-color: #e1bb80;
|
||||||
Reference in New Issue
Block a user