Skip to content

Commit

Permalink
change bgimg and logo format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Rydeståhl committed Nov 12, 2024
1 parent 1fabb6c commit 2326096
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Binary file added src/assets/img/bg-medium.webp
Binary file not shown.
Binary file added src/assets/img/logo.webp
Binary file not shown.
6 changes: 4 additions & 2 deletions src/components/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const response = await fetch('https://graphql.datocms.com/', {
query: `query Logo {
home {
logo {
url
responsiveImage {
webpSrcSet
}
}
}
}
Expand All @@ -22,7 +24,7 @@ const response = await fetch('https://graphql.datocms.com/', {
const json = await response.json()
const data = json.data
const logo = data.home.logo.url
const logo = data.home.logo.responsiveImage.webpSrcSet
---

<div id="main-navigation" class="is-desktop py-8">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const { page } = Astro.props

<style lang="scss">
body {
background: url('../assets/img/bg-medium.png');
background: url('../assets/img/bg-medium.webp');
background-size: contain;
background-repeat: no-repeat;
}
Expand Down

0 comments on commit 2326096

Please sign in to comment.