Skip to content

Commit f84b45a

Browse files
committed
merging
2 parents 018d619 + fc8647a commit f84b45a

File tree

11 files changed

+106
-9
lines changed

11 files changed

+106
-9
lines changed

src/app/app-routing.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { PrivateHomeComponent } from './private/home/home.component';
1010
import { PublicSigninComponent } from './public/signin/signin.component';
1111
import { PublicHomeComponent } from './public/home/home.component';
1212
import { PublicHeaderComponent } from './public/header/header.component';
13+
import { AboutComponent } from './private/about/about.component';
1314
const routes: Routes = [
1415
// { path: '', component: HomeComponent },
1516
// { path: 'home', component: HomeComponent, data: { title: 'Home | Admin Panel' } }
@@ -31,6 +32,7 @@ const routes: Routes = [
3132
children: [
3233
{ path: '', redirectTo: 'user/home', pathMatch: 'full' },
3334
{ path: 'home', component: PrivateHomeComponent },
35+
{ path: 'about', component: AboutComponent },
3436

3537
]
3638
}

src/app/private/about/about.component.css

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
about works!
3+
</p>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { AboutComponent } from './about.component';
4+
5+
describe('AboutComponent', () => {
6+
let component: AboutComponent;
7+
let fixture: ComponentFixture<AboutComponent>;
8+
9+
beforeEach(async(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [ AboutComponent ]
12+
})
13+
.compileComponents();
14+
}));
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(AboutComponent);
18+
component = fixture.componentInstance;
19+
fixture.detectChanges();
20+
});
21+
22+
it('should create', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-about',
5+
templateUrl: './about.component.html',
6+
styleUrls: ['./about.component.css']
7+
})
8+
export class AboutComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
footer{
1+
/* footer{
22
text-align: center;
33
font-size: 16px;
44
font-family: Arial, Helvetica, sans-serif;
55
color: #fff;
66
background-color: #f52c2c;margin-top: 20px;
77
}
88
9-
footer p{ padding: 0;margin:0; }
9+
footer p{ padding: 0;margin:0; } */
10+
11+
footer {
12+
background-color: #555;
13+
color: white;
14+
padding: 15px;
15+
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
<footer>
1+
<!-- <footer>
22
<div class="row" style="padding:1%;">
33
<p class="col-md-12">All &copy; rights resverd by @Rxzx 2018</p>
44
</div>
5+
</footer> -->
6+
<footer class="container-fluid text-center">
7+
<p>Footer Text</p>
58
</footer>

src/app/private/header/header.component.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ header{
99
header h2{ padding-top: 2% }
1010
header a{ color: #fff;text-decoration: none;font-weight: 600;}
1111
header div{ padding:1%;}
12+
.navbar {
13+
margin-bottom: 0;
14+
border-radius: 0;
15+
}
16+
.row.content {height: 450px}
17+
@media screen and (max-width: 767px) {
18+
.sidenav {
19+
height: auto;
20+
padding: 15px;
21+
}
22+
.row.content {height:auto;}
23+
}

src/app/private/header/header.component.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<header>
1+
<!-- <header>
22
<div class="row">
33
<div class="col-md-4">
44
<h2><i class="fas fa-home"></i> Admin Panel</h2>
@@ -11,4 +11,28 @@ <h2><i class="fas fa-home"></i> Admin Panel</h2>
1111
</div>
1212
<div class="col-md-6"></div>
1313
</div>
14-
</header>
14+
</header> -->
15+
16+
<nav class="navbar navbar-inverse">
17+
<div class="container-fluid">
18+
<div class="navbar-header">
19+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
20+
<span class="icon-bar"></span>
21+
<span class="icon-bar"></span>
22+
<span class="icon-bar"></span>
23+
</button>
24+
<a class="navbar-brand" href="#">Logo</a>
25+
</div>
26+
<div class="collapse navbar-collapse" id="myNavbar">
27+
<ul class="nav navbar-nav">
28+
<li [routerLinkActive]="['active']" [routerLink]="['/user/home']" ><a>Home</a></li>
29+
<li [routerLinkActive]="['active']" [routerLink]="['/user/about']"><a>About</a></li>
30+
<li><a href="#">Projects</a></li>
31+
<li><a href="#">Contact</a></li>
32+
</ul>
33+
<ul class="nav navbar-nav navbar-right">
34+
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
35+
</ul>
36+
</div>
37+
</div>
38+
</nav>

src/app/private/private.module.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ModalModule } from 'ngx-bootstrap/modal';
1111
import { TypeaheadModule } from 'ngx-bootstrap/typeahead';
1212
import { PopupsComponent } from '../popups/popups.component';
1313
import { PrivateComponent } from './private.component';
14-
14+
import { AboutComponent } from './about/about.component';
1515
@NgModule({
1616
imports: [
1717
CommonModule,
@@ -27,10 +27,12 @@ import { PrivateComponent } from './private.component';
2727
PrivateFooterComponent,
2828
PrivateHeaderComponent,
2929
PrivateHomeComponent,
30-
PopupsComponent
30+
PopupsComponent,
31+
AboutComponent
3132
],
3233
entryComponents:[
3334
PopupsComponent
3435
],
36+
3537
})
3638
export class PrivateModule { }

0 commit comments

Comments
 (0)