Skip to content

Commit 651505f

Browse files
committed
feat: better sharing description
1 parent f2df46e commit 651505f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/EndScreen.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ import { Twitter, Atom, Github } from "lucide-react";
33
import VueLogo from "./VueLogo";
44

55
const EndScreen: React.FC = () => {
6-
const shareText = "I just built my own Mini Vue.js! 🚀 #SourceBook #VueJS";
6+
const shareText =
7+
"Just explored Vue.js core concepts through this interactive hand-drawn journey! 🤯 Understanding Reactivity & VDOM is so much easier this way. 🚀 #SourceBook #VueJS";
8+
const shareUrl = "https://coderserio.github.io/vue-source-book/";
79

810
const handleShare = () => {
911
window.open(
10-
`https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}`,
12+
`https://twitter.com/intent/tweet?text=${encodeURIComponent(
13+
shareText
14+
)}&url=${encodeURIComponent(shareUrl)}`,
1115
"_blank"
1216
);
1317
};

0 commit comments

Comments
 (0)