mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-07 06:34:26 +01:00
39 lines
891 B
JavaScript
39 lines
891 B
JavaScript
import * as React from "react"
|
|
import * as styles from "./header.module.css"
|
|
|
|
import { graphql, useStaticQuery } from "gatsby"
|
|
import { GatsbyImage } from "gatsby-plugin-image"
|
|
|
|
const Header = () => {
|
|
const data = useStaticQuery(graphql`
|
|
query {
|
|
placeholder: file(relativePath: { eq: "logo.jpg" }) {
|
|
childImageSharp {
|
|
gatsbyImageData(
|
|
placeholder: BLURRED
|
|
transformOptions: { fit: CONTAIN }
|
|
width: 256
|
|
)
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
return (
|
|
<header id="hjem" className={styles.container}>
|
|
<GatsbyImage
|
|
image={data.placeholder.childImageSharp.gatsbyImageData}
|
|
alt="UiO Gaming logo"
|
|
/>
|
|
|
|
<h1>UiO Gaming</h1>
|
|
<p>
|
|
En hobbyforening som ønsker å skape et sosialt miljø rundt gaming og
|
|
e-sport på UiO
|
|
</p>
|
|
</header>
|
|
)
|
|
}
|
|
|
|
export default Header
|