forked from Mirror/ollama4j
		
	| @@ -1,6 +1,6 @@ | ||||
| import React, { useEffect, useState, useRef } from 'react'; | ||||
|  | ||||
| const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentences = 1000, height = '200px', width = '100%' }) => { | ||||
| const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentences = 1000, height = '200px', width = '100%', align = 'left' }) => { | ||||
|   const [text, setText] = useState(''); | ||||
|   const [sentenceIndex, setSentenceIndex] = useState(0); | ||||
|   const [charIndex, setCharIndex] = useState(0); | ||||
| @@ -56,11 +56,13 @@ const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentenc | ||||
|         fontSize: '1rem', | ||||
|         backgroundColor: '#f4f4f4', | ||||
|         border: '1px solid #ccc', | ||||
|         textAlign: align, | ||||
|         resize: 'none', | ||||
|         whiteSpace: 'pre-wrap', | ||||
|         color: 'black', | ||||
|       }} | ||||
|     /> | ||||
|   ); | ||||
| }; | ||||
|  | ||||
| export default TypewriterTextarea; | ||||
| export default TypewriterTextarea; | ||||
| @@ -32,6 +32,7 @@ function HomepageHeader() { | ||||
|             pauseBetweenSentences={1200} | ||||
|             height='130px' | ||||
|             width='100%' | ||||
|             align='center' | ||||
|           /> | ||||
|         </div> | ||||
|         <div className={styles.buttons} > | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Amith Koujalgi
					Amith Koujalgi