diff --git a/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.css.ts b/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.css.ts index ea3742b5dbf5..98d6743a4d78 100644 --- a/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.css.ts +++ b/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.css.ts @@ -1,5 +1,6 @@ import { style } from '@vanilla-extract/css' -import { themeUtils } from '@island.is/island-ui/theme' + +import { theme, themeUtils } from '@island.is/island-ui/theme' export const container = style({ background: 'linear-gradient(180deg, #E6F2FB 21.56%, #90D9E3 239.74%)', @@ -42,3 +43,7 @@ export const bsiLogo = style({ export const bsiLogoMobile = style({ height: '40px', }) + +export const marginLeft = style({ + marginLeft: theme.spacing[2], +}) diff --git a/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.tsx b/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.tsx index 325e012bfe8c..7284c5134592 100644 --- a/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.tsx +++ b/apps/web/components/Organization/Wrapper/Themes/FiskistofaTheme/FiskistofaFooter.tsx @@ -2,20 +2,19 @@ import { ReactNode } from 'react' import cn from 'classnames' import { BLOCKS } from '@contentful/rich-text-types' +import { SliceType } from '@island.is/island-ui/contentful' import { - Box, GridColumn, GridContainer, GridRow, Hyphen, Text, } from '@island.is/island-ui/core' +import { theme } from '@island.is/island-ui/theme' import { FooterItem } from '@island.is/web/graphql/schema' +import { useNamespace } from '@island.is/web/hooks' import { useWindowSize } from '@island.is/web/hooks/useViewport' -import { theme } from '@island.is/island-ui/theme' -import { SliceType } from '@island.is/island-ui/contentful' import { webRichText } from '@island.is/web/utils/richText' -import { useNamespace } from '@island.is/web/hooks' import * as styles from './FiskistofaFooter.css' @@ -35,11 +34,11 @@ const FiskistofaFooter = ({ return ( ) } diff --git a/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunAusturlandsTheme/index.ts b/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunAusturlandsTheme/index.ts index 39d5ff8aa39d..9e6db4df4390 100644 --- a/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunAusturlandsTheme/index.ts +++ b/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunAusturlandsTheme/index.ts @@ -4,7 +4,7 @@ import Header from './HeilbrigdisstofnunAusturlandsHeader' export const HeilbrigdisstofnunAusturlandsFooter = dynamic( () => import('./HeilbrigdisstofnunAusturlandsFooter'), - { ssr: true }, + { ssr: false }, ) export const HeilbrigdisstofnunAusturlandsHeader = Header diff --git a/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunNordurlandsTheme/index.ts b/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunNordurlandsTheme/index.ts index 1621d69ff0d6..137c470ad542 100644 --- a/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunNordurlandsTheme/index.ts +++ b/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunNordurlandsTheme/index.ts @@ -6,5 +6,5 @@ export const HeilbrigdisstofnunNordurlandsHeader = Header export const HeilbrigdisstofnunNordurlandsFooter = dynamic( () => import('./HeilbrigdisstofnunNordurlandsFooter'), - { ssr: true }, + { ssr: false }, ) diff --git a/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunSudurlandsTheme/index.ts b/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunSudurlandsTheme/index.ts index c97ed7f61746..0ff31ce96a3a 100644 --- a/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunSudurlandsTheme/index.ts +++ b/apps/web/components/Organization/Wrapper/Themes/HeilbrigdisstofnunSudurlandsTheme/index.ts @@ -6,5 +6,5 @@ export const HeilbrigdisstofnunSudurlandsHeader = Header export const HeilbrigdisstofnunSudurlandsFooter = dynamic( () => import('./HeilbrigdisstofnunSudurlandsFooter'), - { ssr: true }, + { ssr: false }, ) diff --git a/apps/web/components/Organization/Wrapper/Themes/HveTheme/index.ts b/apps/web/components/Organization/Wrapper/Themes/HveTheme/index.ts index 7608428a5d1d..050ab07b4147 100644 --- a/apps/web/components/Organization/Wrapper/Themes/HveTheme/index.ts +++ b/apps/web/components/Organization/Wrapper/Themes/HveTheme/index.ts @@ -3,4 +3,4 @@ import dynamic from 'next/dynamic' import Header from './HveHeader' export const HveHeader = Header -export const HveFooter = dynamic(() => import('./HveFooter'), { ssr: true }) +export const HveFooter = dynamic(() => import('./HveFooter'), { ssr: false }) diff --git a/apps/web/components/Organization/Wrapper/Themes/IcelandicNaturalDisasterInsuranceTheme/IcelandicNaturalDisasterInsuranceFooter.tsx b/apps/web/components/Organization/Wrapper/Themes/IcelandicNaturalDisasterInsuranceTheme/IcelandicNaturalDisasterInsuranceFooter.tsx index 3df6760c7e3b..0c9a24aef3d9 100644 --- a/apps/web/components/Organization/Wrapper/Themes/IcelandicNaturalDisasterInsuranceTheme/IcelandicNaturalDisasterInsuranceFooter.tsx +++ b/apps/web/components/Organization/Wrapper/Themes/IcelandicNaturalDisasterInsuranceTheme/IcelandicNaturalDisasterInsuranceFooter.tsx @@ -1,3 +1,5 @@ +import { useEffect, useState } from 'react' + import { SliceType } from '@island.is/island-ui/contentful' import { Box, @@ -25,7 +27,11 @@ const IcelandicNaturalDisasterInsuranceFooter = ({ }: IcelandicNaturalDisasterInsuranceFooterProps) => { const n = useNamespace(namespace) const { width } = useWindowSize() - const shouldWrap = width < theme.breakpoints.xl + const [shouldWrap, setShouldWrap] = useState(false) + + useEffect(() => { + setShouldWrap(width < theme.breakpoints.xl) + }, [width]) return (