Add comps
This commit is contained in:
parent
e20b3325e9
commit
9809eb5ef2
20
src/excalidraw-app/components/PlusAppLink.tsx
Normal file
20
src/excalidraw-app/components/PlusAppLink.tsx
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { COOKIES } from "../../constants";
|
||||||
|
|
||||||
|
export const isExcalidrawPlusSignedUser = document.cookie.includes(
|
||||||
|
COOKIES.AUTH_STATE_COOKIE,
|
||||||
|
);
|
||||||
|
|
||||||
|
const PlusAppLink = () => {
|
||||||
|
return (
|
||||||
|
<a
|
||||||
|
href={`${process.env.REACT_APP_PLUS_APP}/#excalidraw-redirect`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className="plus-button"
|
||||||
|
>
|
||||||
|
Go to Excalidraw+
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default PlusAppLink;
|
17
src/excalidraw-app/components/PlusLPLink.tsx
Normal file
17
src/excalidraw-app/components/PlusLPLink.tsx
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
const PlusLPLink = () => {
|
||||||
|
return (
|
||||||
|
<p style={{ direction: "ltr", unicodeBidi: "embed" }}>
|
||||||
|
Introducing Excalidraw+
|
||||||
|
<br />
|
||||||
|
<a
|
||||||
|
href="https://plus.excalidraw.com/plus?utm_source=excalidraw&utm_medium=banner&utm_campaign=launch"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
Try out now!
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default PlusLPLink;
|
Loading…
x
Reference in New Issue
Block a user