Make upgrade banner bigger

pull/584/head
binwiederhier 2023-01-09 17:56:51 -05:00
parent a6564fb43c
commit a4529617cc
3 changed files with 10 additions and 9 deletions

View File

@ -42,7 +42,6 @@ import (
reset daily Limits for users reset daily Limits for users
Make sure account endpoints make sense for admins Make sure account endpoints make sense for admins
UI: UI:
- Align size of message bar and upgrade banner
- flicker of upgrade banner - flicker of upgrade banner
- JS constants - JS constants
- useContext for account - useContext for account

View File

@ -200,12 +200,8 @@ const Stats = () => {
{" "}{account.tier ? `(with ${account.tier.name} tier)` : `(no tier)`} {" "}{account.tier ? `(with ${account.tier.name} tier)` : `(no tier)`}
</> </>
} }
{account.role === "user" && account.tier && {account.role === "user" && account.tier && account.tier.name}
<>{account.tier.name}</> {account.role === "user" && !account.tier && t("account_usage_tier_none")}
}
{account.role === "user" && !account.tier &&
t("account_usage_tier_none")
}
{config.enable_payments && account.role === "user" && (!account.tier || !account.tier.paid) && {config.enable_payments && account.role === "user" && (!account.tier || !account.tier.paid) &&
<Button <Button
variant="outlined" variant="outlined"

View File

@ -182,20 +182,26 @@ const UpgradeBanner = () => {
background: "linear-gradient(150deg, rgba(196, 228, 221, 0.46) 0%, rgb(255, 255, 255) 100%)", background: "linear-gradient(150deg, rgba(196, 228, 221, 0.46) 0%, rgb(255, 255, 255) 100%)",
}}> }}>
<Divider/> <Divider/>
<ListItemButton onClick={() => setDialogOpen(true)}> <ListItemButton onClick={() => setDialogOpen(true)} sx={{pt: 2, pb: 2}}>
<ListItemIcon><CelebrationIcon sx={{ color: "#55b86e" }} fontSize="large"/></ListItemIcon> <ListItemIcon><CelebrationIcon sx={{ color: "#55b86e" }} fontSize="large"/></ListItemIcon>
<ListItemText <ListItemText
sx={{ ml: 1 }} sx={{ ml: 1 }}
primary={"Upgrade to ntfy Pro"} primary={"Upgrade to ntfy Pro"}
secondary={"Reserve topics, more messages & emails, bigger attachments"} secondary={"Reserve topics, more messages & emails, and larger attachments"}
primaryTypographyProps={{ primaryTypographyProps={{
style: { style: {
fontWeight: 500, fontWeight: 500,
fontSize: "1.1rem",
background: "-webkit-linear-gradient(45deg, #09009f, #00ff95 80%)", background: "-webkit-linear-gradient(45deg, #09009f, #00ff95 80%)",
WebkitBackgroundClip: "text", WebkitBackgroundClip: "text",
WebkitTextFillColor: "transparent" WebkitTextFillColor: "transparent"
} }
}} }}
secondaryTypographyProps={{
style: {
fontSize: "1rem"
}
}}
/> />
</ListItemButton> </ListItemButton>
<UpgradeDialog <UpgradeDialog