Jay Graves 8549ebe361
Add a timer example that uses function components. (#3128)
* Start a functional timer example.

* Start on the actions.

* wip

* Clean up a bit.

* More sensible times.

* Wip

* Add canceled message.

* Add a distinction between Cancel and Clear.

* Bring timer_function up to parity with the class based example.

* Fix clippy warnings.

* cargo fmt

* Update README.

* Update examples/timer_functional/src/main.rs

Co-authored-by: Jedd Dryden <40693089+Jaffa-Cakes@users.noreply.github.com>

* Add README.md

* Fix wqREADME.md spacing.

* Add key to message iterator.

* Update to new use_effect_with signature.

---------

Co-authored-by: Jedd Dryden <40693089+Jaffa-Cakes@users.noreply.github.com>
Co-authored-by: = <=>
2023-04-05 21:39:27 +03:00

30 lines
374 B
SCSS

$font-stack: Roboto, sans-serif;
$primary-color: #008f53;
body {
font: 100% $font-stack;
color: white;
background-color: $primary-color;
}
#buttons {
text-align: right;
}
#wrapper {
overflow: hidden;
width: 100%;
}
#time {
text-align: center;
font-size: 17vh;
padding: 15% 0;
float: left;
}
#messages {
float: right;
}