-
Notifications
You must be signed in to change notification settings - Fork 34
[PB-6824]:feat/new dynamic login desgin #1962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jaaaaavier
wants to merge
16
commits into
master
Choose a base branch
from
feat/new-login-design
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b38eb84
feat: new dynamic login desgin
jaaaaavier 4579bac
Merge branch 'master' into feat/new-login-design
jaaaaavier f553179
feat: new AnimatedBackground component
jaaaaavier ed9b446
feat: update button behavoiur when decrypting
jaaaaavier 69d7b73
feat: add design to singup
jaaaaavier 91c756f
Merge branch 'master' into feat/new-login-design
jaaaaavier 9ef15ab
feat: add generic background
jaaaaavier 4961a35
update for palywright test
jaaaaavier a9a24bd
Update AuthShell.tsx
jaaaaavier 607de49
Merge branch 'master' into feat/new-login-design
jaaaaavier 52d765d
Merge branch 'master' into feat/new-login-design
jaaaaavier 9d5f53b
Merge branch 'master' into feat/new-login-design
jaaaaavier 6b55cfa
feat: update desgin for more views
jaaaaavier ef7423f
Merge branch 'master' into feat/new-login-design
jaaaaavier e67f1b3
Merge branch 'master' into feat/new-login-design
jaaaaavier 171829b
Update UniversalLinkSuccessView.tsx
jaaaaavier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,141 @@ | ||
| export default function AnimatedBackground(): JSX.Element { | ||
| return ( | ||
| <> | ||
| <style>{` | ||
| @keyframes orbTL { | ||
| 0%, 100% { transform: translate(0, 0) rotate(-164.506deg); } | ||
| 33% { transform: translate(100vw, 0) rotate(-164.506deg); } | ||
| 66% { transform: translate(100vw, 100vh) rotate(-164.506deg); } | ||
| } | ||
| @keyframes orbTR { | ||
| 0%, 100% { transform: translate(0, 0); } | ||
| 33% { transform: translate(0, 100vh); } | ||
| 66% { transform: translate(-100vw, 100vh); } | ||
| } | ||
| @keyframes orbBL { | ||
| 0%, 100% { transform: translate(0, 0) rotate(-133.484deg); } | ||
| 33% { transform: translate(0, -100vh) rotate(-133.484deg); } | ||
| 66% { transform: translate(100vw, -100vh) rotate(-133.484deg); } | ||
| } | ||
| @keyframes orbBR { | ||
| 0%, 100% { transform: translate(0, 0); } | ||
| 33% { transform: translate(-100vw, 0); } | ||
| 66% { transform: translate(-100vw, -100vh); } | ||
| } | ||
| `}</style> | ||
|
|
||
| {/* Light mode orbs */} | ||
| <div | ||
| className="pointer-events-none absolute dark:hidden" | ||
| style={{ | ||
| width: '841.186px', | ||
| height: '863.451px', | ||
| top: '-300px', | ||
| left: '-300px', | ||
| background: 'rgba(0, 102, 255, 0.40)', | ||
| filter: 'blur(175px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbTL 30s ease-in-out infinite', | ||
| }} | ||
| /> | ||
| <div | ||
| className="pointer-events-none absolute dark:hidden" | ||
| style={{ | ||
| width: '932.945px', | ||
| height: '932.945px', | ||
| top: '-350px', | ||
| right: '-350px', | ||
| background: 'rgba(214, 232, 255, 0.60)', | ||
| filter: 'blur(250px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbTR 30s ease-in-out infinite 7s', | ||
| }} | ||
| /> | ||
| <div | ||
| className="pointer-events-none absolute dark:hidden" | ||
| style={{ | ||
| width: '653.061px', | ||
| height: '653.061px', | ||
| bottom: '-250px', | ||
| left: '-200px', | ||
| background: 'rgba(175, 168, 255, 0.30)', | ||
| filter: 'blur(225px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbBL 30s ease-in-out infinite 14s', | ||
| }} | ||
| /> | ||
| <div | ||
| className="pointer-events-none absolute dark:hidden" | ||
| style={{ | ||
| width: '1280px', | ||
| height: '800px', | ||
| bottom: '-400px', | ||
| right: '-400px', | ||
| background: 'rgba(128, 191, 255, 0.40)', | ||
| filter: 'blur(225px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbBR 30s ease-in-out infinite 3s', | ||
| }} | ||
| /> | ||
|
|
||
| {/* Dark mode orbs */} | ||
| <div | ||
| className="pointer-events-none absolute hidden dark:block" | ||
| style={{ | ||
| width: '841.186px', | ||
| height: '863.451px', | ||
| top: '-300px', | ||
| left: '-300px', | ||
| background: 'rgba(0, 102, 255, 0.60)', | ||
| filter: 'blur(250px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbTL 30s ease-in-out infinite', | ||
| }} | ||
| /> | ||
| <div | ||
| className="pointer-events-none absolute hidden dark:block" | ||
| style={{ | ||
| width: '932.945px', | ||
| height: '932.945px', | ||
| aspectRatio: '1/1', | ||
| top: '-350px', | ||
| right: '-350px', | ||
| background: 'rgba(77, 163, 255, 0.65)', | ||
| mixBlendMode: 'soft-light', | ||
| filter: 'blur(175px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbTR 30s ease-in-out infinite 7s', | ||
| }} | ||
| /> | ||
| <div | ||
| className="pointer-events-none absolute hidden dark:block" | ||
| style={{ | ||
| width: '765.146px', | ||
| height: '749.943px', | ||
| bottom: '-300px', | ||
| right: '-300px', | ||
| background: '#003D99', | ||
| mixBlendMode: 'overlay', | ||
| filter: 'blur(200px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbBR 30s ease-in-out infinite 3s', | ||
| }} | ||
| /> | ||
| <div | ||
| className="pointer-events-none absolute hidden dark:block" | ||
| style={{ | ||
| width: '653.061px', | ||
| height: '653.061px', | ||
| aspectRatio: '1/1', | ||
| bottom: '-250px', | ||
| left: '-200px', | ||
| background: 'rgba(107, 92, 255, 0.95)', | ||
| mixBlendMode: 'overlay', | ||
| filter: 'blur(125px)', | ||
| borderRadius: '50%', | ||
| animation: 'orbBL 30s ease-in-out infinite 14s', | ||
| }} | ||
| /> | ||
| </> | ||
| ); | ||
| } |
This file contains hidden or 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,36 @@ | ||
| import { ReactNode } from 'react'; | ||
| import { isMobile } from 'react-device-detect'; | ||
| import InternxtLogo from 'assets/icons/big-logo.svg?react'; | ||
| import AnimatedBackground from 'components/AnimatedBackground'; | ||
| import { useTranslationContext } from 'app/i18n/provider/TranslationProvider'; | ||
|
|
||
| interface AuthShellProps { | ||
| readonly children: ReactNode; | ||
| } | ||
|
|
||
| export default function AuthShell({ children }: AuthShellProps): JSX.Element { | ||
| const { translate } = useTranslationContext(); | ||
|
|
||
| return ( | ||
| <div className="relative flex h-full w-full flex-col overflow-hidden dark:bg-[#0A0F1C]"> | ||
| <AnimatedBackground /> | ||
|
|
||
| <div className="relative z-20 flex shrink-0 flex-row justify-center py-10 sm:justify-center"> | ||
| <InternxtLogo className="h-auto w-28 text-gray-100" /> | ||
| </div> | ||
|
|
||
| <div className="relative z-10 flex h-full flex-col items-center justify-center">{children}</div> | ||
|
|
||
| <div className="relative z-10 flex shrink-0 flex-col items-center justify-center space-x-0 space-y-2 py-8 text-gray-80 dark:text-gray-10 sm:flex-row sm:space-x-8 sm:space-y-0"> | ||
| {!isMobile && ( | ||
| <a href="https://internxt.com/legal" target="_blank" className="auth-footer-link"> | ||
| {translate('general.terms')} | ||
| </a> | ||
| )} | ||
| <a href="https://help.internxt.com" target="_blank" className="auth-footer-link"> | ||
| {translate('general.help')} | ||
| </a> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.