diff --git a/pages/email/index.tsx b/pages/email/index.tsx deleted file mode 100644 index 0e8feef..0000000 --- a/pages/email/index.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import Layout from "components/Layout"; -import Head from "next/head"; - -export default function EmailPageRoot() { - return ( - <> - - Email Signup - - - -
-

Please provide your Name & Email

- -
- -
-
- - - - -
- -
-
-
-
- -
-
-
- - ) -} - -export function getStaticProps() { - return { - props: { - body_class_name: 'h-full' - } - } -} diff --git a/pages/playground/index.tsx b/pages/playground/index.tsx deleted file mode 100644 index c50c8c5..0000000 --- a/pages/playground/index.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import Head from 'next/head' - -export default function Home() { - return ( - <> - - 🛝 Playground - - -

Playground

-
I may play with some ideas here
- - ) -} diff --git a/pages/thai/index.tsx b/pages/thai/index.tsx deleted file mode 100644 index 434f77f..0000000 --- a/pages/thai/index.tsx +++ /dev/null @@ -1,214 +0,0 @@ -import Head from 'next/head' -import { useRef, useState } from 'react'; - -const cardSpinning = [ - { transform: "rotate3D(0, 1, 0, 360deg)" }, -] - -const cardSpinningTimer = { - duration: 500, - iterations: 1, -}; - -export default function Home() { - return ( - <> - - Thai Stuff - - -
- -
-

-
- -
-
-

-
-
-
- - ) -} - -function FlippyCard() { - const cardRef = useRef(null) - const [randomeLetter, setRandomLetter] = useState({ - letter: 'āļŪ', - phono: 'ho ho', - }) - - async function _getRandomLetter() { - cardRef.current?.animate(cardSpinning, cardSpinningTimer); - - await (new Promise((res, rej) => { - setTimeout(() => { - res(true) - }, 100); - })) - - return thaiConsonantsArray[Math.floor(Math.random() * thaiConsonantsArray.length)] - } - - return ( -
-
-

{randomeLetter.letter}

-

{randomeLetter.phono}

-
-
- - -
-
- ) -} - - -const thaiConsonantsArray: LetterType[] = [ - { - letter: 'āļ', - phono: 'ko kai', - }, - { - letter: 'āļ‚', - phono: 'kho khai', - }, - { - letter: 'āļ„', - phono: 'kho khon', - }, - { - letter: 'āļ‡', - phono: 'ngo ngoo', - }, - { - letter: 'āļˆ', - phono: 'cho chan', - }, - { - letter: 'āļ‰', - phono: 'so chan', - }, - { - letter: 'āļŠ', - phono: 'so chon', - }, - { - letter: 'āļ‹', - phono: 'so san', - }, - { - letter: 'āļŒ', - phono: 'so cho', - }, - { - letter: 'āļ', - phono: 'yo ning', - }, - { - letter: 'āļŽ', - phono: 'do dek', - }, - { - letter: 'āļ', - phono: 'to tao', - }, - { - letter: 'āļ', - phono: 'tho thon', - }, - { - letter: 'āļ‘', - phono: 'tho thung', - }, - { - letter: 'āļ’', - phono: 'tho tho', - }, - { - letter: 'āļ“', - phono: 'no nen', - }, - { - letter: 'āļš', - phono: 'bo bai', - }, - { - letter: 'āļ›', - phono: 'po pao', - }, - { - letter: 'āļž', - phono: 'pho phan', - }, - { - letter: 'āļĄ', - phono: 'mo mi', - }, - { - letter: 'āļ', - phono: 'fo fan', - }, - { - letter: 'āļŸ', - phono: 'fo fa', - }, - { - letter: 'āļ ', - phono: 'pho phran', - }, - { - letter: 'āļ', - phono: 'fo fan', - }, - { - letter: 'āļŠ', - phono: 'so san', - }, - { - letter: 'āļĻ', - phono: 'so si', - }, - { - letter: 'āļĐ', - phono: 'so so', - }, - { - letter: 'āļŠ', - phono: 'so san', - }, - { - letter: 'āļŦ', - phono: 'ho hin', - }, - { - letter: 'āļŽ', - phono: 'lo ling', - }, - { - letter: 'āļŪ', - phono: 'ho ho', - }, -]; - -interface LetterType { - letter: string, - phono: string, -}