diff --git a/index.html b/index.html
index e4b78ea..d03d427 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
-
Vite + React + TS
+ Pinyin dictation
diff --git a/src/App.css b/src/App.css
index b9d355d..873cac7 100644
--- a/src/App.css
+++ b/src/App.css
@@ -40,3 +40,7 @@
.read-the-docs {
color: #888;
}
+
+.btn {
+ margin-bottom: 5px;
+}
\ No newline at end of file
diff --git a/src/App.tsx b/src/App.tsx
index 5e1d49a..d21f9e5 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,23 +1,61 @@
import { useState } from 'react'
-import reactLogo from './assets/react.svg'
-import viteLogo from '/vite.svg'
import './App.css'
import { Button } from 'react-bootstrap';
+import Accordion from 'react-bootstrap/Accordion';
+import Form from 'react-bootstrap/Form';
+import { initials, finales } from './Data';
+import { Btn, BtnSimple } from './Btn';
+import { isEnabled, toggle } from './Utils';
function App() {
- const [count, setCount] = useState(0)
+
+ const [count, setCount] = useState(10)
+ const [pause, setPause] = useState(3)
+
+ const [ enabledInitials, setInitialsState ] = useState([] as String[])
+ const toggleInitialsState = (caption: String) => setInitialsState(toggle(enabledInitials,caption))
+
+ const [ enabledFinals, setFinalsState ] = useState([] as String[])
+ const toggleFinalsState = (caption: String) => setFinalsState(toggle(enabledFinals,caption))
return (
<>
-
- Vite + React
+ Диктант pīnyīn
+
+
+ Выберите инициали
+
+
+ {initials.map( (text) =>
+ )}
+
+
+
+ Выберите финали
+
+
+ {finales.map( (text) =>
+ )}
+
+
+
+ Параметры
+
+ Количество слогов {count}
+
+ Пауза между слогами {pause} секунд
+
+
+
+