Skip to content

Commit 6f11c28

Browse files
committed
Keep tweaking
1 parent 7c9564a commit 6f11c28

File tree

7 files changed

+44
-43
lines changed

7 files changed

+44
-43
lines changed

components/Storyblok/PageHeader/HeaderFullWidthImage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const HeaderFullWidthImage = ({ blok }: HeaderFullWidthImageProps) => {
3535
);
3636

3737
return (
38-
<div className="w-full relative break-words">
38+
<div className="w-full relative">
3939
<div className="relative overflow-hidden w-full h-160 sm:h-240 md:h-[33rem] lg:h-400 xl:h-500 2xl:h-600">
4040
{fullWidthImage}
4141
{logoFilename && (
@@ -51,8 +51,10 @@ export const HeaderFullWidthImage = ({ blok }: HeaderFullWidthImageProps) => {
5151
<Heading
5252
as="h1"
5353
id="page-title"
54+
size="f5"
5455
align="center"
55-
className="text-black w-full mb-08em fluid-type-5 md:text-left text-balance"
56+
mb="08em"
57+
className="w-full md:text-left text-balance"
5658
>
5759
{title}
5860
</Heading>

components/Storyblok/PageHeader/HeaderMinimal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export const HeaderMinimal = ({ blok }: HeaderMinimalProps) => {
1919
<Heading
2020
as="h1"
2121
id="page-title"
22-
className={cnb('mb-0 mx-auto fluid-type-5 max-w-1200 text-balance', bgColor === 'fog-light' ? 'text-black' : 'text-white')}
22+
size="f5"
23+
mb="none"
24+
color={bgColor === 'fog-light' ? 'black' : 'white'}
25+
className="mx-auto max-w-1200 text-balance"
2326
align="center"
2427
>
2528
{title}

components/Storyblok/PageHeader/HeaderNoImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const HeaderNoImage = ({ blok }: HeaderNoImageProps) => {
1515
} = blok;
1616

1717
return (
18-
<div className="break-words">
18+
<div>
1919
<Container pt={7} pb={9} className={darkBgColors[bgColor || 'palo-alto-dark']}>
2020
<Heading
2121
as="h1"

components/Storyblok/PageHeader/HeaderSmallImage.tsx

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,42 +18,40 @@ export const HeaderSmallImage = ({ blok }: HeaderSmallImageProps) => {
1818
} = blok;
1919

2020
return (
21-
<div className="relative block pt-38 md:pt-0 bg-white break-words">
22-
<Container className="flex flex-col md:flex-row md:items-start md:pt-58 lg:pt-72 2xl:pt-95 grid-gap mx-auto">
23-
<div className="w-full md:w-7/12 xl:w-6/12">
24-
<Heading
25-
as="h1"
26-
id="page-title"
27-
size="f5"
28-
align="center"
29-
mb="04em"
30-
className=" text-black mt-0 md:text-left"
31-
>
32-
{title}
33-
</Heading>
34-
{hasRichText(intro) && (
35-
<RichText wysiwyg={intro} className="subheading" />
36-
)}
37-
</div>
38-
{filename && (
39-
<>
40-
<div
41-
className={cnb(
42-
'block md:absolute md:top-0 md:right-0 w-full aspect-[3/2] md:aspect-none md:w-[calc(41vw-6rem)] md:h-[calc(27.33vw-4rem)] lg:w-[calc(48vw-10rem)] lg:h-[calc(32vw-6.67rem)] 3xl:h-[48rem]',
43-
darkBgColors[bgColor || 'palo-alto-dark'],
44-
)}
45-
aria-hidden="true"
46-
/>
47-
<AspectRatioImage
48-
filename={filename}
49-
focus={focus}
50-
alt={alt}
51-
imageSize="header"
52-
className="print:hidden relative md:w-5/12 xl:w-6/12 mr-0 -ml-20 w-[calc(100%+2rem)] sm:-ml-30 sm:w-[calc(100%+3rem)] md:ml-0 -mt-[60vw] md:mt-0 z-10 pb-0"
53-
/>
54-
</>
21+
<Container pt={5} pb={5} className="relative bg-white break-words flex flex-col md:flex-row md:items-start grid-gap mx-auto">
22+
<div className="w-full md:w-7/12 xl:w-6/12">
23+
<Heading
24+
as="h1"
25+
id="page-title"
26+
size="f5"
27+
align="center"
28+
mb="04em"
29+
className=" text-black mt-0 md:text-left"
30+
>
31+
{title}
32+
</Heading>
33+
{hasRichText(intro) && (
34+
<RichText wysiwyg={intro} className="text-20 md:text-23 lg:text-25 mb-07em md:mb-0" />
5535
)}
56-
</Container>
57-
</div>
36+
</div>
37+
{filename && (
38+
<>
39+
<div
40+
className={cnb(
41+
'block translate-x-[2rem] sm:translate-x-[3rem] md:translate-x-0 md:absolute md:top-0 md:right-0 w-full aspect-[3/2] 3xl:aspect-none md:w-[calc(41vw-6rem)] lg:w-[calc(48vw-10rem)] 3xl:h-[48rem]',
42+
darkBgColors[bgColor || 'palo-alto-dark'],
43+
)}
44+
aria-hidden="true"
45+
/>
46+
<AspectRatioImage
47+
filename={filename}
48+
focus={focus}
49+
alt={alt}
50+
imageSize="header"
51+
className="print:hidden relative md:w-5/12 xl:w-6/12 mr-0 -ml-20 w-[calc(100%+2rem)] sm:-ml-30 sm:w-[calc(100%+3rem)] md:ml-0 -mt-[57vw] md:mt-0 z-10 pb-0"
52+
/>
53+
</>
54+
)}
55+
</Container>
5856
);
5957
};

components/Storyblok/SbInteriorPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const SbInteriorPage = (props: SbInteriorPageProps) => {
3535
<CreateBloks blokSection={props.blok.localHeader} slug={props.slug} />
3636
<main id="main-content" className={`ood-interior-page ood-interior-page--${props.blok.headerStyle}`}>
3737
<article className="bg-fog-light">
38-
<header>
38+
<header className="break-words">
3939
{props.blok.headerStyle === 'has-image' && (
4040
<HeaderSmallImage {...props} />
4141
)}

components/Storyblok/partials/BodyLeftSidebar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
'use client';
2-
import React from 'react';
32
import { type SbBlokData, storyblokEditable } from '@storyblok/react/rsc';
43
import { useWindowSize } from 'usehooks-ts';
54
import { CreateBloks } from '@/components/CreateBloks';

components/Storyblok/partials/BodyNoSidebar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { type SbBlokData, storyblokEditable } from '@storyblok/react/rsc';
32
import { CreateBloks } from '@/components/CreateBloks';
43
import { FlexCell } from '@/components/Storyblok/partials/FlexCell';

0 commit comments

Comments
 (0)