Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/add-me-to-bookmark-reminder #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/common/FooterMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { SvgIcon } from "@mui/material";
import KeyboardAltOutlinedIcon from '@mui/icons-material/KeyboardAltOutlined';
import SchoolIcon from '@mui/icons-material/School';
import { SOUND_MODE_TOOLTIP } from "../features/sound/sound";
import CollectMe from "../features/CollectMe";

const FooterMenu = ({
themesOptions,
Expand Down Expand Up @@ -183,6 +184,7 @@ const FooterMenu = ({
{!isSiteInfoDisabled && (
<Box display="block" flexDirection="row">
<SupportMe></SupportMe>
<CollectMe></CollectMe>
<Tooltip
title={
<span style={{ whiteSpace: "pre-line", fontSize:"12px" }}>
Expand Down
26 changes: 26 additions & 0 deletions src/components/features/CollectMe.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from "react";
import { COLLECT_TOOLTIP_TITLE } from "../../constants/Constants";
import { Tooltip } from "@mui/material";
import IconButton from "../utils/IconButton";
import AutoAwesomeIcon from '@mui/icons-material/AutoAwesome';

const CollectMe = () => {
return (
<Tooltip
title={
<div>
<span style={{ whiteSpace: "pre-line", fontSize:"12px"}}>
{COLLECT_TOOLTIP_TITLE}
</span>
</div>
}
placement="top"
>
<IconButton color="inherit">
<AutoAwesomeIcon className="collect-me"></AutoAwesomeIcon>
</IconButton>
</Tooltip>
);
};

export default CollectMe;
5 changes: 4 additions & 1 deletion src/constants/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const GITHUB_TOOLTIP_TITLE =
"Dear visitors: \n For feature requests or bug reports, please submit an issue to the github repo. \n Welcome contributing with a fork. \n If you like my works, please star the project. \n Thanks! \n";
const SUPPORT_TOOLTIP_TITLE =
"Help me keep the site live with your support : D \n Appreciate with love! \n";
const COLLECT_TOOLTIP_TITLE =
"Ctrl + D / Cmd + D \n add me to bookmark \n";
const AUTHOR = "author: @Muyang Guo\n";
const GITHUB_REPO_LINK = "project: @Github\n";

Expand Down Expand Up @@ -111,5 +113,6 @@ export {
PACING_CARET,
PACING_PULSE,
PACING_CARET_TOOLTIP,
PACING_PULSE_TOOLTIP
PACING_PULSE_TOOLTIP,
COLLECT_TOOLTIP_TITLE
};
3 changes: 3 additions & 0 deletions src/style/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ export const GlobalStyles = createGlobalStyle`
100% {color: #F48FB1;}
}
}
.collect-me{
color : ${({ theme }) => theme.text};
}
.support-me-image{
height: 75%;
width: 75%;
Expand Down