@npm_leadtech/legal-lib-components 7.53.3 → 7.53.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.js +3 -2
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.styled.js +6 -0
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.styled.ts +6 -0
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.tsx +4 -2
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStaticProps.types.d.ts +1 -0
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStaticProps.types.ts +1 -0
- package/dist/src/components/atoms/Logo/Logo.js +0 -4
- package/dist/src/components/atoms/Logo/Logo.tsx +0 -4
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { JumbotronStaticStyled } from './JumbotronStatic.styled';
|
|
3
|
-
export const JumbotronStatic = ({ title }) => {
|
|
4
|
-
|
|
3
|
+
export const JumbotronStatic = ({ title, locale }) => {
|
|
4
|
+
const shorterTitle = locale?.includes('DE') ? 'shorter-text' : '';
|
|
5
|
+
return (_jsx(JumbotronStaticStyled, { className: 'jumbotron--static', children: _jsx("h1", { className: `${shorterTitle} serif --super-hero`, children: title }) }));
|
|
5
6
|
};
|
|
@@ -3,10 +3,12 @@ import React, { type FC } from 'react'
|
|
|
3
3
|
import { type JumbotronStaticProps } from './JumbotronStaticProps.types'
|
|
4
4
|
import { JumbotronStaticStyled } from './JumbotronStatic.styled'
|
|
5
5
|
|
|
6
|
-
export const JumbotronStatic: FC<JumbotronStaticProps> = ({ title }) => {
|
|
6
|
+
export const JumbotronStatic: FC<JumbotronStaticProps> = ({ title, locale }) => {
|
|
7
|
+
const shorterTitle = locale?.includes('DE') ? 'shorter-text' : ''
|
|
8
|
+
|
|
7
9
|
return (
|
|
8
10
|
<JumbotronStaticStyled className={'jumbotron--static'}>
|
|
9
|
-
<h1 className=
|
|
11
|
+
<h1 className={`${shorterTitle} serif --super-hero`}>{title}</h1>
|
|
10
12
|
</JumbotronStaticStyled>
|
|
11
13
|
)
|
|
12
14
|
}
|