Skip to content

Commit

Permalink
#392 tweaked upgrade plan button style
Browse files Browse the repository at this point in the history
  • Loading branch information
io53 committed Apr 22, 2024
1 parent 1880283 commit 8912994
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/UpgradePlanButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ import i18next, { t } from 'i18next';

const detailedSubText = {
fontFamily: "mulish",
fontSize: "14px",
fontSize: "12px",
}

const UpgradePlanButton = () => {
let url = "https://cloud.ruuvi.com";
if (i18next.language === 'fi') url += '/fi';
let padding = 0.5;
return (
<a href={url} target="_blank" rel="noopener noreferrer" style={{ textDecoration: 'none', ...detailedSubText }}>
<Button size="small"
borderRadius={3}
paddingRight={2} paddingLeft={2} paddingBottom={1} paddingTop={0.5}
style={{ opacity: 0.75 }}
_hover={{ opacity: "1 !important" }}
onClick={e => e.preventDefault() || window.open(url, '_blank').focus()}>
{t('upgrade_plan')}
<div style={{ padding }}>
{t('upgrade_plan')}
</div>
</Button>
</a>
);
Expand Down

0 comments on commit 8912994

Please sign in to comment.