You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Once you have it, `cd` into your project folder and install the dependencies:
10
10
11
11
```bash
12
12
npm install
13
13
```
14
14
15
-
This will get you patternfly and all the dev dependencies.
15
+
This will download PatternFly and all the tutorial's dependencies.
16
16
17
-
Now start browsersync by running
17
+
We will use the browsersync tool to serve and refresh our web content while we are working through the tutorial.
18
+
Start browsersync by running:
18
19
19
20
```bash
20
21
gulp
@@ -24,16 +25,16 @@ This will start a server at [http://localhost:3000/](http://localhost:3000/) and
24
25
25
26
## PatternFly CSS
26
27
27
-
Open `index.html` on your favorite text editor. You'll notice that you are importing `patternfly.min.css` and `patternfly-additions-min.css`
28
+
Open `index.html` on your favorite text editor. In the HTML `<head>` tag, you will notice that we are importing `patternfly.min.css` and `patternfly-additions-min.css`
28
29
29
-
Patternfly is based on bootstrap. patternfly.css is our customizations of bootstrap styles and additions is everything else we've added to support out enterprise usecases.
30
+
Patternfly is based on bootstrap. _patternfly.css_ is our customization of bootstrap styles and _patternfly-additions.css_ is everything we've added to support enterprise usecases.
This page is ready to use any patternfly component. You cna go to ther website, copy any spinnet and use it. But I'll guide you step by step to build a dashboard, and customize patternfly.
37
+
This page is ready to use with any PatternFly component. You can go to the PatternFly website, copy any spinnet and use it. But we'll guide you step-by-step showing you how to build a dashboard, and customize PatternFly.
37
38
38
39
### The Grid
39
40
@@ -102,11 +103,11 @@ To initiate the card layout and adjust the spaces we'll add some patternfly spec
102
103
103
104
### Navigation
104
105
105
-
For this example I'll be using a simple horizontal navigation, but keep in mind you can nest more levels or even use a vertical nav.
106
+
For this example we'll be using a simple horizontal navigation, but keep in mind you can nest more levels or even use a vertical nav.
106
107
107
108
PatternFly horizontal navigation is a modified version of Bootstrap navbar.
108
109
109
-
Go to the beguining of the document, copy and paste this snippet:
110
+
Go to the beginning of the document, copy and paste this snippet:
110
111
111
112
```html
112
113
<!-- PatternFly Horizontal Nav -->
@@ -199,9 +200,9 @@ Go to the beguining of the document, copy and paste this snippet:
199
200
200
201
### Aggregated status cards
201
202
202
-
Aggregated status cards comes in diferent flavors. For this example we'll use the "Mini Card Alternate". We have six slots to add them.
203
+
Aggregated status cards come in diferent flavors. For this example we'll use the "Mini Card Alternate" flavor. We have six slots to add them.
203
204
204
-
Copy and paste these snippets on the 6 spaces for Aggregated status cards, they are all slighly diferent but for the sake of the example it's ok if you repeat them:
205
+
Copy and paste these snippets on the 6 spaces for Aggregated status cards, they are all slighly different but for the sake of the example it's ok if you repeat them:
205
206
206
207
```html
207
208
<!-- Aggregated status card -->
@@ -248,7 +249,7 @@ Copy and paste these snippets on the 6 spaces for Aggregated status cards, they
248
249
249
250
### Utilization Trend Card
250
251
251
-
We'll add 2 typs of utilization cards, let's start with trend.
252
+
We'll add 2 types of utilization cards, let's start with the trend card.
252
253
253
254
Look for the next avaliable column, it's labled as `Utilization Trend Card`, and paste this snippet:
254
255
@@ -427,11 +428,11 @@ Look for the next avaliable column, it's labled as `Utilization Trend Card`, and
427
428
</div>
428
429
```
429
430
430
-
This snippet container charts, don't worry that they don't work yet, we'll add the javascript later.
431
+
This snippet container charts. Don't worry that they don't work yet, we'll add the javascript later.
431
432
432
433
### Utilization Bar Card
433
434
434
-
Now it's the trun to add an Utilization Bar Card, copy this snipptet and past it the last empty column:
435
+
Now we'll add an Utilization Bar Card, copy this snipptet and paste it into the last empty column:
435
436
436
437
```html
437
438
<!-- Utilization Bar Card -->
@@ -492,21 +493,21 @@ Now it's the trun to add an Utilization Bar Card, copy this snipptet and past it
492
493
493
494
## Responsive
494
495
495
-
As I mention beforeBootstrap and PatternFly are reponsive, try now to resize the browser window and see how the content reacomodates as it hits the brakepoints.
496
+
As we mentioned before, both Bootstrap and PatternFly are reponsive; try resizing the browser window and see how the content adjusts as it hits the brakepoints.
496
497
497
498
## Javascript
498
499
499
500
Brian will write something about adding D3, C3, patternfly, jquery, bootstrap and matchhieght JS
500
501
501
502
## Customize your app
502
503
503
-
The best way to customize patternfly styles is to extendend it instead of overwritting it. By extending PatternFly's and Bootstrap's styles, you'll be able to use and change all their mixing and variables.
504
+
The best way to customize patternfly styles is to extend it instead of overwritting it. By extending PatternFly's and Bootstrap's styles, you'll be able to use and change all their mixing and variables.
504
505
505
506
Bootstrap and PatternFly use Less to preprocess their CSS. This repo is setup to compile LESS into CSS.
506
507
507
508
### Load the compiled CSS
508
509
509
-
On your HTML comment out patternfly's CSS and uncoment the compiled CSS
510
+
In index.html file, comment out patternfly's CSS and uncomment the compiled CSS
0 commit comments