Skip to content

Commit

Permalink
google icon on sign in button
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvincent committed Sep 23, 2023
1 parent 476c841 commit 9695ea2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/desktop-v2/app/auth/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import Link from "next/link";
import { useRouter } from "next/navigation";
import { useEffect } from "react";
import { homeRoute } from "../meta";
import { GlobeIcon } from "@radix-ui/react-icons";
import { SupernovaGlobeLogoImage } from "@/components/icons";
import { GoogleIcon, SupernovaGlobeLogoImage } from "@/components/icons";

const AuthPage = () => {
const router = useRouter();
Expand All @@ -32,9 +31,8 @@ const AuthPage = () => {
<h1 className="text-xl text-white">Sign in</h1>
<div className="h-1" />
<Link href={supernovaAPI.getGoogleOAuthUrl()}>
{/* TODO: replace with Google logo */}
<Button bgVariant="white" className="gap-1">
<GlobeIcon /> Sign in with Google
<Button bgVariant="white" className="gap-2">
<GoogleIcon priority /> Sign in with Google
</Button>
</Link>
</div>
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-v2/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ export const SupernovaGlobeLogoImage = (props: ImageProps) => (
{...props}
/>
);

export const googleIconPath = "/icons/google-icon.png";

export const GoogleIcon = (props: ImageProps) => (
<Image
src={googleIconPath}
width={20}
height={20}
alt="Google icon"
{...props}
/>
);
Binary file added apps/desktop-v2/public/icons/google-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 9695ea2

@vercel
Copy link

@vercel vercel bot commented on 9695ea2 Sep 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.