Skip to content

Commit

Permalink
import image instead of using full path
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Dec 22, 2024
1 parent 4add857 commit 560b956
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "eslint .",
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
"deploy": "gh-pages -d dist"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.7.2",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExpansionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {
function ExpansionPanel({version}: Props) {
return (
<div className={`expansion-panel expansion-panel-${version.slug}`} style={{'--expansion-color': version.themeColorHex} as React.CSSProperties}>
<div className="expansion-cover" style={{'--expansion-bg': `url(https://wowsims.github.io${version.coverSrc})`} as React.CSSProperties} />
<div className="expansion-cover" style={{'--expansion-bg': `url(${version.coverSrc})`} as React.CSSProperties} />
<div className="expansion-panel-body container">
<div className="expansion-block">
<h1 className="text-brand h2 mb-0">WoWSims</h1>
Expand Down
6 changes: 4 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ import { faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import PatreonButton from './PatreonButton'

import WoWSimsLogo from '../assets/img/WoW-Simulator-Icon.png';

function Header() {
return (
<header className="homepage-header">
<div className="container homepage-header-container">
<nav className="navbar navbar-dark flex-wrap align-items-center align-items-md-end w-100">
<div className="navbar-brand-container order-0">
<a href="#" className="navbar-brand d-flex align-items-center p-0 m-0 gap-3">
<img className="wowsims-logo" src="src/assets/img/WoW-Simulator-Icon.png" />
<img className="wowsims-logo" src={WoWSimsLogo} />
<h1 className="wowsims-title">
WoWSims
<small className="expansion-title">Classic WoW Simulations</small>
Expand All @@ -33,7 +35,7 @@ function Header() {
<div className="offcanvas offcanvas-end" tabIndex={-1} id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
<div className="offcanvas-header border-bottom">
<a href="#" className="navbar-brand d-flex align-items-center p-0 m-0 gap-3">
<img className="wowsims-logo" src="assets/img/WoW-Simulator-Icon.png" />
<img className="wowsims-logo" src={WoWSimsLogo} />
<h1 className="wowsims-title">
WoWSims
<small className="expansion-title">Classic WoW Simulations</small>
Expand Down

0 comments on commit 560b956

Please sign in to comment.