-
Notifications
You must be signed in to change notification settings - Fork 28
Account Page #2008
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
Merged
Merged
Account Page #2008
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
6bb00c0
extract out field item component
Tortillaguy fd6478f
magic link hook wip
Tortillaguy 4d3730c
add validation
Tortillaguy 1d7e18e
update display name
Tortillaguy 3b4505e
remove sso flow
Tortillaguy 47bfb14
add comment
Tortillaguy d4c3781
delete account screen
Tortillaguy 36a8587
update permissions screen
Tortillaguy 2683109
support onboarding username
Tortillaguy 3cbd6eb
support username through magic link
Tortillaguy bd98e29
Merge branch 'dev' of github.com:ir-engine/ir-engine into IR-10552/ac…
Tortillaguy 3ac8438
rename DisplayNameScreen to UsernameScreen
Tortillaguy 2136816
polish wip
Tortillaguy b8047a8
add DM Sans
Tortillaguy 76f38c7
add link component
Tortillaguy b25940b
style polishing
Tortillaguy db01709
animate button group
Tortillaguy 559142a
adjust layout in header
Tortillaguy 4
8000
7acf94
PR cleanup
Tortillaguy 07db64e
style link
Tortillaguy d8d8105
replace capitalize library
Tortillaguy c50475d
Merge branch 'dev' into IR-10552/account-page
Tortillaguy b536cef
Merge branch 'dev' into IR-10552/account-page
SYBIOTE 8087dec
Merge branch 'dev' into IR-10552/account-page
Tortillaguy 3be2d1f
undo toolbar header changes
Tortillaguy 1732477
PR changes
Tortillaguy 2016bfd
style adjustments
Tortillaguy 2083471
Merge branch 'dev' into IR-10552/account-page
Tortillaguy 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,6 +195,7 @@ const contentStyles = ` | |
|
||
lg:px-14 | ||
lg:pt-12 | ||
|
||
` | ||
|
||
const contentContainerStyles = ` | ||
|
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.
9E81
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
packages/client-core/src/components/Settings/ButtonGroup.tsx
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,86 @@ | ||
/* | ||
CPAL-1.0 License | ||
|
||
The contents of this file are subject to the Common Public Attribution License | ||
Version 1.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://github.com/ir-engine/ir-engine/blob/dev/LICENSE. | ||
The License is based on the Mozilla Public License Version 1.1, but Sections 14 | ||
and 15 have been added to cover use of software over a computer network and | ||
provide for limited attribution for the Original Developer. In addition, | ||
Exhibit A has been modified to be consistent with Exhibit B. | ||
|
||
Software distributed under the License is distributed on an "AS IS" basis, | ||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the | ||
specific language governing rights and limitations under the License. | ||
|
||
The Original Code is Infinite Reality Engine. | ||
|
||
The Original Developer is the Initial Developer. The Initial Developer of the | ||
Original Code is the Infinite Reality Engine team. | ||
|
||
All portions of the code written by the Infinite Reality Engine team are Copyright © 2021-2025 | ||
Infinite Reality Engine. All Rights Reserved. | ||
*/ | ||
|
||
import { GlassButton } from '@ir-engine/ui/src/components/viewer/Button' | ||
import { motion } from 'motion/react' | ||
import React from 'react' | ||
|
||
interface ButtonOption { | ||
label: string | ||
onClick: () => void | ||
isPrimary?: boolean | ||
} | ||
|
||
interface ButtonGroupProps { | ||
options: ButtonOption[] | ||
className?: string | ||
} | ||
|
||
const ButtonGroup: React.FC<ButtonGroupProps> = ({ options, className = '' }) => { | ||
const containerVariants = { | ||
hidden: { opacity: 0, y: 20 }, | ||
visible: { | ||
opacity: 1, | ||
y: 0, | ||
transition: { | ||
duration: 0.3, | ||
delay: 0.1, | ||
staggerChildren: 0.1, | ||
delayChildren: 0.3 | ||
} | ||
} | ||
} | ||
|
||
const itemVariants = { | ||
hidden: { opacity: 0, y: 20 }, | ||
visible: { | ||
opacity: 1, | ||
y: 0, | ||
transition: { duration: 0.3 } | ||
} | ||
} | ||
|
||
return ( | ||
<motion.div | ||
initial="hidden" | ||
animate="visible" | ||
variants={containerVariants} | ||
className={`flex w-full max-w-xs flex-col items-center space-y-3 ${className}`} | ||
> | ||
{options.map((option, index) => ( | ||
<motion.div key={index} variants={itemVariants} className="w-full"> | ||
<GlassButton | ||
> | ||
className="w-full rounded-xl py-3.5 font-medium text-white transition-all hover:scale-105" | ||
> | ||
{option.label} | ||
</GlassButton> | ||
</motion.div> | ||
))} | ||
</motion.div> | ||
) | ||
} | ||
|
||
export default ButtonGroup |
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.