Skip to content

Commit

Permalink
feat(auth): 登录页面增加注册按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaiyuxin103 committed Dec 10, 2024
1 parent 27094f0 commit 379a227
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,5 +365,6 @@
"You may not delete your personal team.": "You may not delete your personal team.",
"You may not leave a team that you created.": "You may not leave a team that you created.",
"Your email address is unverified.": "Your email address is unverified.",
"Login as :email": "Login as :email"
"Login as :email": "Login as :email",
"First time user": "First time user?"
}
3 changes: 2 additions & 1 deletion lang/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,5 +365,6 @@
"You may not delete your personal team.": "パーソナルチームを削除することはできません。",
"You may not leave a team that you created.": "自身が作成したチームを離れることはできません。",
"Your email address is unverified.": "メールアドレスが未認証です。",
"Login as :email": ":emailとしてログイン"
"Login as :email": ":emailとしてログイン",
"First time user": "初めてご利用の方"
}
3 changes: 2 additions & 1 deletion lang/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,5 +365,6 @@
"You may not delete your personal team.": "您不能删除您的个人团队。",
"You may not leave a team that you created.": "您不能离开您创建的团队。",
"Your email address is unverified.": "您的电子邮箱未经验证。",
"Login as :email": "登录为 :email"
"Login as :email": "登录为 :email",
"First time user": "第一次使用?"
}
17 changes: 15 additions & 2 deletions resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,27 @@ class="rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outl
</a>
@endif

<x-button class="ms-4">
<x-mary-button
class="btn-primary btn-sm ms-4"
type="submit"
>
{{ __('Log in') }}
</x-button>
</x-mary-button>
</div>
</form>

<hr />

<div class="text-center">
<x-mary-button
class="btn-outline btn-sm"
link="{{ route('register') }}"
label="{{ __('First time user') }}"
></x-mary-button>
</div>

<hr />

@env('local')
@foreach (['zhaiyuxin103@hotmail.com', 'zhaiyuxin103@gmail.com'] as $value)
<x-login-link
Expand Down

0 comments on commit 379a227

Please sign in to comment.