Skip to content
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

chore: use static GitHub logo image #128

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions components/Icons.tsx

This file was deleted.

1 change: 0 additions & 1 deletion import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"twind-preset-tailwind-colors": "https://esm.sh/@twind/preset-tailwind@1.1.4/colors",
"std/": "https://deno.land/std@0.182.0/",
"stripe": "https://esm.sh/stripe@11.13.0",
"tabler-icons/": "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/",
"@supabase/auth-helpers-shared": "https://esm.sh/@supabase/auth-helpers-shared@0.3.3?target=es2022",
"@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.14.0",
"feed": "https://esm.sh/feed@4.2.2"
Expand Down
7 changes: 5 additions & 2 deletions routes/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Logo from "@/components/Logo.tsx";
import Head from "@/components/Head.tsx";
import AuthForm from "@/components/AuthForm.tsx";
import OAuthLoginButton from "@/components/OAuthLoginButton.tsx";
import { GitHub } from "@/components/Icons.tsx";
import { NOTICE_STYLES } from "@/utils/constants.ts";
import { REDIRECT_PATH_AFTER_LOGIN } from "@/utils/constants.ts";
import type { State } from "@/routes/_middleware.ts";
Expand Down Expand Up @@ -78,7 +77,11 @@ export default function LoginPage(props: PageProps) {
<AuthForm type="Login" />
<hr class="my-4" />
<OAuthLoginButton provider="github">
<GitHub class="inline mr-2 h-5 w-5 align-text-top" />{" "}
<img
src="/github-mark.svg"
alt="GitHub logo"
class="inline mr-2 h-5 w-5 align-text-top"
/>
Login with GitHub
</OAuthLoginButton>
<div class="text-center text-gray-500 hover:text-black mt-8">
Expand Down
9 changes: 6 additions & 3 deletions routes/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Head from "@/components/Head.tsx";
import AuthForm from "@/components/AuthForm.tsx";
import Logo from "@/components/Logo.tsx";
import OAuthLoginButton from "@/components/OAuthLoginButton.tsx";
import { GitHub } from "@/components/Icons.tsx";
import { NOTICE_STYLES } from "@/utils/constants.ts";
import type { Handlers } from "$fresh/server.ts";
import { REDIRECT_PATH_AFTER_LOGIN } from "@/utils/constants.ts";
Expand Down Expand Up @@ -70,8 +69,12 @@ export default function SignupPage(props: PageProps) {
<AuthForm type="Signup" />
<hr class="my-4" />
<OAuthLoginButton provider="github">
<GitHub class="inline mr-2 h-5 w-5 align-text-top" />{" "}
Login with GitHub
<img
src="/github-mark.svg"
alt="GitHub logo"
class="inline mr-2 h-5 w-5 align-text-top"
/>
Signup with GitHub
</OAuthLoginButton>
<div class="text-center text-gray-500 hover:text-black mt-8">
<a href="/login">Already have an account? Log in</a>
Expand Down
1 change: 1 addition & 0 deletions static/github-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.