Skip to content

Commit

Permalink
feat : rework slides (#6)
Browse files Browse the repository at this point in the history
* feat: implement last labs (start)

* feat: enhances slides

* feat: save excalidraw schemas
  • Loading branch information
arichard-info authored Sep 23, 2024
1 parent 6d3c807 commit 795468d
Show file tree
Hide file tree
Showing 54 changed files with 58,135 additions and 11,064 deletions.
Binary file modified docs/assets/images/02-routing/app-vs-pages-priority.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/naming-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/naming-layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/naming-loading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/naming-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/naming-route.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/naming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/vocabulary-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/vocabulary-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/02-routing/vocabulary-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/08-rendering/meme.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/assets/images/component-hierarchy.png
Binary file not shown.
Binary file removed docs/assets/images/component-nesting.png
Binary file not shown.
Binary file removed docs/assets/images/gde.png
Binary file not shown.
Binary file removed docs/assets/images/jf.jpg
Binary file not shown.
68,887 changes: 57,871 additions & 11,016 deletions docs/assets/resources/schemas.excalidraw

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions docs/markdown/00-school/22-requirements.md

This file was deleted.

13 changes: 13 additions & 0 deletions docs/markdown/00-school/30-requirements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Requirements

- Basic knowledge of HTML and CSS
- Completion of Typescript institute or equivalent
- Completion of the React institute or equivalent

<br/><br/>

**Technical requirements**

- Node v18
- npm
- IDE : VSCode or Webstorm recommanded
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/02-vocabulary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="two-column with-code" -->

<style>
.routing-vocabulary-1 {
width: 1100px;
height: auto;
}
</style>

# Routing

## Vocabulary

<img src="./assets/images/02-routing/vocabulary-1.png" class="routing-vocabulary-1" />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/03-vocabulary-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="two-column with-code" -->

<style>
.routing-vocabulary-2 {
width: 1100px;
height: auto;
}
</style>

# Routing

## Vocabulary

<img src="./assets/images/02-routing/vocabulary-2.png" class="routing-vocabulary-2" />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/04-vocabulary-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="two-column with-code" -->

<style>
.routing-vocabulary-3 {
width: 1100px;
height: auto;
}
</style>

# Routing

## Vocabulary

<img src="./assets/images/02-routing/vocabulary-3.png" class="routing-vocabulary-3" />
28 changes: 15 additions & 13 deletions docs/markdown/02-routing/10-naming.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
<!-- .slide: class="with-code" -->
<!-- .slide: class="two-column with-code" -->

<style>
.routing-naming {
width: 500px;
height: auto;
}
</style>

# Routing

## Conventions

(.tsx | .js | .jsx)
(.tsx | .ts | .js | .jsx)

<img src="./assets/images/02-routing/naming.png" class="routing-naming" />

##--##

- **layout** : shared UI for a segment (and its children)
- **template** : shared UI for a segment with re-render (and its children)
- **page** : public route UI
- **loading** : loading UI for a segment (and its children)
- **not-found** : page not found UI for a segment (and its children)
- **error** : Unexpected error UI for a segment (and its children)
- **route** : Server API endpoint definitions
<br/> <br/> <br/>

<div>
<br/>

**Special files**
⚠️ **Warning :** <br/> It's not possible to create routes other than with the file-system based router

- **/error** (root level) : Unexpected global error
- **default** : (advanced) Fallback UI for parallel routes
</div>
<!-- .element: class="fragment" data-fragment-index="1"-->

Expand Down
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.1-naming-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-page.png" class="routing-naming-example " />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.2-naming-layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-layout.png" class="routing-naming-example " />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.3-naming-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-template.png" class="routing-naming-example " />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.4-naming-loading.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-loading.png" class="routing-naming-example " />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.5-naming-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-error.png" class="routing-naming-example " />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.6-naming-global-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-global-error.png" class="routing-naming-example " />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.7-naming-notfound.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-notfound.png" class="routing-naming-example " />
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/10.8-naming-route.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- .slide: class="with-code" -->

<style>
.routing-naming-example {
width: 1500px;
height: auto;
}
</style>

# Routing

## Conventions

<img src="./assets/images/02-routing/naming-route.png" class="routing-naming-example " />
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<!-- .slide: class="two-column with-code" -->

<style>
.routing-component-hierarchy {
width: 1700px;
height: auto;
}
</style>

# Routing

## File hierarchy

File components are rendered and nested in a specific order :

![full-width](./assets/images/component-hierarchy.png)
<img src="./assets/images/02-routing/component-hierarchy.png" class="routing-component-hierarchy" />

Notes:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<!-- .slide: class="two-column with-code" -->

<style>
.routing-component-nesting {
width: 1400px;
height: auto;
}
</style>

# Routing

## Nested file hierarchy

Nested routes = nested components

![](./assets/images/component-nesting.png)
<img src="./assets/images/02-routing/component-nesting.png" class="routing-component-nesting" />

Notes:

Expand Down
14 changes: 14 additions & 0 deletions docs/markdown/02-routing/20-colocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ They will not be interpreted as routes :

<img src="./assets/images/02-routing/colocation.png" class="routing-colocation-img" />

##--##

<br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/>

<div>

**⚠️ Warning**

- It can create confusion
- May conflict with future conventions

</div>
<!-- .element: class="fragment" data-fragment-index="1"-->

Notes:

La colocation de fichier permet d'envisager toute structure de projet
Expand Down
12 changes: 6 additions & 6 deletions docs/markdown/02-routing/31-pages-dynamic.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
Catch all segments :

```
/app/post/[...slug]/page website.com/a
website.com/a/b
website.com/a/b/c
/app/post/[...slug]/page.tsx website.com/post/a
website.com/post/a/b
website.com/post/a/b/c
...
```

Expand All @@ -32,9 +32,9 @@ Catch all segments :
Optional catch all segments :

```
/app/post/[[...slug]]/page website.com
website.com/a
website.com/a/b
/app/post/[[...slug]]/page website.com/post
website.com/post/a
website.com/post/a/b
...
```

Expand Down
9 changes: 2 additions & 7 deletions docs/markdown/02-routing/50-advanced.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<!-- .slide: class="two-column with-code " -->
<!-- .slide: class="transition bg-pink" -->

# Routing

## Advanced features

- Parallel routing
- Intercepting routes
# Routing : Advanced Patterns

Notes:

Expand Down
4 changes: 2 additions & 2 deletions docs/markdown/02-routing/60-lab.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
- Employees pages (List, Detail, Edit, Create)
- Expenses page (List, Single)

**2. Add some metadatas (title, description)**

**3. Create the application layouts**

- Authentication layout for the login page
- Dashboard layout for all the rest

**Bonus : Add some metadatas (title, description)**

<br/> <br/>

**ℹ️ Running the lab**<br/>
Expand Down
7 changes: 7 additions & 0 deletions docs/markdown/08-rendering-methods/70-attendance-sheet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- .slide: class="exercice" -->

## Lab

# But just one thing first

<img src="./assets/images/08-rendering/meme.jpg" class="meme-70" />
Empty file.
3 changes: 3 additions & 0 deletions docs/markdown/20-conclusion/00-title.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- .slide: class="transition bg-pink" -->

# Conclusion
Loading

0 comments on commit 795468d

Please sign in to comment.