Skip to content

Commit

Permalink
chore(docs): add documentation for additional components
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorAvelar committed Oct 6, 2022
1 parent 69944d3 commit 36b8c17
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,38 @@ In your dashboard view you use the `livewire:fda-upcoming` component.

![Upcoming matches](media/upcoming-matches.png)

### Match results

This tile displays football matches resutls from the leagues you selected in `dashboard.tiles.football_data_advanced.competitions`.

In your dashboard view you use the `livewire:fda-results` component.

```html
<x-dashboard>
<livewire:fda-results position="a1" />
</x-dashboard>
```

#### Example

![Upcoming matches](media/match-results.png)

### League standings

This tile displays the standings for one of your selected leagues, you need to use the league code as parameter for the component.

In your dashboard view you use the `livewire:fda-results` component.

```html
<x-dashboard>
<livewire:fda-standings position="a1" competition="PL"/>
</x-dashboard>
```

#### Example

![Upcoming matches](media/league-standings.png)

## Testing

``` bash
Expand Down
Binary file added media/league-standings.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 media/match-results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36b8c17

Please sign in to comment.