-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin): post sign up page [EP-2179]
- Loading branch information
1 parent
aded5c0
commit 1463f31
Showing
9 changed files
with
185 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
Copyright 2018-2020 National Geographic Society | ||
Use of this software does not constitute endorsement by National Geographic | ||
Society (NGS). The NGS name and NGS logo may not be used for any purpose without | ||
written permission from NGS. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed | ||
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { APP_NAME, ENABLE_PUBLIC_ACCESS } from 'config'; | ||
import { Button } from '@marapp/earth-components'; | ||
|
||
import './styles.scss'; | ||
import { useAuth0 } from 'auth/auth0'; | ||
|
||
const VerifyEmail = ({resetStore}) => { | ||
const {logout} = useAuth0(); | ||
|
||
return ( | ||
<div className="c-not-found marapp-qa-notfound"> | ||
<div className="not-found--container"> | ||
<h1 className="ng-text-display-l ng-color-primary">Confirm your email</h1> | ||
<h3 className="ng-text-display-m ng-color-ultraltgray">One last step needed. </h3> | ||
<p className="ng-text-edit-s"> | ||
Please follow the instructions in the message sent to your email account to complete the sign-up | ||
process. <br/> | ||
You will be able to see content when an owner assigns you to an organization. | ||
</p> | ||
{ENABLE_PUBLIC_ACCESS && ( | ||
<> | ||
<p>Until then you can still browse content as public user by logging out.</p> | ||
<Button onClick={() => { | ||
logout(); | ||
}} className="-light"> | ||
Browse {APP_NAME} as a public user | ||
</Button></>)} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default VerifyEmail; |
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,28 @@ | ||
/* | ||
Copyright 2018-2020 National Geographic Society | ||
Use of this software does not constitute endorsement by National Geographic | ||
Society (NGS). The NGS name and NGS logo may not be used for any purpose without | ||
written permission from NGS. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed | ||
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
import { connect } from 'react-redux'; | ||
import VerifyEmail from './component'; | ||
|
||
export default connect( | ||
null, | ||
(dispatch) => ({ | ||
resetStore: () => dispatch({type: 'GLOBAL/resetStore'}), | ||
}))(VerifyEmail); |
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,40 @@ | ||
/* | ||
Copyright 2018-2020 National Geographic Society | ||
Use of this software does not constitute endorsement by National Geographic | ||
Society (NGS). The NGS name and NGS logo may not be used for any purpose without | ||
written permission from NGS. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed | ||
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
@import '~styles/config'; | ||
|
||
.c-not-found { | ||
position: relative; | ||
width: 100%; | ||
min-height: 100vh; | ||
color: $marapp-gray-0; | ||
display: flex; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
background-size: cover; | ||
background-position: center; | ||
background-color: $marapp-gray-7; | ||
|
||
.not-found--container { | ||
padding: $space-1 * 6; | ||
max-width: 800px; | ||
} | ||
} |
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