Merge pull request #161 from Bawbby/master

Clean up invalid invite page.
This commit is contained in:
Paul Makles 2021-09-03 11:14:22 +01:00 committed by GitHub
commit 4fec0f78cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,29 @@ export default function Invite() {
<div className={styles.preloader}> <div className={styles.preloader}>
<RequiresOnline> <RequiresOnline>
{error ? ( {error ? (
<Overline type="error" error={error} /> <div
className={styles.invite}
style={{
backgroundImage: `url('https://autumn.revolt.chat/banners/yMurJiXf45VJpbal0X2zQkm4vaXsXGaRtoPUIcvPcH')`,
width: "100%",
height: "100%",
}}>
<div className={styles.details}>
<h1>Invalid invite!</h1>
<h2>
The invite may not exist or you don't have
permission to join.
</h2>
<div style="cursor: pointer;">
<Button contrast>
<ArrowBack
size={32}
onClick={() => history.push("/")}
/>
</Button>
</div>
</div>
</div>
) : ( ) : (
<Preloader type="spinner" /> <Preloader type="spinner" />
)} )}