-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(login): login page styles update (#299)
## Description This PR implements the styles like it is in the designs. There is a connect wallet button now which will trigger the Leo Wallet ## Related Issues closes #298 ## Changes Made - [FE] Login page changes - [FE] Moved the links constant to separate file
- Loading branch information
Showing
7 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const wordsToLink: Record<string, string> = { | ||
"Kryha Labs": "https://kryha.io", | ||
Aleo: "https://aleo.org", | ||
zPass: "https://zpass.aleo.org/", | ||
Obscura: "htpps://https://obscura.build/", | ||
"Leo Wallet": "https://www.leo.app/", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
import { Stack, Typography } from "@mui/material"; | ||
import Image from "next/image"; | ||
|
||
import { text } from "~/assets/text/index.js"; | ||
import { default as spinner } from "~/assets/images/spinner.gif"; | ||
|
||
import { text } from "~/assets/text/index.js"; | ||
import { PageLayout } from "~/containers/page-layout/index.js"; | ||
import { processTextToLink } from "~/utils/links.jsx"; | ||
import { styles } from "./styles.js"; | ||
|
||
const SPINNER_SIZE = 34; | ||
export const LoginLoading = () => { | ||
return ( | ||
<PageLayout title={text.auth.connectWallet}> | ||
<Stack alignItems="center" gap={4}> | ||
<Stack alignItems="center" gap={2}> | ||
<Typography variant="body1"> | ||
{processTextToLink(text.auth.loginDescription, text.wordsToLink)} | ||
</Typography> | ||
</Stack> | ||
|
||
// TODO: update styles | ||
export const LoginLoading = () => ( | ||
<Stack sx={styles.wrapper}> | ||
<Stack sx={styles.container}> | ||
<Stack sx={styles.progress}> | ||
<Image | ||
src={spinner} | ||
alt="spinner" | ||
width={SPINNER_SIZE} | ||
height={SPINNER_SIZE} | ||
/> | ||
</Stack> | ||
<Stack sx={styles.text}> | ||
<Typography variant="h5">{text.auth.weUseYourWallet}</Typography> | ||
<Typography variant="h5">{text.auth.weTransferToYourWallet}</Typography> | ||
<Stack sx={styles.progress}> | ||
<Image | ||
src={spinner} | ||
alt="spinner" | ||
width={SPINNER_SIZE} | ||
height={SPINNER_SIZE} | ||
/> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
); | ||
</PageLayout> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters