Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Add discord logo
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsoft committed Nov 24, 2024
1 parent b49fc94 commit bb76a86
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pages/user/signin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { RegisterAuthRefresh } from "shared/helper.ts";
import { API } from "shared/mod.ts";
import { appendBody, Box, Color, Content, css, EmailInput, Empty, FullWidthSection, Grid, Image, isMobile, Label, mediaQueryRef, PasswordInput, PrimaryButton, Spinner, TextButton, TextInput, WebGenTheme, WriteSignal } from "webgen/mod.ts";
import "../../assets/css/main.css";
import { googleLogo } from "../../assets/imports.ts";
import { discordLogo, googleLogo } from "../../assets/imports.ts";
import { DynaNavigation } from "../../components/nav.ts";
import { handleStateChange, loginUser } from "./actions.ts";
import { state } from "./state.ts";

// @deno-types="https://raw.githubusercontent.com/lucsoft-DevTeam/lucsoft.de/master/custom.d.ts"
import backgroundImage from "../holding./resources/background.jpg";
import backgroundImage from "../holding/resources/background.jpg";

await RegisterAuthRefresh();
document.adoptedStyleSheets.push(css`
Expand Down Expand Up @@ -132,21 +132,21 @@ appendBody(
if (type == "login") {
return Grid(
PrimaryButton("Sign in with Google")
.onClick(() => {
location.href = API.auth.oauthRedirect("google");
})
.addPrefix(
Image(googleLogo, "Google Logo")
.setCssStyle("position", "absolute"),
),
.setCssStyle("scale", ".9"),
)
.onClick(() => {
location.href = API.auth.oauthRedirect("google");
}),
PrimaryButton("Sign in with Discord")
.addPrefix(
Image(discordLogo, "Discord Logo")
.setWidth("20px"),
)
.onClick(() => {
location.href = API.auth.oauthRedirect("discord");
})
// .addPrefix(
// Image(discordLogo, "Discord Logo")
// .setCssStyle("position", "absolute"),
// )
// LinkButton("Sign in with Microsoft", API.auth.oauthRedirect("microsoft"))
// .setJustifyContent("center")
// .addPrefix(
Expand Down

0 comments on commit bb76a86

Please sign in to comment.