From cf8591de13c760a83fd23db80092445569f4d5f2 Mon Sep 17 00:00:00 2001 From: adueck Date: Mon, 24 Oct 2022 14:45:16 +0500 Subject: [PATCH] improve website --- src/App.tsx | 10 +++++---- src/demo-components/InflectionDemo.tsx | 2 +- src/demo-components/SpellingDemo.tsx | 31 +++++++++++++++----------- src/demo-components/VPBuilderDemo.tsx | 6 ++--- 4 files changed, 28 insertions(+), 21 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 697d4fe..70248b1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -76,10 +76,12 @@ function App() { showing={showing === "equatives"} handleChange={() => handleHiderClick("equatives")} > - +
+ +
+ return

Produces the inflections and plural forms (Pashto and Arabic plurals where applicable) for words

diff --git a/src/demo-components/SpellingDemo.tsx b/src/demo-components/SpellingDemo.tsx index 5625928..cca268a 100644 --- a/src/demo-components/SpellingDemo.tsx +++ b/src/demo-components/SpellingDemo.tsx @@ -41,12 +41,12 @@ function SpellingDemo({ opts, onChange }: { opts: T.TextOptions, onChange: (opts: T.TextOptions) => void, }) { - return
+ return
  • Converts text between Afghan and Pakistani spelling conventions
  • Generates diacritics for Pashto script when given phonetic script along with Pashto script
-
+
@@ -141,17 +141,22 @@ function SpellingDemo({ opts, onChange }: {
- - {[ - { - p: "زما زوی مکتب ته ځي", - f: "zmaa zooy maktab ta dzee", - }, - { - p: "دا ښه سړی دی", - f: "daa xu saRey dey", - }, - ]} +
+ {[ + { + p: "زما زوی مکتب ته ځي", + f: "zmaa zooy maktab ta dzee", + }, + { + p: "دا ښه سړی دی", + f: "daa xu saRey dey", + }, + { + p: "په دکان کې مې ډېر خلک لیدلي دي", + f: "pu dUkaan ke me Der khalk leedulee dee", + }, + ]} +
; } diff --git a/src/demo-components/VPBuilderDemo.tsx b/src/demo-components/VPBuilderDemo.tsx index eb76211..2c565ea 100644 --- a/src/demo-components/VPBuilderDemo.tsx +++ b/src/demo-components/VPBuilderDemo.tsx @@ -105,7 +105,7 @@ function VPBuilderDemo({ opts }: { const makeVerbLabel = (entry: T.DictionaryEntry): string => ( `${entry.p} - ${clamp(entry.e, 20)}` ); - return <> + return
@@ -189,7 +189,7 @@ function VPBuilderDemo({ opts }: {
- {v?.verb.entry &&
+ {v?.verb.entry &&
} - ; +
; } export default VPBuilderDemo; \ No newline at end of file