Skip to content

Commit e930661

Browse files
committed
learnpack adjustments on instructions, some images, etc.
1 parent 3a2d1dd commit e930661

File tree

9 files changed

+18
-14
lines changed

9 files changed

+18
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
!.gitpod.yml
66
!.gitpod.Dockerfile
77
!bc.json
8+
!learn.json
89
!README.md
910

1011
!/exercises

.learn/assets/einstein.png

143 KB
Loading

.learn/assets/logo.ico

19.3 KB
Binary file not shown.

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<table>
22
<tr>
3-
<td><img src="https://assets.breatheco.de/apis/img/images.php?blob&random&cat=icon&tags=4geeks,32"></td>
3+
<td><img src="https://github.com/4GeeksAcademy/css-tutorial-exercises-course/blob/3a2d1dd03f58167a5a4894155af2d3aa4d41d647/.learn/assets/logo.ico?raw=true"></td>
44
<td>
55
<h1 align="center"> CSS Exercises Tutorial at 4Geeks Academy</h1>
66
<img src="https://img.shields.io/github/last-commit/4geeksacademy/css-tutorial-exercises-course" />
@@ -33,22 +33,26 @@ Complete selection of autograded CSS exercises, anyone interested in learning CS
3333

3434
## Manual installation
3535

36-
1) After downloading the exercise, make sure you have the [breathecode-cli](https://github.com/breatheco-de/breathecode-cli) installed and `node.js` version 8+
36+
1) Install the learnpack package manager for education and the html plugin to compile an test html exercises:
37+
3738
```
38-
This is the command to install the breathecode-cli
39-
$ npm i breathecode-cli -g
39+
$ npm i learnpack -g
40+
$ learnpack plugins:install learnpack-html
4041
```
4142

42-
2) Clone or download this repository. Once you finish downloading, you will find a new folder with a subdirectory "exercises" that contains all the exercises within.
43+
2) Download the exercises
44+
45+
```bash
46+
$ learnpack install css-tutorial-exercises-course
47+
```
4348

44-
Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.
49+
Note: Once you finish downloading, you will need to `cd` into the exercises folder and you will find a "exercises" folder that contains all the exercises within.
4550

46-
3) Start the tutorial/exercises by running the following command at the same level were your bc.json file is:
51+
3) Start the tutorial/exercises by running the following command at the same level were your learn.json file is:
4752

4853
```sh
4954
$ npm i jest@24.8.0 -g
50-
$ cd ./css-exercises
51-
$ breathecode run
55+
$ learnpack start
5256
```
5357

5458
<p align="center">

exercises/04.1-Combined-Rules/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
padding-bottom: 50px;
88

99
background: rgb(189, 189, 189);
10-
background-image: url(https://assets.breatheco.de/apis/img/funny/baby.jpg);
10+
background-image: url(https://github.com/4GeeksAcademy/css-tutorial-exercises-course/blob/3a2d1dd03f58167a5a4894155af2d3aa4d41d647/.learn/assets/baby.jpg?raw=true);
1111
background-position-x: 100px;
1212
background-repeat: no-repeat;
1313
background-size: contain;

exercises/04.1-Combined-Rules/tests.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ describe("All the styles should be applied", function () {
130130
expect(orangeHoverSelector).toContain('#bdbdbd');
131131
expect(orangeHoverSelector).toContain('no-repeat');
132132
expect(orangeHoverSelector).toContain('100px');
133-
expect(orangeHoverSelector).toContain('url(https://assets.breatheco.de/apis/img/funny/baby.jpg)');
134-
// expect(orangeHoverSelector).toBe('#bdbdbd url(https://assets.breatheco.de/img/funny/scared-baby.jpg) no-repeat 100px');
133+
expect(orangeHoverSelector).toContain('url(https://github.com/4GeeksAcademy/css-tutorial-exercises-course/blob/3a2d1dd03f58167a5a4894155af2d3aa4d41d647/.learn/assets/baby.jpg?raw=true)');
135134
});
136135

137136
it("the padding should include the shorthand property in the right order (top, right, bottom, left)", function () {

exercises/06-Practicing-Rules/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("All the styles should be applied", function () {
2626
let body=document.querySelector("body");
2727
let styles=window.getComputedStyle(body);
2828
expect(styles["background"]).toBe(
29-
`url(http://assets.breatheco.de/apis/img/bg/background-vertical.jpg) repeat-y`
29+
`url(https://github.com/4GeeksAcademy/css-tutorial-exercises-course/blob/3a2d1dd03f58167a5a4894155af2d3aa4d41d647/.learn/assets/background-vertical.jpg?raw=true) repeat-y`
3030
);
3131
});
3232
it("the font-family should be 'Times New Roman'", function () {

exercises/08-Rounded-Image/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99

1010
<body>
11-
<img class="rounded" src="https://assets.breatheco.de/apis/img/funny/einstein.png" />
11+
<img class="rounded" src="https://github.com/4GeeksAcademy/css-tutorial-exercises-course/blob/master/.learn/assets/einstein.png?raw=true" />
1212
</body>
1313
</html>

bc.json renamed to learn.json

File renamed without changes.

0 commit comments

Comments
 (0)