Skip to content

Commit

Permalink
Merge pull request #41 from ai16zpartners/telegram-button
Browse files Browse the repository at this point in the history
add telegram styles
  • Loading branch information
awidearray authored Nov 16, 2024
2 parents c9098a0 + e1737d7 commit d08b6ed
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
7 changes: 7 additions & 0 deletions public/discordLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/telegramLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 1 addition & 8 deletions src/pages/auth/signin.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
justify-content: center;
gap: 12px;
padding: 12px 24px;
border-radius: 14px;
border-radius: 1000px;
font-size: 16px;
font-weight: 600;
color: white;
Expand All @@ -46,10 +46,3 @@
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.telegramContainer {
height: 48px;
width: 100%;
display: flex;
justify-content: center;
}
21 changes: 16 additions & 5 deletions src/pages/auth/signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { signIn } from "next-auth/react";
import Image from "next/image";
import styles from "./signin.module.css";
import { useEffect } from "react";
import discordLogo from "../../../public/discord.svg";
import discordLogo from "../../../public/discordLogo.svg";
import telegramLogo from "../../../public/telegramLogo.svg"

export default function SignIn() {
const handleDiscordSignIn = () => {
Expand Down Expand Up @@ -48,14 +49,24 @@ export default function SignIn() {

<div className={styles.buttonContainer}>
<button onClick={handleDiscordSignIn} className={styles.discordButton}>
<Image src={discordLogo} alt="Discord" width={100} height={100} />
<Image src={discordLogo} alt="Discord" width={24} height={24} />
Connect to Discord
</button>

<div
id="telegram-login-container"
className={styles.telegramContainer}
/>
id="telegram-login-container"
className={styles.discordButton}
style={{
backgroundColor: '#54a9eb',
color: 'white',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
padding: '14px 48px',
borderRadius: '1000px',
}}
>
</div>
</div>
</div>
);
Expand Down

0 comments on commit d08b6ed

Please sign in to comment.