Added logo as svg

This commit is contained in:
Sarim-Sheikh-2003 2023-11-04 13:55:26 -06:00
parent 0ebb1028bc
commit 25e984ff30
7 changed files with 2830 additions and 251 deletions

1107
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@svgr/webpack": "^8.1.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",

View File

@ -1,6 +1,14 @@
import OpenPage from "./OpenPage";
// import OpenPage from "./OpenPage";
import { useNavigate } from "react-router-dom";
const DropdownMenu = () => {
const navigate = useNavigate();
const OpenPage = (arg) => {
navigate(arg);
console.log(arg);
};
return (
<div>
<button type = "button" onClick = {() => OpenPage('/JoinTheClub')}>Join the Club</button>

View File

@ -1,12 +1,19 @@
import logo from './logo.jpg';
import logo from './logo.svg';
import DropdownMenu from "./DropdownMenu";
import OpenPage from "./OpenPage";
// import OpenPage from "./OpenPage";
import { useNavigate } from "react-router-dom";
import { useState } from "react";
import { Outlet } from "react-router-dom";
import "./Header.css";
export default function Header() {
const [isDropdownVisible, setDropdownVisible] = useState(false);
const navigate = useNavigate();
const OpenPage = (arg) => {
navigate(arg);
console.log(arg);
};
const handleMouseEnter = () => {
setDropdownVisible(true);
@ -20,7 +27,7 @@ export default function Header() {
<>
<header>
<div>
<img src={logo} alt="logo" />
<img style={{background: "gray"}} onClick = {() => OpenPage('/')} src={logo} alt="logo" />
<p>Schulich Offroad</p>
</div>
<div>

View File

@ -4,7 +4,6 @@ const OpenPage = (arg) => {
const navigate = useNavigate();
navigate(arg);
console.log(arg);
};
export default OpenPage;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 479 B

1949
src/Header/logo.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 88 KiB