Merged in feat/sw-187-footer-content-stack (pull request #565)

Feat/sw 187 footer content stack

Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
This commit is contained in:
Pontus Dreij
2024-09-12 07:11:25 +00:00
63 changed files with 1350 additions and 521 deletions

View File

@@ -0,0 +1,27 @@
#import "../Image.graphql"
fragment AppDownloads on CurrentFooter {
app_downloads {
title
app_store {
href
imageConnection {
edges {
node {
...Image
}
}
}
}
google_play {
href
imageConnection {
edges {
node {
...Image
}
}
}
}
}
}

View File

@@ -0,0 +1,29 @@
fragment MainLinks on Footer {
main_links {
title
open_in_new_tab
link {
href
title
}
pageConnection {
edges {
node {
__typename
... on AccountPage {
title
url
}
... on LoyaltyPage {
title
url
}
... on ContentPage {
title
url
}
}
}
}
}
}

View File

@@ -0,0 +1,18 @@
fragment MainLinksRef on Footer {
__typename
main_links {
pageConnection {
edges {
node {
__typename
...LoyaltyPageRef
...ContentPageRef
...AccountPageRef
}
}
}
}
system {
...System
}
}

View File

@@ -0,0 +1,20 @@
fragment SecondaryLinksRef on Footer {
__typename
secondary_links {
links {
pageConnection {
edges {
node {
__typename
...LoyaltyPageRef
...ContentPageRef
...AccountPageRef
}
}
}
}
}
system {
...System
}
}

View File

@@ -0,0 +1,24 @@
#import "../Refs/MyPages/AccountPage.graphql"
#import "../Refs/ContentPage/ContentPage.graphql"
#import "../Refs/LoyaltyPage/LoyaltyPage.graphql"
fragment SecondaryLinks on Footer {
secondary_links {
title
links {
title
open_in_new_tab
pageConnection {
edges {
node {
__typename
}
}
}
link {
href
title
}
}
}
}

View File

@@ -0,0 +1,17 @@
fragment SocialMedia on CurrentFooter {
social_media {
title
facebook {
href
title
}
instagram {
href
title
}
twitter {
href
title
}
}
}

View File

@@ -1,26 +1,11 @@
#import "../Image.graphql"
fragment AppDownloads on CurrentFooter {
fragment AppDownloads on Footer {
app_downloads {
title
app_store {
href
imageConnection {
edges {
node {
...Image
}
}
}
}
google_play {
href
imageConnection {
edges {
node {
...Image
}
}
links {
type
href {
href
title
}
}
}

View File

@@ -0,0 +1,22 @@
#import "../../Refs/LoyaltyPage/LoyaltyPage.graphql"
#import "../../Refs/MyPages/AccountPage.graphql"
#import "../../Refs/ContentPage/ContentPage.graphql"
fragment TertiaryLinksRef on Footer {
__typename
tertiary_links {
pageConnection {
edges {
node {
__typename
...LoyaltyPageRef
...ContentPageRef
...AccountPageRef
}
}
}
}
system {
...System
}
}

View File

@@ -1,17 +1,11 @@
fragment SocialMedia on CurrentFooter {
fragment SocialMedia on Footer {
social_media {
title
facebook {
href
title
}
instagram {
href
title
}
twitter {
href
title
links {
href {
href
title
}
type
}
}
}

View File

@@ -1,8 +1,8 @@
#import "../Fragments/Footer/AppDownloads.graphql"
#import "../Fragments/Footer/Logo.graphql"
#import "../Fragments/Footer/Navigation.graphql"
#import "../Fragments/Footer/SocialMedia.graphql"
#import "../Fragments/Footer/TripAdvisor.graphql"
#import "../Fragments/CurrentFooter/AppDownloads.graphql"
#import "../Fragments/CurrentFooter/Logo.graphql"
#import "../Fragments/CurrentFooter/Navigation.graphql"
#import "../Fragments/CurrentFooter/SocialMedia.graphql"
#import "../Fragments/CurrentFooter/TripAdvisor.graphql"
#import "../Fragments/Refs/System.graphql"
query GetCurrentFooter($locale: String!) {

View File

@@ -0,0 +1,122 @@
#import "../Fragments/Refs/System.graphql"
#import "../Fragments/PageLink/AccountPageLink.graphql"
#import "../Fragments/PageLink/ContentPageLink.graphql"
#import "../Fragments/PageLink/HotelPageLink.graphql"
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../Fragments/Refs/ContentPage/ContentPage.graphql"
#import "../Fragments/Refs/HotelPage/HotelPage.graphql"
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
#import "../Fragments/Footer/AppDownloads.graphql"
#import "../Fragments/Footer/SocialMedia.graphql"
query GetFooter($locale: String!) {
all_footer(limit: 1, locale: $locale) {
items {
main_links {
title
open_in_new_tab
link {
href
title
}
pageConnection {
edges {
node {
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
}
}
}
}
secondary_links {
title
links {
title
open_in_new_tab
pageConnection {
edges {
node {
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
}
}
}
link {
href
title
}
}
}
tertiary_links {
title
open_in_new_tab
link {
href
title
}
pageConnection {
edges {
node {
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
}
}
}
}
...AppDownloads
...SocialMedia
}
}
}
query GetFooterRef($locale: String!) {
all_footer(limit: 1, locale: $locale) {
items {
main_links {
pageConnection {
edges {
node {
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
}
}
}
}
secondary_links {
links {
pageConnection {
edges {
node {
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
}
}
}
}
}
tertiary_links {
pageConnection {
edges {
node {
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
}
}
}
}
system {
...System
}
}
}
}