Skip to content

Commit cd5fc28

Browse files
author
Adarsh Maurya
committed
- adding bootstrap, font-awesome to make feature product-list: html, component
1 parent 98ebc14 commit cd5fc28

File tree

7 files changed

+67
-2
lines changed

7 files changed

+67
-2
lines changed

APM-Start/package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

APM-Start/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"@angular/platform-browser": "^7.0.4",
2121
"@angular/platform-browser-dynamic": "^7.0.4",
2222
"@angular/router": "^7.0.4",
23+
"bootstrap": "^4.1.3",
2324
"core-js": "^2.6.0",
25+
"font-awesome": "^4.7.0",
2426
"rxjs": "~6.3.3",
2527
"zone.js": "~0.8.26"
2628
},

APM-Start/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component } from "@angular/core";
44
selector: 'pm-root',
55
template: `
66
<div><h1>{{pageTitle}}</h1>
7-
<div>My First Component</div>
7+
<pm-products></pm-products>
88
</div>
99
`
1010

APM-Start/src/app/app.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33

44
import { AppComponent } from './app.component';
5+
import { ProductListComponent } from './products/product-list.component';
56

67
@NgModule({
78
declarations: [
8-
AppComponent
9+
AppComponent,
10+
ProductListComponent
911
],
1012
imports: [
1113
BrowserModule
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<div cllass='card'>
2+
<div class='card-header'>
3+
Product List
4+
</div>
5+
6+
<div class='card-body'>
7+
<div class='now'>
8+
<div class='col-md-2'>Filter by:</div>
9+
<div class='col-md-4'>
10+
<input type='text' />
11+
</div>
12+
</div>
13+
<div class='row'>
14+
<div class='col-md-6'>
15+
<h4>Filtered by:</h4>
16+
</div>
17+
</div>
18+
</div>
19+
<div class='table-responsive'>
20+
<table class='table'>
21+
<thead>
22+
<tr>
23+
<th>
24+
<button>
25+
Show Image
26+
</button>
27+
</th>
28+
<th>Product</th>
29+
<th>Code</th>
30+
<th>Available</th>
31+
<th>Price</th>
32+
<th>5 Star Rating</th>
33+
</tr>
34+
</thead>
35+
<tbody>
36+
37+
</tbody>
38+
</table>
39+
</div>
40+
41+
</div>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Component } from "@angular/core";
2+
3+
@Component({
4+
selector: 'pm-products',
5+
templateUrl: './product-list.component.html'
6+
})
7+
export class ProductListComponent{
8+
}

APM-Start/src/styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "../node_modules/bootstrap/dist/css/bootstrap.min.css";
2+
@import "../node_modules/font-awesome/css/font-awesome.min.css";
13
/* You can add global styles to this file, and also import other style files */
24
div.card-header {
35
font-size: large;

0 commit comments

Comments
 (0)