CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/auth/password-reset-done.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Alert, Layout } from "antd";
7
import Footer from "components/landing/footer";
8
import Head from "components/landing/head";
9
import Header from "components/landing/header";
10
import { Customize } from "lib/customize";
11
import withCustomize from "lib/with-customize";
12
import { LOGIN_STYLE } from "components/auth/shared";
13
14
export default function Home({ customize }) {
15
return (
16
<Customize value={customize}>
17
<Head title={"Forgot your Password?"} />
18
<Layout>
19
<Header page="sign-in" />
20
<Layout.Content style={{ backgroundColor: "white" }}>
21
<div style={LOGIN_STYLE}>
22
<Alert
23
style={{ marginTop: "20px" }}
24
message={<b>Success</b>}
25
description={
26
<div style={{ fontSize: "12pt" }}>
27
Password successfully set. You are now signed in using your
28
new password.
29
</div>
30
}
31
type="success"
32
showIcon
33
/>
34
</div>
35
<Footer />
36
</Layout.Content>
37
</Layout>
38
</Customize>
39
);
40
}
41
42
export async function getServerSideProps(context) {
43
return await withCustomize({ context });
44
}
45
46