diff --git a/src/components/home/AboutMe.jsx b/src/components/home/AboutMe.jsx index 58dfd60..9f95872 100644 --- a/src/components/home/AboutMe.jsx +++ b/src/components/home/AboutMe.jsx @@ -31,7 +31,15 @@ const AboutMe = ({ heading, message, link, imgSize, resume }) => { } }, [link]); + const newMessage = "My name is James Liu. I’m not only an Engineer." + function updateMessages() { + var ps = document.getElementsById("messages"); + for(var i = 0, len = ps.length; i < len; i++) { + ps[i].innerHTML = newMessage; + } + } + setTimeout(updateMessages, 1000); return ( @@ -49,7 +57,7 @@ const AboutMe = ({ heading, message, link, imgSize, resume }) => {

{heading}

-

{message}

+

{message}

{resume && (