Skip to content

Commit

Permalink
fix: the logo is placed in a static resource
Browse files Browse the repository at this point in the history
  • Loading branch information
王观伟 committed Aug 1, 2024
1 parent 53f912e commit 767f792
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
File renamed without changes
12 changes: 7 additions & 5 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import React, { useEffect, useState } from 'react';
import { Box, AppBar, Stack, Link, Button } from '@mui/material';
import logoSvg from '@/asset/img/logo.svg';
import Image from 'next/image';

import Search from './search';

Expand Down Expand Up @@ -55,14 +57,14 @@ const Header = () => {
justifyContent='space-between'
>
<Stack direction='row' alignItems='center'>
<Box
component='img'
src='/tools/logo.svg'
<Image
src={logoSvg}
alt=''
onClick={() => {
window.open('/', '_self');
}}
sx={{ ml: 5, mr: 10, cursor: 'pointer' }}
/>
style={{ marginLeft: 40, marginRight: 80, cursor: 'pointer' }}
></Image>

<Stack direction='row' gap={5} alignItems='center'>
{NAV_LINK.map((item) => (
Expand Down

0 comments on commit 767f792

Please sign in to comment.