Skip to content

Commit

Permalink
replace logo
Browse files Browse the repository at this point in the history
  • Loading branch information
acharayaP03 committed Jan 7, 2025
1 parent fc66b80 commit 80ac4d9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 26 deletions.
42 changes: 21 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo-dark.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Sono:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<title>My Cabins</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/cabin.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Sono:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<title>My Cabins</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Binary file added public/cabin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/layouts/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Sidebar() {
<StyledSidebar>
<Logo />
<MainNav />
{/* <Uploader /> */}
<Uploader />
</StyledSidebar>
);
}
13 changes: 9 additions & 4 deletions src/ui/Common/Logo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,24 @@ const StyledLogo = styled.div`
`;

const Img = styled.img`
height: 9.6rem;
height: 3.6rem;
width: auto;
`;

const P = styled.p`
font-size: 2.2rem;
font-weight: 500;
color: var(--color-grey-600);
`;

function Logo() {
const { isDarkMode } = useDarkMode();

const srcDependingOnModeToggle = isDarkMode
? "/logo-dark.png"
: "/logo-light.png";
const srcDependingOnModeToggle = isDarkMode ? "/cabin.png" : "/cabin.png";
return (
<StyledLogo>
<Img src={srcDependingOnModeToggle} alt="Logo" />
<P>The Cabin</P>
</StyledLogo>
);
}
Expand Down

0 comments on commit 80ac4d9

Please sign in to comment.