This website works better with JavaScript.
Home
Explore
Help
Sign In
kj
/
cac-desktop
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Added basic sub pages
master
kj1352
3 years ago
parent
ef9d1ffde0
commit
a276a80c1f
5 changed files
with
21 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/app/app-routing.module.ts
+1
-1
src/app/dashboard/dashboard.component.html
+4
-0
src/app/dashboard/dashboard.component.scss
+11
-1
src/app/dashboard/graph/graph.component.html
+4
-0
src/styles.scss
+ 1
- 1
src/app/app-routing.module.ts
View File
@@ -14,7 +14,7 @@ const routes: Routes = [
{
path: '', pathMatch: 'full', redirectTo: 'graph'
}, {
path: '
graph
', component: GraphComponent
path: '
analytics
', component: GraphComponent
}, {
path: 'partners', component: TableComponent
}, {
+ 1
- 1
src/app/dashboard/dashboard.component.html
View File
@@ -5,7 +5,7 @@
</figure>
<nav>
<a [ngClass]="{'active' : currentURL.includes('
graph')}" [routerLink]="'graph
'"> <span> Dashboard </span> </a>
<a [ngClass]="{'active' : currentURL.includes('
analytics')}" [routerLink]="'analytics
'"> <span> Dashboard </span> </a>
<a [ngClass]="{'active' : currentURL.includes('partners')}" [routerLink]="'partners'"> <span> All Partners </span> </a>
<a [ngClass]="{'active' : currentURL.includes('report')}" [routerLink]="'report'"> <span> Report </span> </a>
<a [ngClass]="{'active' : currentURL.includes('settings')}" [routerLink]="'settings'"> <span> Settings </span> </a>
+ 4
- 0
src/app/dashboard/dashboard.component.scss
View File
@@ -51,6 +51,10 @@ $sidebar-width: 240px;
position: relative;
overflow: hidden;
&:last-child {
justify-self: flex-end;
}
&:hover {
color: white;
}
+ 11
- 1
src/app/dashboard/graph/graph.component.html
View File
@@ -1 +1,11 @@
<p>graph works!</p>
<div class="subpage">
<header>
<h2> Dashboard </h2>
</header>
<section class="analytics">
<div class="card">
<div class="line-chart"></div>
</div>
</section>
</div>
+ 4
- 0
src/styles.scss
View File
@@ -98,4 +98,8 @@
}
}
}
}
.subpage {
padding: 20px;
}
Write
Preview
Loading…
Cancel
Save