Compare commits
2 commits
35fa564a70
...
592adb15d3
Author | SHA1 | Date | |
---|---|---|---|
|
592adb15d3 | ||
|
abb7282869 |
1 changed files with 6 additions and 5 deletions
|
@ -48,7 +48,7 @@ export default function () {
|
|||
|
||||
setTimeout(() => {
|
||||
setShowInput(false);
|
||||
}, 10000);
|
||||
}, 900000);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
@ -82,14 +82,15 @@ export default function () {
|
|||
<form className="url-input" onSubmit={ShortenIt}>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="www.example.com"
|
||||
placeholder="http://www.example.com"
|
||||
aria-label="URL input field"
|
||||
value={url}
|
||||
onChange={(e) => setUrl(e.target.value)}
|
||||
/>
|
||||
<button type="submit">Shorten It</button>
|
||||
</form>
|
||||
{shortenedUrl && (
|
||||
|
||||
{shortenedUrl && showInput && (
|
||||
<div className="url-input shortened">
|
||||
<input type="text" readOnly value={shortenedUrl} />
|
||||
<button onClick={copyURL}>Copy</button>
|
||||
|
@ -102,8 +103,8 @@ export default function () {
|
|||
</div>
|
||||
<div className="right-side-content">
|
||||
<p>
|
||||
Shortenit is a free and open-source URL shortening service
|
||||
designed for simplicity and efficiency.
|
||||
Shortenit is a free and open-source URL shortening service designed
|
||||
for simplicity and efficiency.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue