generated from xgeekshq/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Cátia Antunes <c.antunes@kigroup.de>
- Loading branch information
1 parent
27d2863
commit 71143e5
Showing
29 changed files
with
366 additions
and
305 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,37 @@ | ||
import Button from '@/components/Primitives/Button'; | ||
import Text from '@/components/Primitives/Text'; | ||
import Flex from '@/components/Primitives/Flex'; | ||
import { styled } from '@/styles/stitches/stitches.config'; | ||
import { NEXT_PUBLIC_ENABLE_AZURE } from '@/utils/constants'; | ||
import Icon from '@/components/icons/Icon'; | ||
|
||
const StyledFlex = styled(Flex, { width: '100%' }); | ||
|
||
type LoginSSOProps = { | ||
handleLoginAzure: () => void; | ||
}; | ||
|
||
const LoginSSO = ({ handleLoginAzure }: LoginSSOProps) => ( | ||
<StyledFlex direction="column"> | ||
<Text css={{ mt: '$24' }} heading="1"> | ||
Welcome | ||
</Text> | ||
<Text css={{ mt: '$8', color: '$primary500' }} size="md"> | ||
Choose your preferred login method. | ||
</Text> | ||
<Flex align="center" direction="column" justify="center" css={{ mt: '$32' }}> | ||
{NEXT_PUBLIC_ENABLE_AZURE && ( | ||
<Button | ||
variant="primaryOutline" | ||
onClick={handleLoginAzure} | ||
css={{ display: 'flex', width: '100%', fontWeight: '$regular' }} | ||
> | ||
<Icon css={{ width: '$60', height: '$60' }} name="microsoft" /> | ||
Login with Microsoft | ||
</Button> | ||
)} | ||
</Flex> | ||
</StyledFlex> | ||
); | ||
|
||
export default LoginSSO; |
Oops, something went wrong.