diff --git a/frontend/frontend/src/pages/Home/Home.js b/frontend/frontend/src/pages/Home/Home.js index bdfdc6f3..3b73758d 100644 --- a/frontend/frontend/src/pages/Home/Home.js +++ b/frontend/frontend/src/pages/Home/Home.js @@ -223,6 +223,22 @@ const HomeScreen = ({ stage, setStage }) => { // for stage five const [gistUrl, setGistUrl] = useState(''); + let guestHint; + switch (selectedCard) { + case CardTypes.STATS: + case CardTypes.TOP_LANGS: + guestHint = `username "${DEMO_USER}"`; + break; + case CardTypes.PIN: + guestHint = `repo "${DEMO_REPO}"`; + break; + case CardTypes.GIST: + guestHint = `Gist ID "${DEMO_GIST}"`; + break; + case CardTypes.WAKATIME: + guestHint = `WakaTime username "${DEMO_WAKATIME_USER}"`; + } + useEffect(() => { const fetchGistUrl = async (gistId) => { try { @@ -434,6 +450,11 @@ const HomeScreen = ({ stage, setStage }) => { } })()} themeSuffix={themeSuffix} + guestHint={ + isAuthenticated + ? null + : `Replace the sample ${guestHint} with your own after copying your Markdown or URL!` + } /> )} diff --git a/frontend/frontend/src/pages/Home/stages/Customize.js b/frontend/frontend/src/pages/Home/stages/Customize.js index d880c125..a5b3bfd5 100644 --- a/frontend/frontend/src/pages/Home/stages/Customize.js +++ b/frontend/frontend/src/pages/Home/stages/Customize.js @@ -60,7 +60,7 @@ const CustomizeStage = ({ return (
- Includes contributions from private repositories for more + Include contributions from private repositories for more complete and accurate stats.
- Try out GitHub-Stats-Extended with data from an example - user/repository. + Explore options using sample data. Insert your own username + in the last step.