Skip to content

Commit

Permalink
Merge pull request #157 from JeevaRamanathan/fix/login_button_visibility
Browse files Browse the repository at this point in the history
fix: github login button visibility in light/dark mode
  • Loading branch information
DhanushNehru authored Oct 18, 2024
2 parents 34077de + f4d5c68 commit 7955503
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/components/GithubSignIn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import "../components/css/GithubSignIn.css";
import { Button } from "@mui/material";
import { useAuth } from "../context/AuthContext.js";

const GithubSignIn = () => {
Expand All @@ -23,16 +23,31 @@ const GithubSignIn = () => {
};

return loading ? null : (
<button onClick={handleSignIn} className="github-sign-in-button">
<Button
variant="outlined"
onClick={handleSignIn}
sx={[
(theme) => ({
marginLeft: "5px",
bgcolor: theme.palette.text.primary,
color: theme.palette.background.default,
border: "1px solid #E2E8F0",
fontSize: "0.8em",
cursor: "pointer",
boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)",
}),
]}
>
<img
className="github-logo"
style={{ height: "25px", width: "25px", paddingRight: "6px" }}
src="https://www.svgrepo.com/show/452211/github.svg"
loading="lazy"
alt="github logo"
/>
<span>Login with Github</span>
</button>
</Button>
);
};

export default GithubSignIn;
export default GithubSignIn;

0 comments on commit 7955503

Please sign in to comment.