Skip to content

Commit

Permalink
Made my image in the hero use StaticImage component
Browse files Browse the repository at this point in the history
  • Loading branch information
l-alexandrov committed Jul 16, 2024
1 parent 16105be commit a93d171
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/@lekoarts/gatsby-theme-cara/components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
} from "@lekoarts/gatsby-theme-cara/src/styles/animations";
import Intro from "../sections/intro.mdx";
import { withPrefix } from "gatsby";
import { StaticImage } from "gatsby-plugin-image";

const Hero = ({ offset, factor = 1 }: { offset: number; factor?: number }) => (
<div sx={{ position: `relative` }}>
Expand Down Expand Up @@ -161,8 +162,8 @@ const Hero = ({ offset, factor = 1 }: { offset: number; factor?: number }) => (
textAlign: "center",
}}
>
<img
src={withPrefix("/me.jpg")}
<StaticImage
src="../../../images/me.jpg"
sx={{
borderRadius: `30rem`,
height: `30vw`,
Expand Down
File renamed without changes

0 comments on commit a93d171

Please sign in to comment.