generated from atls-lab/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from atls/feat/pages-regisrtation
feat:registration page
- Loading branch information
Showing
20 changed files
with
1,074 additions
and
701 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from '@app/registration-page' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "@app/registration", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"private": true, | ||
"main": "src/index.ts", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"dependencies": { | ||
"@app/main-logo": "workspace:*", | ||
"@ui/background": "workspace:*", | ||
"@ui/button": "workspace:*", | ||
"@ui/icons": "workspace:*", | ||
"@ui/layout": "workspace:*", | ||
"@ui/text": "workspace:*", | ||
"@ui/theme": "workspace:*" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": "*", | ||
"react": "*", | ||
"react-dom": "*" | ||
}, | ||
"devDependencies": { | ||
"@emotion/react": "11.11.4", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "18.3.0", | ||
"react-intl": "6.6.8" | ||
} | ||
} |
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 @@ | ||
export * from './registration.component.js' |
38 changes: 38 additions & 0 deletions
38
app/fragments/app-registration/src/registration.component.tsx
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,38 @@ | ||
import { Background } from '@ui/background' | ||
import { useTheme } from '@emotion/react' | ||
|
||
import React from 'react' | ||
import { useIntl } from 'react-intl' | ||
|
||
import { MainLogo } from '@app/main-logo' | ||
import { Button } from '@ui/button' | ||
import { GitHubIcon } from '@ui/icons' | ||
import { Box } from '@ui/layout' | ||
import { Column } from '@ui/layout' | ||
import { Text } from '@ui/text' | ||
import { ThemeType } from '@ui/theme' | ||
|
||
const Registration: React.FC = () => { | ||
const theme = useTheme() as ThemeType | ||
const { formatMessage } = useIntl() | ||
return ( | ||
<Background backgroundUrl='url(/Bg.png)'> | ||
<Column margin={theme.spaces.tb180lra} height='auto'> | ||
<MainLogo /> | ||
<Box justifyContent='center'> | ||
<Button variant='blackBackgroundButton' shape='rectangle' size='bigRoundedPadding'> | ||
<GitHubIcon width={theme.spaces.bigDecreased} height={theme.spaces.bigDecreased} /> | ||
<Text | ||
fontSize={theme.fontSizes.normal.semiIncreased} | ||
fontWeight={theme.fontWeights.medium} | ||
> | ||
{formatMessage({ id: 'registration-page.login-button' })} | ||
</Text> | ||
</Button> | ||
</Box> | ||
</Column> | ||
</Background> | ||
) | ||
} | ||
|
||
export { Registration } |
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,24 @@ | ||
{ | ||
"name": "@app/registration-page", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"private": true, | ||
"main": "src/index.ts", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": "*", | ||
"react": "*", | ||
"react-dom": "*" | ||
}, | ||
"devDependencies": { | ||
"@emotion/react": "11.11.4", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "18.3.0", | ||
"react-intl": "6.6.8" | ||
}, | ||
"dependencies": { | ||
"@app/registration": "workspace:*" | ||
} | ||
} |
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 @@ | ||
export { default } from './registration.page.js' |
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,7 @@ | ||
import { Registration } from '@app/registration' | ||
|
||
import React from 'react' | ||
|
||
const RegistrationPage: React.FC = () => <Registration /> | ||
|
||
export default RegistrationPage |
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 @@ | ||
{ | ||
"name": "@ui/background", | ||
"version": "0.0.1", | ||
"license": "BSD-3-Clause", | ||
"type": "module", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"main": "src/index.ts", | ||
"dependencies": { | ||
"@ui/layout": "workspace:*", | ||
"@ui/theme": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@emotion/react": "11.11.4", | ||
"@emotion/styled": "11.11.5", | ||
"@types/react": "18.3.3", | ||
"@types/react-dom": "18.3.0", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": "*", | ||
"@emotion/styled": "*", | ||
"react": "*", | ||
"react-dom": "*" | ||
} | ||
} |
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,32 @@ | ||
import { useTheme } from '@emotion/react' | ||
|
||
import React from 'react' | ||
import { PropsWithChildren } from 'react' | ||
import { FC } from 'react' | ||
|
||
import { Box } from '@ui/layout' | ||
import { ThemeType } from '@ui/theme' | ||
|
||
import { BackgroundProps } from './background.interfaces.js' | ||
|
||
export const Background: FC<PropsWithChildren<BackgroundProps>> = ({ | ||
children, | ||
backgroundUrl, | ||
backgroundSize, | ||
justifyContent, | ||
height, | ||
width, | ||
}) => { | ||
const theme = useTheme() as ThemeType | ||
return ( | ||
<Box | ||
background={backgroundUrl} | ||
height={height || theme.spaces.fullVh} | ||
width={width || theme.spaces.fullWidth} | ||
backgroundSize={backgroundSize || 'cover'} | ||
justifyContent={justifyContent || 'center'} | ||
> | ||
{children} | ||
</Box> | ||
) | ||
} |
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,9 @@ | ||
export interface BackgroundProps { | ||
width?: Record<string, number> | number | undefined | ||
height?: Record<string, number> | number | undefined | ||
backgroundColor?: string | Record<string, string> | ||
backgroundSize?: string | ||
alignItems?: string | ||
justifyContent?: string | ||
backgroundUrl?: string | ||
} |
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 @@ | ||
export * from './background.components.js' |
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