fix(#78): correct image src

This commit is contained in:
草鞋没号 2022-10-30 08:37:25 +08:00
parent 3ab8a85a02
commit 71dd5078d9
1 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,4 @@
import { useState } from 'react'
import electron from '/electron.png'
import react from '/react.svg'
import vite from '/vite.svg'
import styles from 'styles/app.module.scss'
const App: React.FC = () => {
@ -13,18 +10,22 @@ const App: React.FC = () => {
<div className={styles.logos}>
<div className={styles.imgBox}>
<img
src={electron}
src='./electron.png'
style={{ height: '24vw' }}
className={styles.appLogo}
alt="electron"
/>
</div>
<div className={styles.imgBox}>
<img src={vite} style={{ height: '19vw' }} alt="vite" />
<img
src='./vite.svg'
style={{ height: '19vw' }}
alt="vite"
/>
</div>
<div className={styles.imgBox}>
<img
src={react}
src='./react.svg'
style={{ maxWidth: '100%' }}
className={styles.appLogo}
alt="logo"