Skip to content

Commit

Permalink
feat: setClicked after Spoo finished talking
Browse files Browse the repository at this point in the history
  • Loading branch information
12Gustavo21 committed Mar 26, 2024
1 parent 3626083 commit b803e9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/assets/components/friend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export default function Friend() {
setTimeout(() => {
setMessage("Put the music on, and enjoy!");
}, 12000);
setTimeout(() => {
setClicked(false);
}, 14000);
} else if (getLocation() === "about") {
setMessage("This is the about page!");
setTimeout(() => {
Expand All @@ -73,6 +76,9 @@ export default function Friend() {
setTimeout(() => {
setMessage("He loves to code!");
}, 8000);
setTimeout(() => {
setClicked(false);
}, 10000);
} else if (getLocation() === "techStack") {
setMessage("This is the tech stack page!");
setTimeout(() => {
Expand All @@ -84,6 +90,9 @@ export default function Friend() {
setTimeout(() => {
setMessage("He also loves to use styled-components!");
}, 8000);
setTimeout(() => {
setClicked(false);
}, 10000);
} else if (getLocation() === "projects") {
setMessage("This is the projects page!");
setTimeout(() => {
Expand All @@ -95,6 +104,9 @@ export default function Friend() {
setTimeout(() => {
setMessage("He is always learning new things!");
}, 8000);
setTimeout(() => {
setClicked(false);
}, 10000);
} else if (getLocation() === "contact") {
setMessage("This is the contact page!");
setTimeout(() => {
Expand All @@ -106,6 +118,9 @@ export default function Friend() {
setTimeout(() => {
setMessage("He is always open to new opportunities!");
}, 8000);
setTimeout(() => {
setClicked(false);
}, 10000);
}
}
};
Expand Down

0 comments on commit b803e9c

Please sign in to comment.