feat: modernize dashboard widgets
This commit is contained in:
1 parent
1a5e083fd0
commit
6f2cd7fc2b
270 files changed
+10189
-3544
No files matched your search
@@ -1,38 +1,38 @@
|
||||
---
|
||||
title: 'Date and time'
|
||||
description: 'Displays the current date and time.'
|
||||
title: "Date and time"
|
||||
description: "Displays the current date and time."
|
||||
hide_title: true
|
||||
---
|
||||
|
||||
import { AddingWidget } from '@site/src/components/widgets/adding';
|
||||
import { WidgetConfig } from '@site/src/components/widgets/configuration';
|
||||
import { WidgetHeader } from '@site/src/components/widgets/header';
|
||||
import { clockWidget } from '.';
|
||||
import { WidgetInteractionGuide } from "@site/src/components/widgets/interactions";
|
||||
|
||||
import { AddingWidget } from "@site/src/components/widgets/adding";
|
||||
import { WidgetConfig } from "@site/src/components/widgets/configuration";
|
||||
import { WidgetHeader } from "@site/src/components/widgets/header";
|
||||
import { clockWidget } from ".";
|
||||
|
||||
<WidgetHeader
|
||||
widget={clockWidget}
|
||||
categories={['Time']}
|
||||
/>
|
||||
<WidgetHeader widget={clockWidget} categories={["Time"]} />
|
||||
|
||||
The clock widget displays the current date and time in a customizable format.
|
||||
|
||||
### Screenshots
|
||||
|
||||
import localClock from './img/local.png';
|
||||
import londonClock from './img/london-with-seconds.png';
|
||||
import tokyoClock from './img/tokyo-12-hour.png';
|
||||
import localClock from "./img/local.png";
|
||||
import londonClock from "./img/london-with-seconds.png";
|
||||
import tokyoClock from "./img/tokyo-12-hour.png";
|
||||
|
||||
<div className='flex gap-1'>
|
||||
<img src={localClock} alt="clock format-24-hours timezone-local" width={128} height={128} />
|
||||
<img src={londonClock} alt="clock format-24-hours with-seconds timezone-london" width={256} height={128} />
|
||||
<img src={tokyoClock} alt="clock format-12-hours timezone-tokyo" width={256} height={128} />
|
||||
<div className="flex gap-1">
|
||||
<img src={localClock} alt="clock format-24-hours timezone-local" width={128} height={128} />
|
||||
<img src={londonClock} alt="clock format-24-hours with-seconds timezone-london" width={256} height={128} />
|
||||
<img src={tokyoClock} alt="clock format-12-hours timezone-tokyo" width={256} height={128} />
|
||||
</div>
|
||||
|
||||
<WidgetInteractionGuide />
|
||||
|
||||
### Adding the widget
|
||||
|
||||
<AddingWidget />
|
||||
|
||||
### Configuration
|
||||
|
||||
<WidgetConfig configuration={clockWidget.configuration} />
|
||||
Reference in new issue
Block a user