-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'new-features' into dev
- Loading branch information
Showing
20 changed files
with
445 additions
and
103 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
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
111 changes: 111 additions & 0 deletions
111
web-app/src/components/site/modal/GuestModal/AskConnectModalContent.tsx
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,111 @@ | ||
import Button from "components/base/Button"; | ||
import { ModalProps } from "components/base/Modal"; | ||
import { memo } from "react"; | ||
|
||
export interface AskConnectModalContentProps | ||
extends Omit<ModalProps, "header" | "footer" | "body"> { | ||
tryGuest: () => void; | ||
connect: () => void; | ||
} | ||
|
||
const AskConnectModalContent = ({ | ||
tryGuest, | ||
connect, | ||
...modalProps | ||
}: AskConnectModalContentProps) => { | ||
const handleClose = () => { | ||
modalProps.onClose?.(); | ||
}; | ||
|
||
const allowed = localStorage.getItem("allowed"); | ||
|
||
return ( | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
flexDirection: "column", | ||
}} | ||
> | ||
<p | ||
style={{ | ||
margin: "0", | ||
padding: "0", | ||
}} | ||
> | ||
Index is currently in a testing phase with a limited number of users. If | ||
you're interested in joining, apply for the beta—we'd love to hear from | ||
you! | ||
</p> | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
padding: "0 0 2.4rem 0", | ||
}} | ||
> | ||
<video | ||
autoPlay | ||
loop | ||
muted | ||
playsInline | ||
className={"p-0"} | ||
style={{ | ||
width: "60%", | ||
margin: "auto", | ||
}} | ||
> | ||
<source src="/video/sequence.mp4" type="video/mp4" /> | ||
</video> | ||
</div> | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "space-between", | ||
alignItems: "center", | ||
flexDirection: "row", | ||
gap: "1rem", | ||
width: "100%", | ||
}} | ||
> | ||
<div> | ||
<Button | ||
size="lg" | ||
className="mt-7 pl-8 pr-8" | ||
theme="clear" | ||
onClick={tryGuest} | ||
> | ||
Chat as guest | ||
</Button> | ||
</div> | ||
<div> | ||
{allowed ? ( | ||
<Button | ||
onClick={connect} | ||
theme="primary" | ||
size="lg" | ||
className="mt-7 pl-8 pr-8" | ||
> | ||
Connect | ||
</Button> | ||
) : ( | ||
<Button | ||
onClick={() => { | ||
window.open("https://sjxy3b643r8.typeform.com/to/phuRF52O"); | ||
}} | ||
theme="primary" | ||
size="lg" | ||
className="mt-7 pl-8 pr-8" | ||
> | ||
Apply for beta | ||
</Button> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default memo(AskConnectModalContent); |
104 changes: 104 additions & 0 deletions
104
web-app/src/components/site/modal/GuestModal/WaitBetaModalContent.tsx
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,104 @@ | ||
import Button from "components/base/Button"; | ||
import Header from "components/base/Header"; | ||
import Modal, { ModalProps } from "components/base/Modal"; | ||
import Col from "components/layout/base/Grid/Col"; | ||
import { memo } from "react"; | ||
|
||
export interface WaitBetaModalContentProps | ||
extends Omit<ModalProps, "header" | "footer" | "body"> { | ||
onCloseHandler?: () => void; | ||
} | ||
|
||
const WaitBetaModalContent = ({ | ||
onCloseHandler, | ||
...modalProps | ||
}: WaitBetaModalContentProps) => { | ||
const handleClose = () => { | ||
if (onCloseHandler) { | ||
onCloseHandler(); | ||
return; | ||
} | ||
modalProps.onClose?.(); | ||
}; | ||
|
||
return ( | ||
<div> | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
flexDirection: "column", | ||
}} | ||
> | ||
<p | ||
style={{ | ||
margin: "0", | ||
padding: "0", | ||
}} | ||
> | ||
Index is currently in a testing phase with a limited number of users. | ||
If you're interested in joining, apply for the beta—we'd love to hear | ||
from you! | ||
</p> | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
padding: "0 0 2.4rem 0", | ||
}} | ||
> | ||
<video | ||
autoPlay | ||
loop | ||
muted | ||
playsInline | ||
className={"p-0"} | ||
style={{ | ||
width: "60%", | ||
margin: "auto", | ||
}} | ||
> | ||
<source src="/video/sequence.mp4" type="video/mp4" /> | ||
</video> | ||
</div> | ||
</div> | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "space-between", | ||
alignItems: "center", | ||
flexDirection: "row", | ||
gap: "1rem", | ||
width: "100%", | ||
}} | ||
> | ||
<div> | ||
<Button | ||
size="lg" | ||
className="mt-7 pl-8 pr-8" | ||
theme="clear" | ||
onClick={handleClose} | ||
> | ||
Cancel | ||
</Button> | ||
</div> | ||
<div> | ||
<Button | ||
onClick={() => { | ||
window.open("https://sjxy3b643r8.typeform.com/to/phuRF52O"); | ||
}} | ||
theme="primary" | ||
size="lg" | ||
className="mt-7 pl-8 pr-8" | ||
> | ||
Apply for beta | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default memo(WaitBetaModalContent); |
Oops, something went wrong.