mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -05:00
Add donation button to home page.
This commit is contained in:
parent
38dd135f67
commit
0139a91882
2 changed files with 30 additions and 7 deletions
|
@ -6,6 +6,7 @@ interface Props {
|
||||||
readonly contrast?: boolean;
|
readonly contrast?: boolean;
|
||||||
readonly plain?: boolean;
|
readonly plain?: boolean;
|
||||||
readonly error?: boolean;
|
readonly error?: boolean;
|
||||||
|
readonly gold?: boolean;
|
||||||
readonly iconbutton?: boolean;
|
readonly iconbutton?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,4 +126,22 @@ export default styled.button<Props>`
|
||||||
background: var(--error);
|
background: var(--error);
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
|
|
||||||
|
${(props) =>
|
||||||
|
props.gold &&
|
||||||
|
css`
|
||||||
|
color: black;
|
||||||
|
font-weight: 600;
|
||||||
|
background: goldenrod;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
filter: brightness(1.2);
|
||||||
|
background: goldenrod;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
background: goldenrod;
|
||||||
|
}
|
||||||
|
`}
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { Coffee } from "@styled-icons/boxicons-regular";
|
||||||
import { Home as HomeIcon } from "@styled-icons/boxicons-solid";
|
import { Home as HomeIcon } from "@styled-icons/boxicons-solid";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
|
@ -17,7 +18,8 @@ export default function Home() {
|
||||||
<Text id="app.navigation.tabs.home" />
|
<Text id="app.navigation.tabs.home" />
|
||||||
</Header>
|
</Header>
|
||||||
<h3>
|
<h3>
|
||||||
<Text id="app.special.modals.onboarding.welcome" />{" "}
|
<Text id="app.special.modals.onboarding.welcome" />
|
||||||
|
<br />
|
||||||
<img src={wideSVG} />
|
<img src={wideSVG} />
|
||||||
</h3>
|
</h3>
|
||||||
<div className={styles.actions}>
|
<div className={styles.actions}>
|
||||||
|
@ -26,6 +28,14 @@ export default function Home() {
|
||||||
Join testers server
|
Join testers server
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
<a
|
||||||
|
href="https://insrt.uk/donate"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer">
|
||||||
|
<Button contrast gold>
|
||||||
|
Donate to Revolt
|
||||||
|
</Button>
|
||||||
|
</a>
|
||||||
<Link to="/settings/feedback">
|
<Link to="/settings/feedback">
|
||||||
<Button contrast>Give feedback</Button>
|
<Button contrast>Give feedback</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -34,12 +44,6 @@ export default function Home() {
|
||||||
<Button contrast>Open settings</Button>
|
<Button contrast>Open settings</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Link>
|
</Link>
|
||||||
<a
|
|
||||||
href="https://gitlab.insrt.uk/revolt"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer">
|
|
||||||
<Button contrast>Source code</Button>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue