96 lines
1.4 KiB
Markdown
96 lines
1.4 KiB
Markdown
|
|
---
|
||
|
|
theme: ./
|
||
|
|
layout: cover
|
||
|
|
background: https://images.unsplash.com/photo-1530819568329-97653eafbbfa?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2092&q=80
|
||
|
|
themeConfig:
|
||
|
|
primary: '#4d7534'
|
||
|
|
---
|
||
|
|
|
||
|
|
# Presentation title
|
||
|
|
|
||
|
|
Presentation subtitle
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# Slide Title
|
||
|
|
|
||
|
|
Slide Subtitle
|
||
|
|
|
||
|
|
* Slide bullet text
|
||
|
|
* Slide bullet text
|
||
|
|
* Slide bullet text
|
||
|
|
* Slide bullet text
|
||
|
|
* Slide bullet text
|
||
|
|
|
||
|
|
---
|
||
|
|
layout: image-right
|
||
|
|
image: https://source.unsplash.com/collection/94734566/1920x1080
|
||
|
|
---
|
||
|
|
|
||
|
|
# Slide Title
|
||
|
|
|
||
|
|
Colons can be used to align columns.
|
||
|
|
|
||
|
|
| Tables | Are | Cool |
|
||
|
|
| ------------- |:-------------:| -----:|
|
||
|
|
| col 3 is | right-aligned | $1600 |
|
||
|
|
| col 2 is | centered | $12 |
|
||
|
|
| zebra stripes | are neat | $1 |
|
||
|
|
|
||
|
|
---
|
||
|
|
layout: section
|
||
|
|
---
|
||
|
|
|
||
|
|
# Section Title
|
||
|
|
|
||
|
|
---
|
||
|
|
layout: statement
|
||
|
|
---
|
||
|
|
|
||
|
|
# Statement
|
||
|
|
|
||
|
|
---
|
||
|
|
layout: fact
|
||
|
|
---
|
||
|
|
|
||
|
|
# 100%
|
||
|
|
Fact information
|
||
|
|
|
||
|
|
---
|
||
|
|
layout: quote
|
||
|
|
---
|
||
|
|
|
||
|
|
# "Notable quote"
|
||
|
|
Attribution
|
||
|
|
|
||
|
|
---
|
||
|
|
layout: image-left
|
||
|
|
image: https://source.unsplash.com/collection/94734566/1920x1080
|
||
|
|
---
|
||
|
|
|
||
|
|
# Code
|
||
|
|
|
||
|
|
```ts {all|2|1-6|all}
|
||
|
|
interface User {
|
||
|
|
id: number
|
||
|
|
firstName: string
|
||
|
|
lastName: string
|
||
|
|
role: string
|
||
|
|
}
|
||
|
|
|
||
|
|
function updateUser(id: number, update: Partial<User>) {
|
||
|
|
const user = getUser(id)
|
||
|
|
const newUser = { ...user, ...update }
|
||
|
|
saveUser(id, newUser)
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
layout: center
|
||
|
|
class: "text-center"
|
||
|
|
---
|
||
|
|
|
||
|
|
# Learn More
|
||
|
|
|
||
|
|
[Documentations](https://sli.dev) / [GitHub Repo](https://github.com/slidevjs/slidev)
|