Skip to content

Commit

Permalink
fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jun 10, 2024
1 parent 9b2a2a1 commit 38e3d7c
Showing 1 changed file with 21 additions and 34 deletions.
55 changes: 21 additions & 34 deletions src/pages/auth/login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { getGoogleAuthUrl, getAppleAuthUrl, getGitHubAuthUrl } from '~/api/auth'

import Button from '~/components/material/Button'
import Typography from '~/components/material/Typography'

export default function Login() {
Expand Down Expand Up @@ -30,51 +29,39 @@ export default function Login() {
</div>

<div class="flex flex-col items-stretch gap-4 self-stretch">
<Button
<md-filled-button
class="h-16 gap-4"
href={getGoogleAuthUrl()}
leading={
<img
src="/images/logo-google.svg"
alt=""
width={32}
height={32}
/>
}
>
<img
src="/images/logo-google.svg"
alt=""
slot="icon"
/>
Sign in with Google
</Button>
<Button
</md-filled-button>
<md-filled-button
class="h-16 gap-5 pr-7"
href={getAppleAuthUrl()}
leading={
<div class="relative size-8">
<img
src="/images/logo-apple.svg"
alt=""
width="100%"
height="100%"
style={{ 'object-fit': 'contain' }}
/>
</div>
}
>
<img
src="/images/logo-apple.svg"
alt=""
slot="icon"
/>
Sign in with Apple
</Button>
<Button
</md-filled-button>
<md-filled-button
class="h-16 gap-4"
href={getGitHubAuthUrl()}
leading={
<img
src="/images/logo-github.svg"
alt=""
width={32}
height={32}
/>
}
>
<img
src="/images/logo-github.svg"
alt=""
slot="icon"
/>
Sign in with GitHub
</Button>
</md-filled-button>
</div>

<div class="flex justify-between gap-4">
Expand Down

0 comments on commit 38e3d7c

Please sign in to comment.