Skip to content

Commit

Permalink
Create layout
Browse files Browse the repository at this point in the history
  • Loading branch information
xBourner authored Feb 23, 2024
1 parent ffe1187 commit a2523fd
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions pages/configuration/layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: Layout
layout: home
nav_order: 4
parent: Configuration
---

# Configuration

Add the following config to a card

```yaml
title: Grid layout
type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: repeat(3, minmax(0px, 1fr))
grid-template-rows: auto
grid-template-areas: |
"header . ."
"status . ."
"favorit . ."
"room1 room2 room3"
"room4 room5 room6"
"footer footer footer"
mediaquery:
'(max-width: 600px)':
grid-template-columns: repeat(2, minmax(0px, 1fr))
grid-template-areas: |
"header header"
"status status"
"favorit favorit"
"room1 room2"
"room3 room4"
"room5 room5"
'(max-width: 1000px)':
grid-template-columns: repeat(2, minmax(0px, 1fr))
grid-template-areas: |
"header header"
"status status"
"favorit favorit"
"room1 room2"
"room3 room4"
"room5 room6"
'(max-width: 1200px)':
grid-template-columns: repeat(3, minmax(0px, 1fr))
grid-template-areas: |
"header header ."
"status status ."
"favorit favorit ."
"room1 room2 room3"
"room4 room5 room6"
cards:
- type: custom:decluttering-card
view_layout:
grid-area: header
template: header_card

```

You can add your own cards or more decluttering cards with templates.

0 comments on commit a2523fd

Please sign in to comment.