Skip to content

Commit

Permalink
added img
Browse files Browse the repository at this point in the history
  • Loading branch information
YuvaSriSai18 committed Sep 5, 2024
1 parent f8f98d3 commit ddf6d65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file added src/assets/avatar1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Box } from "@mui/material";
import avatar from "../../assets/avatar.png";
import avatar1 from '../../assets/avatar1.png'
import { Link } from "react-router-dom";
import { SocialHandles } from "../../Constants/SocialMedia";
export default function Sidebar() {
Expand All @@ -17,14 +18,14 @@ export default function Sidebar() {
margin={{ xs: "auto" }}
borderRadius={6}
border={"2px solid #000"}
p={{ xs: 1, sm: 2 }}
// p={{ xs: 1, sm: 2 }}
display="flex" // Ensure the Box container uses flexbox for alignment
alignItems="center" // Vertically center the image within the Box
justifyContent="center" // Horizontally center the image within the Box
>
<Box
component={"img"}
src={avatar}
src={avatar1}
sx={{
maxWidth: "100%", // Image will not exceed the width of the parent Box
maxHeight: "100%", // Image will not exceed the height of the parent Box
Expand Down

0 comments on commit ddf6d65

Please sign in to comment.