diff --git a/docs/css/styles.css b/docs/css/styles.css index 5654baa..ed7d61e 100644 --- a/docs/css/styles.css +++ b/docs/css/styles.css @@ -26,11 +26,15 @@ table { .sample-container { margin: 0 auto; - width: 700px; + width: 600px; padding: 20px; border: 1px solid lightblue; border-radius: 6px; box-shadow: 2px 8px 10px rgb(70, 70, 70); + margin-bottom: 20px; + & input, select { + width: 90%; + } } .contenedor { @@ -39,11 +43,17 @@ table { padding: 0 20px; } -header, -main { +header, main { text-align: left; } +details { + margin-bottom: 20px; + border: 1px solid grey; + border-radius: 10px; + padding: 16px; +} + .emoji-image { font-size: 24px; } @@ -179,7 +189,7 @@ div.image-sample img { } .sample-container { - max-width: 100%; + max-width: 80%; } div.theme-picker { diff --git a/docs/index.html b/docs/index.html index 20d1298..05fc2dd 100644 --- a/docs/index.html +++ b/docs/index.html @@ -36,7 +36,7 @@

Speak-it JS: a JavaScript Library

Speakit JS is a JavaScript library to an easiest implement of Speech Synthesis API.

- Toast-It sample code + Toast-It sample code

This web API let you take a sentence or paragraph written like this, and make it audible through the JavaScript native API. Every modern web browser has the capability to speech any text in many languages. In the link 👆 previously shared you'll find the version compatibility according to the different web browsers available in the market.

Can't wait to try it out the Full Experiencie? Come here 👀

@@ -62,27 +62,30 @@

Reading a text

-
-

Take a look of Speakit-JS library here

- - - -
+

Take a quick look of Speakit-JS library

+
+ Demo +
+ + + +
+

@@ -154,4 +157,4 @@

More information

- + \ No newline at end of file diff --git a/docs/js/main.js b/docs/js/main.js index e793682..07d601e 100644 --- a/docs/js/main.js +++ b/docs/js/main.js @@ -9,7 +9,6 @@ const applyThemePicked = ()=> localStorage.getItem('themePicked') || 'auto' // Main function document.documentElement.style.setProperty('color-scheme', applyThemePicked()) - emojiSun.addEventListener('click', ()=> { document.documentElement.style.setProperty('color-scheme', 'Light') localStorage.setItem('themePicked', 'Light') @@ -21,5 +20,5 @@ emojiMoon.addEventListener('click', ()=> { buttonRead.addEventListener("click", ()=> { let textToRead = inputText.value.trim() - textToRead && Speakit.readText(textToRead, selectedLanguage.value) + textToRead && Speakit.readText(textToRead, selectedLanguage.value) }) // Siete pronti per trovare una pizza, oppure due? \ No newline at end of file