Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/components/login-link.tsx
5842 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Alert } from "antd";
7
import { Icon } from "./icon";
8
import Next from "@cocalc/frontend/components/next";
9
import { SiteName } from "@cocalc/frontend/customize";
10
11
export function LoginLink() {
12
return (
13
<Alert
14
type="warning"
15
style={{ margin: "15px" }}
16
description={
17
<div style={{ fontSize: "12pt" }}>
18
<Icon
19
name="sign-in"
20
style={{ fontSize: "13pt", marginRight: "10px" }}
21
/>{" "}
22
Please{" "}
23
<Next sameTab href="/auth/sign-in">
24
login to <SiteName />
25
</Next>{" "}
26
or{" "}
27
<Next sameTab href="/auth/sign-up">
28
create a <SiteName /> account
29
</Next>
30
...
31
</div>
32
}
33
/>
34
);
35
}
36
37