Skip to content

Commit e6d7115

Browse files
committed
Add screenshot
1 parent 95b1afb commit e6d7115

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Kirby Playground
22

3+
![An overview of different button styles](https://github.com/user-attachments/assets/c33d7d9e-70b9-431f-a811-932a1cd62943)
4+
35
## Usage
46

57
1. Create your tests as snippets in `/site/snippets/playground/`
@@ -9,11 +11,11 @@ For example, if you have a snippet named `buttons.php`, it will be available at
911

1012
## Features
1113

12-
- Custom route handling for `/playground/(:any?)`
13-
- Site method `playgroundLinks()` that scans the playground snippets directory and creates a navigation list
14-
- Components are rendered through virtual pages, without requiring actual page files
15-
- Loads CSS files from `assets/css/playground/[component-name].css` and a global `playground.css`
16-
- Built-in fallback to a component list when accessing non-existent components
14+
- Custom route handling for `/playground/(:any?)`
15+
- Site method `playgroundLinks()` that scans the playground snippets directory and creates a navigation list
16+
- Components are rendered through virtual pages, without requiring actual page files
17+
- Loads CSS files from `assets/css/playground/[component-name].css` and a global `playground.css`
18+
- Built-in fallback to a component list when accessing non-existent components
1719

1820
## Configuration
1921

@@ -29,13 +31,13 @@ return [
2931
## Directory Structure
3032

3133
```
34+
assets/
35+
├── css/
36+
│ └── playground/
37+
│ ├── playground.css
38+
│ └── your-component.css
3239
site/
3340
├── snippets/
3441
│ └── playground/
3542
│ └── your-component.php
36-
└── assets/
37-
└── css/
38-
└── playground/
39-
├── playground.css
40-
└── your-component.css
4143
```

0 commit comments

Comments
 (0)