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