From 05ac71d4b76dc10d56301ce58858fd90eeb1fe82 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 20 Oct 2025 03:56:20 -0300 Subject: moved from go to react, and added a better css --- .../webpage-shorlink/src/components/ShowUrl.jsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 web_page/webpage-shorlink/src/components/ShowUrl.jsx (limited to 'web_page/webpage-shorlink/src/components/ShowUrl.jsx') diff --git a/web_page/webpage-shorlink/src/components/ShowUrl.jsx b/web_page/webpage-shorlink/src/components/ShowUrl.jsx new file mode 100644 index 0000000..d063c5e --- /dev/null +++ b/web_page/webpage-shorlink/src/components/ShowUrl.jsx @@ -0,0 +1,22 @@ +import { useState } from "react"; +import AddUrl from "./AddUrl"; +import "./ShowUrl.css"; + +function ShowUrl() { + const [short, setShort] = useState(); + return ( +
+ +

{ + navigator.clipboard.writeText(short); + alert("Link copiado"); + }} + > + {short} +

+
+ ); +} + +export default ShowUrl; -- cgit v1.2.3