Skip to content

Commit 0de7a21

Browse files
committed
Add diff-store links for all lectures in section 14.
1 parent 97692df commit 0de7a21

File tree

18 files changed

+76
-62
lines changed

18 files changed

+76
-62
lines changed

curriculum/section14/lectures/02_adding_a_nav_bar/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ excerpt: Add a styled navigation bar to the project, including an icon.
1111
draft: true
1212
---
1313

14-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
15-
16-
1714
# Adding a nav bar to the movie library
1815

16+
::: tip
17+
List of all code changes made in this lecture: [https://diff-store.com/diff/422036bb6641424b84c1011675eac445](https://diff-store.com/diff/422036bb6641424b84c1011675eac445)
18+
:::
19+
1920
Let's take a look at the nav bar that we'll be adding to our app.
2021

2122
NAVBAR IMAGE

curriculum/section14/lectures/03_adding_a_footer/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@ excerpt: Learn how to add a footer that is stuck to the bottom of the screen, or
1111
draft: true
1212
---
1313

14-
- [x] Set metadata above
15-
- [x] Start writing!
16-
- [x] Create `start` folder
17-
- [x] Create `end` folder
18-
- [x] Write TL;DR
19-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
20-
2114

2215
# Adding a footer to the movie watchlist project
2316

17+
::: tip
18+
List of all code changes made in this lecture: [https://diff-store.com/diff/08856f2be5b2491eb502b68c82214654](https://diff-store.com/diff/08856f2be5b2491eb502b68c82214654)
19+
:::
20+
2421
Let's start by creating `templates/macros/footer.html`. Inside it, we'll place another Jinja macro that renders the footer HTML code:
2522

2623
```html

curriculum/section14/lectures/04_putting_page_layout_together/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@ excerpt: Put together the page layout, including the navigation, main content, a
1111
draft: true
1212
---
1313

14-
- [ ] Set metadata above
15-
- [ ] Start writing!
16-
- [ ] Create `start` folder
17-
- [ ] Create `end` folder
18-
- [ ] Write TL;DR
19-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
20-
2114

2215
# Putting the page layout together
2316

17+
::: tip
18+
List of all code changes made in this lecture: [https://diff-store.com/diff/f3d05e2353764824a91003cbfd8aecd9](https://diff-store.com/diff/f3d05e2353764824a91003cbfd8aecd9)
19+
:::
20+
2421
Now that we've got our header navigation and our footer, it's time to add them to `layout.html`.
2522

2623
We will also need to add some styling so that the footer is pushed up against the bottom of the page, even if the page content is small.

curriculum/section14/lectures/05_toggle_dark_mode_css_variables/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ excerpt: Learn how to toggle between light and dark mode in a Flask app using se
1111
draft: true
1212
---
1313

14-
- [x] Set metadata above
15-
- [x] Start writing!
16-
- [x] Create `start` folder
17-
- [x] Create `end` folder
18-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
19-
2014

2115
# Toggling dark mode in the movie watchlist project
2216

17+
::: tip
18+
List of all code changes made in this lecture: [https://diff-store.com/diff/dd9e6043ca734167b4fd06de3d1b05cd](https://diff-store.com/diff/dd9e6043ca734167b4fd06de3d1b05cd)
19+
:::
20+
2321
To toggle dark mode all we have to do is change the CSS variables under `:root`. At the moment, all the variables are set up to support light mode. If we change them to support dark mode, the site will become dark.
2422

2523
Before we do any "toggling", let's just try to change the variables into dark mode.

curriculum/section14/lectures/06_create_form_with_wtforms/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ draft: true
1212
---
1313

1414

15-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
15+
# Creating a form with WTForms
1616

17+
::: tip
18+
List of all code changes made in this lecture: [https://diff-store.com/diff/23ce5362567a4858aa1cb217082e2cd9](https://diff-store.com/diff/23ce5362567a4858aa1cb217082e2cd9)
19+
:::
1720

18-
# Creating a form with WTForms
1921
## Dependencies
22+
2023
To use WTForms in a Flask application, the easiest thing to do is install two dependencies: `wtforms` and `flask-wtf`.
2124

2225
WTForms will help us define the forms, and Flask-WTF will add extra functionality such as that to deal with CSRF tokens.

curriculum/section14/lectures/07_render_wtform_with_jinja_macros/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ excerpt: Learn how to take a WTForms form and display it in your Jinja or HTML t
1111
draft: true
1212
---
1313

14-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
1514

1615

1716
# Render a WTForms form with Jinja and HTML
1817

18+
::: tip
19+
List of all code changes made in this lecture: [https://diff-store.com//diff/b134a41dc9ac4e4a99128d94cf21a886](https://diff-store.com/diff/b134a41dc9ac4e4a99128d94cf21a886)
20+
:::
21+
1922
## Create a new Flask route for adding movies
2023

2124
We want to allow users to create new movies using our form, so the first thing to do is create a Flask route that will display our form, so our users can access it.

curriculum/section14/lectures/08_receive_validate_wtform/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ excerpt: Learn to receive data from an HTML form and validate it using WTForms.
1111
draft: true
1212
---
1313

14-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
1514

1615
# Receive and validate data using WTForms
16+
17+
::: tip
18+
List of all code changes made in this lecture: [https://diff-store.com/diff/37b94bc3a3344c27b45a6a4e93da36eb](https://diff-store.com/diff/37b94bc3a3344c27b45a6a4e93da36eb)
19+
:::
20+
1721
## Validate form data
1822
Now that we've got our form and our endpoint, it's time to connect them and receive the form data in Flask!
1923

curriculum/section14/lectures/09_display_table_of_all_movies/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ excerpt: Learn how to load all movie data and display a table of all movies.
1111
draft: true
1212
---
1313

14-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
15-
1614

1715
# Displaying a table of all movies
16+
17+
::: tip
18+
List of all code changes made in this lecture: [https://diff-store.com/diff/b93744ff420c414aadb2023677d752f4](https://diff-store.com/diff/b93744ff420c414aadb2023677d752f4)
19+
:::
20+
1821
## Load the data from MongoDB
1922
Let's start with getting data from MongoDB and into our template! Let's go to our `index` route:
2023

curriculum/section14/lectures/10_create_page_movie_details/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ draft: true
1212
---
1313

1414

15-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
16-
1715

1816
# Create the movie details page
17+
18+
::: tip
19+
List of all code changes made in this lecture: [https://diff-store.com/diff/ee701882aede4ba4a4e644b1df665825](https://diff-store.com/diff/ee701882aede4ba4a4e644b1df665825)
20+
:::
21+
1922
## Add an endpoint for the movie details page
2023
Let's start by adding an endpoint that will:
2124

curriculum/section14/lectures/11_setting_movie_rating/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ draft: true
1212
---
1313

1414

15-
- [ ] Create per-file diff between `end` and `start` (use "Compare Folders")
16-
1715

1816
# Setting movie ratings
1917

18+
::: tip
19+
List of all code changes made in this lecture: [https://diff-store.com/diff/79d93fd986564b0ebebbf65f0f5b5033](https://diff-store.com/diff/79d93fd986564b0ebebbf65f0f5b5033)
20+
:::
21+
2022
At the moment we're showing the movie's rating as a number beside the movie name. We want to show 5 stars instead, with a visual indication as to what the rating of the movie is, out of five.
2123

2224
When we click on one of the stars beside the movie name, we want the app to set the movie's rating to that star rating. So if we click on the middle star, we should set the rating to 3 (out of 5).

0 commit comments

Comments
 (0)