diff --git a/components/DropdownMenuContent/index.scss b/components/DropdownMenuContent/index.scss index e1536c42..caf82c8b 100644 --- a/components/DropdownMenuContent/index.scss +++ b/components/DropdownMenuContent/index.scss @@ -14,6 +14,13 @@ } } +.MenuLabel { + color: var(--text-tertiary); + padding: $unit * 1.5 $unit * 1.5; + font-size: $font-small; + font-weight: $medium; +} + .MenuItem { color: var(--text-tertiary); font-weight: $normal; diff --git a/components/GridRep/index.tsx b/components/GridRep/index.tsx index 3f406b4b..6c0990ad 100644 --- a/components/GridRep/index.tsx +++ b/components/GridRep/index.tsx @@ -136,7 +136,16 @@ const GridRep = (props: Props) => { src={`/profile/${props.user.avatar.picture}.png`} /> ) - } else return
+ } else + return ( + {t('no_user')} + ) } const linkedAttribution = () => ( diff --git a/components/Header/index.tsx b/components/Header/index.tsx index cfbd51be..94916cc0 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -19,6 +19,7 @@ import { DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, + DropdownMenuLabel, } from '~components/DropdownMenuContent' import LoginModal from '~components/LoginModal' import SignupModal from '~components/SignupModal' @@ -248,7 +249,15 @@ const Header = () => { /> ) } else { - image =
+ image = ( + {t('no_user')} + ) } return image @@ -422,7 +431,7 @@ const Header = () => { href={`/${accountState.account.user.username}` || ''} passHref > - Your profile + {t('menu.profile')} @@ -473,6 +482,9 @@ const Header = () => { items = ( <> + + {account.user ? `@${account.user.username}` : t('no_user')} + handleNewParty(e, '/new')}> @@ -482,7 +494,7 @@ const Header = () => { - Your profile + {t('menu.profile')} diff --git a/components/PartyDetails/index.tsx b/components/PartyDetails/index.tsx index 646da2c3..2a93f342 100644 --- a/components/PartyDetails/index.tsx +++ b/components/PartyDetails/index.tsx @@ -403,7 +403,16 @@ const PartyDetails = (props: Props) => { src={`/profile/${picture}.png`} /> ) - else return
+ else + return ( + {t('no_user')} + ) } const userBlock = (username?: string, picture?: string, element?: string) => { @@ -691,20 +700,36 @@ const PartyDetails = (props: Props) => {
{`${t('party.details.labels.charge_attack')} ${ chargeAttack ? 'On' : 'Off' }`} - + {`${t('party.details.labels.full_auto')} ${ fullAuto ? 'On' : 'Off' }`} - + {`${t('party.details.labels.auto_guard')} ${ fullAuto ? 'On' : 'Off' }`} diff --git a/components/Token/index.scss b/components/Token/index.scss index 7b169a37..7d08baec 100644 --- a/components/Token/index.scss +++ b/components/Token/index.scss @@ -22,4 +22,8 @@ background: var(--auto-guard-bg); color: var(--auto-guard-text); } + + &.Off { + color: var(--text-secondary); + } } diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 46116f2b..c1c96ef5 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -303,6 +303,7 @@ "language": "Language", "login": "Log in", "roadmap": "Roadmap", + "profile": "Your profile", "saved": "Saved", "settings": "Settings", "signup": "Sign up", diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index e9829d0f..083133e3 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -303,6 +303,7 @@ "guides": "攻略", "language": "言語", "login": "ログイン", + "profile": "プロフィール", "roadmap": "ロードマップ", "saved": "保存した編成", "settings": "アカウント設定", diff --git a/public/profile/npc.png b/public/profile/npc.png new file mode 100644 index 00000000..40afe761 Binary files /dev/null and b/public/profile/npc.png differ diff --git a/public/profile/npc@2x.png b/public/profile/npc@2x.png new file mode 100644 index 00000000..d443cf2b Binary files /dev/null and b/public/profile/npc@2x.png differ diff --git a/styles/globals.scss b/styles/globals.scss index 63539203..b4b59dfb 100644 --- a/styles/globals.scss +++ b/styles/globals.scss @@ -249,6 +249,10 @@ img.profile { &.light { background: $light-bg-20; } + + &.anonymous { + background: var(--anonymous-bg); + } } i.tag { diff --git a/styles/themes.scss b/styles/themes.scss index 4d661871..f6a4833e 100644 --- a/styles/themes.scss +++ b/styles/themes.scss @@ -25,7 +25,7 @@ --selected-item-bg: #{$selected--item--bg--light}; --selected-item-bg-hover: #{$selected--item--bg--light--hover}; - + --anonymous-bg: #{$anonymous--bg--light}; --placeholder-bg: #{$grey-80}; // Light - Menus @@ -164,6 +164,7 @@ --selected-item-bg: #{$selected--item--bg--dark}; --selected-item-bg-hover: #{$selected--item--bg--dark--hover}; + --anonymous-bg: #{$anonymous--bg--dark}; --placeholder-bg: #{$grey-40}; // Dark - Dialogs diff --git a/styles/variables.scss b/styles/variables.scss index 9685cefa..4ae4b0dd 100644 --- a/styles/variables.scss +++ b/styles/variables.scss @@ -148,6 +148,9 @@ $page--element--bg--dark: $grey-40; $separator--bg--light: $grey-90; $separator--bg--dark: $grey-15; +$anonymous--bg--light: $grey-80; +$anonymous--bg--dark: $grey-40; + // Color Definitions: Dialog $dialog--bg--light: $grey-100; $dialog--bg--dark: $grey-25;