-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: update image import syntax for vite asset handling (#305)
* update image import syntax for vite asset handling Replace direct src path with image import to ensure asset asset bundling in production builds * Fix prettier issue
- Loading branch information
1 parent
bf19dda
commit 1540431
Showing
2 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,18 @@ import ProjectListing from '@hazmapper/components/Projects/ProjectListing'; | |
import styles from './layout.module.css'; | ||
import { Button } from '@tacc/core-components'; | ||
import HeaderNavBar from '@hazmapper/components/HeaderNavBar'; | ||
import hazmapperLogo from '@hazmapper/assets/[email protected]'; | ||
import nsfLogo from '@hazmapper/assets/nsf.png'; | ||
import designsafeLogo from '@hazmapper/assets/designsafe.svg'; | ||
import nheriLogo from '@hazmapper/assets/nheri.png'; | ||
|
||
const MainMenu = () => { | ||
return ( | ||
<div className={styles.root}> | ||
<HeaderNavBar /> | ||
<div className={styles.listingContainer}> | ||
<div className={styles.versionContainer}> | ||
<img | ||
src="./src/assets/[email protected]" | ||
alt="Hazmapper Logo" | ||
></img> | ||
<img src={hazmapperLogo} alt="Hazmapper Logo"></img> | ||
<div className={styles.version}>{'Version 2.19'}</div> | ||
</div> | ||
<ProjectListing /> | ||
|
@@ -53,20 +54,20 @@ const MainMenu = () => { | |
<div className={styles.sponsorContainer}> | ||
<a href="https://www.nsf.gov/"> | ||
<img | ||
src="./src/assets/nsf.png" | ||
src={nsfLogo} | ||
alt="National Science Foundation website" | ||
width="60px" | ||
/> | ||
</a> | ||
<a href="https://www.designsafe-ci.org/"> | ||
<img | ||
src="./src/assets/designsafe.svg" | ||
src={designsafeLogo} | ||
alt="NHERI DesignSafe website" | ||
width="200px" | ||
/> | ||
</a> | ||
<a href="https://www.designsafe-ci.org/about/"> | ||
<img src="./src/assets/nheri.png" alt="NHERI website" width="150px" /> | ||
<img src={nheriLogo} alt="NHERI website" width="150px" /> | ||
</a> | ||
</div> | ||
</div> | ||
|