Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/assets/constants.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
export const InstagramLogo = () => (
export const InstagramLogo = ({ viewBox, height, width }) => (

<svg
aria-label='Instagram'
color='rgb(245, 245, 245)'
fill='rgb(245, 245, 245)'
height='29'
height={height}
role='img'
viewBox='32 4 113 32'
width='103'
viewBox={viewBox}
width={width}
>
<path
clipRule='evenodd'
Expand Down
9 changes: 7 additions & 2 deletions src/components/AuthForm/AuthForm.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Box, Flex, Image, Text, VStack } from "@chakra-ui/react";
import { Box, Flex, Text, VStack } from "@chakra-ui/react";
import { useState } from "react";
import Login from "./Login";
import Signup from "./Signup";
import GoogleAuth from "./GoogleAuth";
import { InstagramLogo } from "../../assets/constants";

const AuthForm = () => {
const [isLogin, setIsLogin] = useState(true);
Expand All @@ -11,7 +12,11 @@ const AuthForm = () => {
<>
<Box border={"1px solid gray"} borderRadius={4} padding={5}>
<VStack spacing={4}>
<Image src='/logo.png' h={24} cursor={"pointer"} alt='Instagram' />
<InstagramLogo height="100"
role="img"
viewBox="15 9 148 18"
width="250"
/>

{isLogin ? <Login /> : <Signup />}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Sidebar = () => {
>
<Flex direction={"column"} gap={10} w='full' height={"full"}>
<Link to={"/"} as={RouterLink} pl={2} display={{ base: "none", md: "block" }} cursor='pointer'>
<InstagramLogo />
<InstagramLogo height="29" viewBox="32 4 113 32" width="103" />
</Link>
<Link
to={"/"}
Expand Down