# 作例

どれも検査を通り、[試し環境](https://niho.life/developer/living-surface-emulator/sdk-1.0.0) で選んで動かせます。日本語と英語、動きを減らす設定、予定なし、満席・受付終了、予定を作れない会員を扱っています。元にして、色・文言・並びを変えてください。

## 標準

これからの予定を 3 件並べ、下に NIHO の週のカレンダーを置きます。作品を作ったときに最初に入っているコードです。

- [コード](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-standard.js)・[manifest](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-standard.manifest.json)
- 並び: `{"before":true,"slot":{"name":"calendar","view":"week"}}`

## カレンダーは NIHO

月のカレンダーは NIHO の部品のまま、上に次の予定の告知、下にボタンだけを描きます。

- [コード](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-calendar.js)・[manifest](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-calendar.manifest.json)
- 並び: `{"before":true,"slot":{"name":"calendar","view":"month"},"after":true}`

## 月のポスター

写真を 1 枚使った、ポスターのような月の予定です。月を移せます。写真が無くても同じ大きさで描けます。

- [コード](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-matsuri.js)・[manifest](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-matsuri.manifest.json)
- 並び: `{"before":true,"slot":{"name":"calendar","view":"week"},"after":true}`

## 平面図

場所ごとの空きを SVG の平面図で見せます。日と時刻を変え、空いている場所を押すと予約の作成を開きます。NIHO の部品は使いません。

- [コード](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-floor-plan.js)・[manifest](https://niho.life/developer/docs/living-surfaces/sdk-1.0.0/example-floor-plan.manifest.json)
- 並び: `{"before":true}`
