mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
Clean up invalid invite page.
- Make it look like a valid invite page. - Add arrow to go back to home.
This commit is contained in:
parent
d368820aeb
commit
3046e413cd
1 changed files with 23 additions and 1 deletions
|
@ -54,7 +54,29 @@ export default function Invite() {
|
|||
<div className={styles.preloader}>
|
||||
<RequiresOnline>
|
||||
{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" />
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue