Skip to content

Commit

Permalink
refactor: styles are broken smh so leave only dark variant (with whit…
Browse files Browse the repository at this point in the history
…e icon)
  • Loading branch information
Nekonyx committed Mar 24, 2024
1 parent f8246df commit 6c56de7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion logo/steam-icon-dark.svg

This file was deleted.

7 changes: 2 additions & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export enum PersonaState {
LookingToPlay = 6
}

export const LOGO_URL_LIGHT =
'https://raw.githubusercontent.com/Nekonyx/next-auth-steam/8e66ce4ca6b1a424368fa6d7f14cbc0d24942d35/logo/steam.svg'

export const LOGO_URL_DARK =
'https://raw.githubusercontent.com/Nekonyx/next-auth-steam/8e66ce4ca6b1a424368fa6d7f14cbc0d24942d35/logo/steam-dark.svg'
export const LOGO_URL =
'https://raw.githubusercontent.com/Nekonyx/next-auth-steam/bc574bb62be70993c29f6f54c350bdf64205962a/logo/steam-icon-light.svg'

export const AUTHORIZATION_URL = 'https://steamcommunity.com/openid/login'
11 changes: 5 additions & 6 deletions src/steam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { TokenSet } from 'openid-client'
import {
AUTHORIZATION_URL,
EMAIL_DOMAIN,
LOGO_URL_DARK,
LOGO_URL_LIGHT,
LOGO_URL,
PROVIDER_ID,
PROVIDER_NAME
} from './constants'
Expand Down Expand Up @@ -46,10 +45,10 @@ export function Steam(
name: PROVIDER_NAME,
type: 'oauth',
style: {
logo: LOGO_URL_LIGHT,
logoDark: LOGO_URL_DARK,
bg: '#fff',
text: '#000',
logo: LOGO_URL,
logoDark: LOGO_URL,
bg: '#000',
text: '#fff',
bgDark: '#000',
textDark: '#fff'
},
Expand Down

0 comments on commit 6c56de7

Please sign in to comment.