Skip to content
Snippets Groups Projects
Commit 6b46248a authored by Tarje.Lavik's avatar Tarje.Lavik
Browse files

Add 75år med tanker to footer

parent 085e248b
No related branches found
No related tags found
No related merge requests found
import Image from 'next/image'
import { Box, Flex } from '@chakra-ui/react'
import NextImage from 'next/image'
import { Box, Flex, Image } from '@chakra-ui/react'
import { getNextSanityImage } from '../../../lib/sanity.server'
import Link from '../../Link'
......@@ -11,19 +11,18 @@ export default function Publisher({ publishers }) {
return (
<Flex maxW="xl" marginBottom={5}>
<Box m="6" minW="100px" maxW={['100px', null, '150px', null]}>
<Image
alt=""
src={`${process.env.NEXT_PUBLIC_BASE_PATH}/img/75ar-med-tanker.svg`}
w="full"
/>
</Box>
{publishers &&
publishers.map((p) => (
<Box key={p._id} m="6" maxW="150px">
<Box key={p._id} m="4" maxW={['100px', null, '150px', null]}>
<Link href={`/id/${p._id}`}>
<Image
alt=""
{...getNextSanityImage(p.image)}
layout="intrinsic"
/* sizes="(max-width: 800px) 100vw, 800px" */
objectFit="contain"
width={150}
height={150}
/>
<NextImage alt="" {...getNextSanityImage(p.image)} layout="intrinsic" />
</Link>
{/* <Link href={`/id/${p._id}`}>{p.label.no}</Link> */}
</Box>
......
......@@ -37,13 +37,13 @@ export default function Footer(props) {
gridArea="footer"
maxW="full"
minH="100px"
mt="10"
mt={['0', null, '8', null]}
py="6"
px="0"
zIndex="100"
color={color}
backgroundImage={`url('${process.env.NEXT_PUBLIC_BASE_PATH}/img/taakeheimen-footer.svg')`}
backgroundPosition="50% 4%"
backgroundPosition={['50% 10%', '50% 8%', '50% 4%', null]}
backgroundRepeat="no-repeat"
>
<Flex pl="5">
......@@ -52,7 +52,7 @@ export default function Footer(props) {
</Button>
</Flex>
<Container maxW="4xl" px="4" pt="6%" centerContent>
<Container maxW="4xl" px="4" pt={['12%', '8%', '6%', null]} centerContent>
{/* <Flex pb="0">
<Spacer />
......@@ -71,7 +71,7 @@ export default function Footer(props) {
{content && <RenderSections sections={content} />}
<Container fontSize={['md', null, 'lg', null]} p="0" centerContent>
<Container p="0" centerContent>
{publisher && <Publisher publishers={publisher} />}
{license && <License license={license} />}
</Container>
......
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 404.77 362.94"><defs><style>.cls-1{fill:#231f20;}.cls-2{fill:#fff;}.cls-3{fill:#db413e;}</style></defs><polygon class="cls-1" points="338.19 317.94 313.1 299.78 314.86 297.35 338.19 314.24 361.51 297.35 363.27 299.78 338.19 317.94"/><path class="cls-1" d="M341.46,247.13a56.41,56.41,0,0,1,0,112.81H59.4a56.41,56.41,0,0,1,0-112.81H341.46m0-3H59.4A59.41,59.41,0,0,0,0,303.53H0a59.41,59.41,0,0,0,59.4,59.41H341.46a59.4,59.4,0,0,0,59.4-59.41h0a59.4,59.4,0,0,0-59.4-59.4Z"/><path class="cls-1" d="M83.29,293.26H71.86v33.06H65.39V293.26H54.64V288H65.39v-7.62l6.47-2.14V288H83.29Z"/><path class="cls-1" d="M112.13,288.5a14.18,14.18,0,0,1,6.16,5.91,19.24,19.24,0,0,1,2.16,9.43v22.48h-6.37V320.7a12.59,12.59,0,0,1-5.39,5.16,17.27,17.27,0,0,1-7.88,1.74,15.42,15.42,0,0,1-7.28-1.68,12.5,12.5,0,0,1-5-4.6,12.22,12.22,0,0,1-1.79-6.5,11.54,11.54,0,0,1,1.81-6.36A12.46,12.46,0,0,1,93.63,304a16.61,16.61,0,0,1,7.47-1.63,18.4,18.4,0,0,1,7.72,1.53,12.44,12.44,0,0,1,5.26,4.32v-3.54a13.06,13.06,0,0,0-1.61-6.72,10.13,10.13,0,0,0-4.44-4.11,14.68,14.68,0,0,0-6.47-1.36,17.3,17.3,0,0,0-7.08,1.36A16.34,16.34,0,0,0,88.91,298v-6.67A23.16,23.16,0,0,1,95,287.81a21.19,21.19,0,0,1,7.81-1.31A20.57,20.57,0,0,1,112.13,288.5Zm-3.31,32.76a9.21,9.21,0,0,0,3.86-2.8,6.16,6.16,0,0,0,1.4-3.9,6,6,0,0,0-1.31-3.75,8.79,8.79,0,0,0-3.73-2.65,14.92,14.92,0,0,0-5.54-1,14.27,14.27,0,0,0-5.52,1,8,8,0,0,0-3.5,2.67,6.48,6.48,0,0,0-1.2,3.86,6.81,6.81,0,0,0,1.18,3.94,7.84,7.84,0,0,0,3.44,2.68,13.54,13.54,0,0,0,5.34,1A14.45,14.45,0,0,0,108.82,321.26Z"/><path class="cls-1" d="M160.88,288.65a13.7,13.7,0,0,1,5.36,6.27,23.9,23.9,0,0,1,1.86,9.88v21.52h-6.38v-20q0-7.12-2.71-10.5t-8.39-3.36a12.64,12.64,0,0,0-6.75,1.72,11.06,11.06,0,0,0-4.26,4.68,15,15,0,0,0-1.45,6.64v20.8h-6.34V288h6.34v7.86q4.14-9.33,14.4-9.33A15.5,15.5,0,0,1,160.88,288.65Z"/><path class="cls-1" d="M206.11,326.32l-20.17-20.24v20.24h-6.47V277.85h6.47v26L204.57,288h9.17L192.87,304.8l22.21,21.52Z"/><path class="cls-1" d="M253.3,307.82H221.92a14.54,14.54,0,0,0,2.25,7.24,12.76,12.76,0,0,0,5.4,4.65,18.47,18.47,0,0,0,8,1.61A22.55,22.55,0,0,0,252,316v6.12a22,22,0,0,1-7,3.79,26,26,0,0,1-8.42,1.4,22.92,22.92,0,0,1-11.07-2.62,18.74,18.74,0,0,1-7.56-7.31,22.5,22.5,0,0,1-.24-20.88,18.41,18.41,0,0,1,7-7.32,22.71,22.71,0,0,1,20.23-.64,14.27,14.27,0,0,1,6.17,6A19.42,19.42,0,0,1,253.3,304Zm-24.52-14a11.5,11.5,0,0,0-4.4,3.66,13.26,13.26,0,0,0-2.23,5.44h25a10.25,10.25,0,0,0-3.37-7.72c-2.09-1.8-5-2.69-8.65-2.69A14.44,14.44,0,0,0,228.78,293.79Z"/><path class="cls-1" d="M284.94,288.89v6.54a9.72,9.72,0,0,0-6.25-1.94A8.52,8.52,0,0,0,273.8,295a9.9,9.9,0,0,0-3.43,4.36,17.19,17.19,0,0,0-1.3,6.88v20.11h-6.48V288h6.48v8.84a14.7,14.7,0,0,1,4.24-7.1,9.63,9.63,0,0,1,6.47-2.43A8.45,8.45,0,0,1,284.94,288.89Z"/><rect class="cls-1" x="26.04" width="203.91" height="118.8" rx="59.4"/><path class="cls-2" d="M123.52,32.93v7.14L93.37,88.88H84L115,40H82.46V32.93Z"/><path class="cls-2" d="M163.24,54.43A16.8,16.8,0,0,1,170.07,61a17.87,17.87,0,0,1,2.34,9,19.59,19.59,0,0,1-2.79,10.38,19.15,19.15,0,0,1-8,7.2,26.43,26.43,0,0,1-12,2.6,36,36,0,0,1-10.15-1.41,25.43,25.43,0,0,1-8.1-3.88v-8a26.19,26.19,0,0,0,8.14,4.39,30,30,0,0,0,9.09,1.31A20,20,0,0,0,157.05,81a11.41,11.41,0,0,0,5.14-4.36,12.08,12.08,0,0,0,1.73-6.49A11,11,0,0,0,162.21,64a11.25,11.25,0,0,0-5.12-4.12,21.16,21.16,0,0,0-8.47-1.5,34.15,34.15,0,0,0-8.76,1.05,43.19,43.19,0,0,0-7.77,2.89V32.93h37.2v7.39H139.47V54.47A34.63,34.63,0,0,1,152.6,52,22,22,0,0,1,163.24,54.43Z"/><path class="cls-3" d="M299.24,41.5a25.35,25.35,0,0,1,11.37,10.55q3.92,7,3.92,16.92v33.91H296.6V94.45a20.56,20.56,0,0,1-8.72,7.88A29.3,29.3,0,0,1,275,105a25.64,25.64,0,0,1-12-2.69A19.49,19.49,0,0,1,252.2,84.48,19.16,19.16,0,0,1,255.13,74a19.8,19.8,0,0,1,8.33-7.22A28.47,28.47,0,0,1,276,64.18q13.77,0,20.57,9V70.61a17.8,17.8,0,0,0-2.74-9.76,16.23,16.23,0,0,0-7.2-5.93,26.22,26.22,0,0,0-10.52-2,28.73,28.73,0,0,0-20.67,8.28V46q11.07-8.13,26-8.13A40.72,40.72,0,0,1,299.24,41.5ZM289.67,92a12,12,0,0,0,5.09-3.53,7.82,7.82,0,0,0,1.84-5.07,7.42,7.42,0,0,0-1.74-4.82,11.36,11.36,0,0,0-4.93-3.35A20.6,20.6,0,0,0,282.58,74a18.41,18.41,0,0,0-7,1.21,10.08,10.08,0,0,0-4.51,3.38,8.3,8.3,0,0,0-1.55,5A8.67,8.67,0,0,0,271,88.64a9.76,9.76,0,0,0,4.43,3.43,17.65,17.65,0,0,0,6.85,1.22A20.21,20.21,0,0,0,289.67,92ZM277.57,33a11.71,11.71,0,0,1-6.38-10.66,11,11,0,0,1,1.71-6,11.65,11.65,0,0,1,4.72-4.19,14.79,14.79,0,0,1,6.7-1.5,14.58,14.58,0,0,1,6.77,1.53,11.35,11.35,0,0,1,4.64,4.24,11.52,11.52,0,0,1,1.66,6.15,11.59,11.59,0,0,1-1.68,6.17A11.74,11.74,0,0,1,291,33a15.23,15.23,0,0,1-13.47,0Zm10.75-6.57a5.31,5.31,0,0,0,1.59-4,4.88,4.88,0,0,0-1.59-3.74,6.16,6.16,0,0,0-8,0,4.87,4.87,0,0,0-1.58,3.74,5.3,5.3,0,0,0,1.58,4,5.92,5.92,0,0,0,8,0Z"/><path class="cls-3" d="M374.65,41.87V58.74a16.36,16.36,0,0,0-4.53-2.11,20.61,20.61,0,0,0-5.86-.79,16.23,16.23,0,0,0-8.72,2.3,15.22,15.22,0,0,0-5.83,7,28.56,28.56,0,0,0-2.11,11.68v26.05H329.14V40.5h18.19V57.64q2.22-9.22,6.86-13.79a15.62,15.62,0,0,1,11.39-4.56A15.3,15.3,0,0,1,374.65,41.87Z"/><polygon class="cls-1" points="335.95 195.98 336.11 157.87 339.11 157.88 338.98 190.84 374.96 154.86 377.08 156.98 341.1 192.96 374.05 192.83 374.06 195.83 335.95 195.98"/><path class="cls-1" d="M357.18,130.17a44.59,44.59,0,1,1-44.59,44.58,44.63,44.63,0,0,1,44.59-44.58m0-3a47.59,47.59,0,1,0,47.59,47.58,47.59,47.59,0,0,0-47.59-47.58Z"/><path class="cls-3" d="M101.93,155.12q5.85,7,5.85,20v38H89.38V179q0-7.48-2.93-11.44t-8.73-4q-6.1,0-9.41,4.19T65,179V213.1H46.77V177.5c0-4.28-1-7.68-3-10.17s-4.88-3.75-8.64-3.75a11.22,11.22,0,0,0-6.91,2.16,13.51,13.51,0,0,0-4.43,6,24.58,24.58,0,0,0-1.53,9.05l-.05-.06V213.1H3.9V150.71H22.09v13.14q2.79-8.07,8-11.9t13.05-3.82a20.66,20.66,0,0,1,12.84,4,21.87,21.87,0,0,1,7.52,11.31q2.68-7.74,8.12-11.52t13.6-3.77Q96.09,148.13,101.93,155.12Z"/><path class="cls-3" d="M186.78,184.78H137a17.18,17.18,0,0,0,7.8,11.37q6.28,4,16.51,4a39.06,39.06,0,0,0,12.63-2,41.18,41.18,0,0,0,10.73-5.49v14.24a39.91,39.91,0,0,1-12.31,5.88A52.7,52.7,0,0,1,157.14,215a45.52,45.52,0,0,1-20.25-4.27,31.74,31.74,0,0,1-13.42-12,35.15,35.15,0,0,1-.42-34.44,30.71,30.71,0,0,1,12.39-11.84,39.61,39.61,0,0,1,19-4.35q10.4,0,17.64,3.61a24.82,24.82,0,0,1,11,10.34,32.67,32.67,0,0,1,3.72,16.06Zm-43.66-19a15.39,15.39,0,0,0-5.81,9.26h34a12.84,12.84,0,0,0-4.83-9.41q-4.24-3.3-11.57-3.3T143.12,165.82Z"/><path class="cls-3" d="M269.36,135.32V213.1H251V198.86a27.09,27.09,0,0,1-10.07,11.84Q234.3,215,224.75,215a27.77,27.77,0,0,1-15.35-4.3A28.73,28.73,0,0,1,199,198.86a38.14,38.14,0,0,1-3.69-17,36.82,36.82,0,0,1,4-17.48,29.72,29.72,0,0,1,11.1-12,30.12,30.12,0,0,1,16-4.3,27,27,0,0,1,15,4A26.62,26.62,0,0,1,251,163.79V135.32Zm-27.08,62.35a16.78,16.78,0,0,0,6.62-6.77,20.15,20.15,0,0,0,2.32-9.7,19.31,19.31,0,0,0-2.27-9.42,16.06,16.06,0,0,0-6.48-6.46,20.24,20.24,0,0,0-9.86-2.32,19.33,19.33,0,0,0-9.68,2.35,16,16,0,0,0-6.38,6.56,21.76,21.76,0,0,0,0,19.23,16.19,16.19,0,0,0,6.33,6.61,18.5,18.5,0,0,0,9.51,2.38A19.54,19.54,0,0,0,242.28,197.67Z"/></svg>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment