Skip to content

Commit 5898ef9

Browse files
committed
Rename steps
1 parent 1e4314b commit 5898ef9

File tree

4 files changed

+19
-50
lines changed

4 files changed

+19
-50
lines changed

en/meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ steps:
3232
- external
3333
- title: 'Challenge'
3434
challenge: true
35-
- title: What next?
35+
- title: What can you do now?

en/step_6.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Save both files, then visit `localhost:5000/hello/Paul` in the **Chromium browse
5050

5151
The page you see should look like this:
5252

53-
![Hello Paul!](images/flask-hello-paul.png)
53+
![A website displaying the text 'Hello Paul!'](images/flask-hello-paul.png)
5454

55-
Try replacing `paul` in the address bar with a different name!
55+
Try replacing `Paul` in the address bar with a different name!
5656

5757
--- /task ---
5858

@@ -76,7 +76,7 @@ line_highlights: 7
7676

7777
Save the changes to `index.html`, and then open `localhost:5000` to see the updated version.
7878

79-
![flask app link](images/flask-app-link.png)
79+
![A website with blue text on a beige background. The text reads 'My website' in a header font and then a link to 'Hi Paul'](images/flask-app-link.png)
8080

8181
--- /task ---
8282

en/step_7.md

Lines changed: 13 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,17 @@
1-
## Challenge: add a HTML template to the second page
1+
## Challenge
22

3-
Now you know how to change your 'index' page to use a HTML template, make your 'cakes' page use a HTML template too!
3+
--- task ---
4+
Add another route for your website.
5+
--- /task ---
46

5-
--- hints ---
7+
--- task ---
8+
Look up some **hex codes** for other colours you could use in your CSS.
9+
--- /task ---
610

7-
--- hint ---
11+
--- task ---
12+
Look up some more HTML tags to use in your templates.
13+
--- /task ---
814

9-
Repeat the steps in the previous project section to create and use a HTML template for the 'cakes' page.
10-
11-
--- /hint ---
12-
13-
--- hint ---
14-
15-
Create a `cakes.html` file and save it in `templates`.
16-
17-
Modify the `cakes()` function in `app.py` to use `render_template`.
18-
19-
--- /hint ---
20-
21-
--- hint ---
22-
23-
Your `cakes.html` template should look this:
24-
25-
```html
26-
<html>
27-
<body>
28-
<h1>Yummy cakes!</h1>
29-
</body>
30-
</html>
31-
```
32-
33-
Modify the `cakes()` function in `app.py`:
34-
35-
```python
36-
@app.route('/cakes')
37-
def cakes():
38-
return render_template('cakes.html')
39-
```
40-
41-
--- /hint ---
42-
43-
--- /hints ---
15+
--- task ---
16+
Use dynamic content in another way in your website.
17+
--- /task ---

en/step_8.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
## What next?
2-
3-
- Add more CSS rules to each of your pages
4-
- Create links to your favourite web pages
5-
- Learn more about HTML, CSS, and web development with [CoderDojo](https://projects.raspberrypi.org/en/CoderDojo/21), [Mozilla Developer Network](https://developer.mozilla.org/en-US/Learn) and [Codecademy](https://www.codecademy.com/en/tracks/web)
6-
- Learn more about Flask from the [Flask documentation](http://flask.pocoo.org/docs)
7-
- Create a physical computing project with Raspberry Pi and use Flask to create a web interface to it — you could use [Matt Richardson's guide](http://mattrichardson.com/Raspberry-Pi-Flask/index.html) or [Ben Nuttall's BETT Bot code](https://github.com/bennuttall/bett-bot) for help
1+
## What can you do now?
82

3+
You could try setting up a [LAMP server with Wordpress](https://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress)

0 commit comments

Comments
 (0)