Skip to content

Commit

Permalink
Merge pull request #65 from nepalcodes/LogoFavicon
Browse files Browse the repository at this point in the history
added favicon and logo to home page
  • Loading branch information
binamkayastha authored Jul 6, 2024
2 parents 137a593 + 27bd0ca commit 450f7f5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nepalingo-web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nepalingo</title>

Expand Down
Binary file removed nepalingo-web/public/NepaLingoLogo.png
Binary file not shown.
Binary file added nepalingo-web/public/favicon.ico
Binary file not shown.
Binary file added nepalingo-web/src/assets/NepaLingoLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nepalingo-web/src/assets/logo.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 nepalingo-web/src/components/userAuth/UserAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const User_auth: React.FC = () => {
setError(null);
setSuccess(false);

if (username == "") {
if (action === "Sign Up" && username == "") {
setError("Please enter a username");
return;
}
Expand Down
7 changes: 6 additions & 1 deletion nepalingo-web/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import { useLocation } from "react-router-dom";
import logo from "../../assets/logo.png";

const Home: React.FC = () => {
const location = useLocation();
Expand All @@ -14,7 +15,11 @@ const Home: React.FC = () => {
</div>
<div className="flex flex-col items-center">
<div className="w-40 h-40 border-2 border-white rounded-full flex items-center justify-center">
<span className="text-3xl font-bold">Logo</span>
<img
src={logo}
alt="Nepalingo Logo"
className="w-full h-full object-contain"
/>
</div>
<div className="text-center mt-4">
<p className="text-3xl font-bold">Nepalingo</p>
Expand Down

0 comments on commit 450f7f5

Please sign in to comment.