Skip to content

Commit

Permalink
🐛 fix : Suggested Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saiprabhu-dandanayak committed Feb 5, 2024
1 parent 43fb915 commit dc0bcef
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
30 changes: 2 additions & 28 deletions frontend/src/components/molecules/socialLogin/index.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,7 @@
import MuiTypography from "../../atoms/typography";
import { Box } from "@mui/material";
import IconComponent from "../../atoms/icon";
import { styled } from "@mui/system";

interface SocialLoginProps {
text: string;
src: string;
}

const StylesBox = styled(Box)({
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
padding: "20px 40px",
gap: "8px",
background: "#FAFCFF",
border: "1px solid #E8E8F7",
borderRadius: "12px",
width: "90px",
height: "60px",
transition: "all 0.3s ease",
cursor: "pointer",
"&:hover": {
background: "#E8E8F7",
transform: "scale(1.07)",
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.1)",
},
});
import { SocialLoginProps } from "../../../utils/interfaces";
import { StylesBox } from "./styles";

const SocialLogin = ({ text, src }: SocialLoginProps) => {
return (
Expand Down
23 changes: 23 additions & 0 deletions frontend/src/components/molecules/socialLogin/styles.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Box } from "@mui/material";
import { styled } from "@mui/system";

export const StylesBox = styled(Box)({
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
padding: "20px 40px",
gap: "8px",
background: "#FAFCFF",
border: "1px solid #E8E8F7",
borderRadius: "12px",
width: "90px",
height: "60px",
transition: "all 0.3s ease",
cursor: "pointer",
"&:hover": {
background: "#E8E8F7",
transform: "scale(1.07)",
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.1)",
},
});
5 changes: 5 additions & 0 deletions frontend/src/utils/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface SocialLoginProps {
text: string;
src: string;
}

0 comments on commit dc0bcef

Please sign in to comment.