Skip to content

Commit

Permalink
Homepage images to use 'StaticImage'. #94.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Jul 7, 2021
1 parent dbcd7b9 commit 437f846
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

// Core dependencies
import { Link } from "gatsby";
import { StaticImage } from "gatsby-plugin-image";
import React, { useCallback, useEffect, useRef, useState } from "react";

// App dependencies
Expand All @@ -18,7 +19,6 @@ import { Target } from "../../utils/anchor/target.model";

// Images
import burger from "../../../images/header/burger.svg";
import JXTX from "../../../images/jxtx.png";

// Styles
import * as compStyles from "./header.module.css";
Expand All @@ -31,6 +31,7 @@ const donate =
const events = "/events";
const home = "/";
const james = "/james";
const jxtx = "../../../images/jxtx.png";
const news = "/news";
const scholarships = "/scholarships";

Expand Down Expand Up @@ -86,7 +87,12 @@ function Header(props) {
})}
>
<Link className={compStyles.header__logo} to={home}>
<img alt={"JXTX"} className={compStyles.header__logo__img} src={JXTX} />
<StaticImage
alt={"JXTX"}
className={compStyles.header__logo__img}
placeholder={"NONE"}
src={jxtx}
/>
<span className={compStyles.header__logo__title}>JXTX Foundation</span>
</Link>
<nav
Expand Down
Binary file modified static/images/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 437f846

Please sign in to comment.