feat(WEB-93): add Header to CMS and render it in Next

This commit is contained in:
Simon Emanuelsson
2024-02-20 09:07:17 +01:00
parent 58b82cc8b7
commit cbb53df67c
30 changed files with 612 additions and 53 deletions

View File

@@ -1,3 +1,5 @@
#import "./PageLinks.graphql"
fragment Breadcrumbs on CurrentBlocksPage {
breadcrumbs {
title
@@ -8,8 +10,7 @@ fragment Breadcrumbs on CurrentBlocksPage {
breadcrumbs {
title
}
title
url
...CurrentBlocksPageLink
}
}
}

View File

@@ -1,9 +1,10 @@
#import "../Image.graphql"
fragment Logo on Footer {
logoConnection {
edges {
node {
title
url
...Image
}
}
}

View File

@@ -1,7 +1,7 @@
fragment CurrentBlocksPageLink on CurrentBlocksPage {
system {
uid
locale
uid
}
title
url

View File

@@ -0,0 +1,32 @@
#import "../Fragments/Image.graphql"
query GetHeader($locale: String!) {
all_header(limit: 1, locale: $locale) {
items {
frontpage_link_text
logoConnection {
edges {
node {
...Image
}
}
}
menu {
links {
href
title
}
}
top_menu {
links {
link {
href
title
}
show_on_mobile
sort_order_mobile
}
}
}
}
}