@npm_leadtech/legal-lib-components 5.2.13 → 5.2.14
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/css/styles.css +19 -0
- package/dist/src/components/sections/BlogSection/BlogSection.js +4 -3
- package/dist/src/components/sections/BlogSection/BlogSection.scss +21 -0
- package/dist/src/components/sections/BlogSection/BlogSection.tsx +8 -4
- package/dist/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +2 -1
- package/dist/src/components/sections/BlogSection/BlogSectionProps.types.ts +2 -1
- package/package.json +1 -1
package/dist/css/styles.css
CHANGED
|
@@ -7659,6 +7659,16 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
7659
7659
|
max-width: 1200px;
|
|
7660
7660
|
}
|
|
7661
7661
|
}
|
|
7662
|
+
.blog .blog__description {
|
|
7663
|
+
font-family: Inter;
|
|
7664
|
+
font-size: 16px;
|
|
7665
|
+
font-weight: 400;
|
|
7666
|
+
line-height: 22px;
|
|
7667
|
+
letter-spacing: -0.3px;
|
|
7668
|
+
text-align: left;
|
|
7669
|
+
color: #6d7275;
|
|
7670
|
+
margin: 1rem 0 1.5rem 0;
|
|
7671
|
+
}
|
|
7662
7672
|
.blog .blog__title {
|
|
7663
7673
|
color: var(--primary-main-dark-1);
|
|
7664
7674
|
}
|
|
@@ -7667,6 +7677,15 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
7667
7677
|
margin-bottom: 3rem;
|
|
7668
7678
|
}
|
|
7669
7679
|
}
|
|
7680
|
+
.blog .blog__title.category-product-title {
|
|
7681
|
+
margin-bottom: 0;
|
|
7682
|
+
font-family: Inter;
|
|
7683
|
+
font-size: 28px;
|
|
7684
|
+
font-weight: 700;
|
|
7685
|
+
line-height: 32px;
|
|
7686
|
+
letter-spacing: -0.3px;
|
|
7687
|
+
text-align: left;
|
|
7688
|
+
}
|
|
7670
7689
|
.blog .cta-button {
|
|
7671
7690
|
width: 100%;
|
|
7672
7691
|
margin-top: 3rem;
|
|
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { ArticlesList } from '../../organisms';
|
|
3
3
|
import { Button } from '../../atoms';
|
|
4
4
|
// import './BlogSection.scss'
|
|
5
|
-
const BlogSection = ({ blogTitle, blogCta, articles }) => {
|
|
5
|
+
const BlogSection = ({ blogTitle, blogCta = null, blogDescription = null, articles }) => {
|
|
6
6
|
if (articles.articles?.length === 0)
|
|
7
|
-
return
|
|
8
|
-
|
|
7
|
+
return;
|
|
8
|
+
const categoryProductTitle = !!blogDescription;
|
|
9
|
+
return (_jsxs("div", { className: 'blog', children: [_jsx("h2", { className: `serif --super-large blog__title ${categoryProductTitle ? 'category-product-title' : ''}`, children: blogTitle }), blogDescription && _jsx("p", { className: 'blog__description', children: blogDescription }), _jsx(ArticlesList, { articles: articles.articles }), blogCta && _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
|
|
9
10
|
};
|
|
10
11
|
export default BlogSection;
|
|
@@ -14,12 +14,33 @@
|
|
|
14
14
|
max-width: $lg;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
.blog__description {
|
|
18
|
+
font-family: Inter;
|
|
19
|
+
font-size: 16px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
line-height: 22px;
|
|
22
|
+
letter-spacing: -0.3px;
|
|
23
|
+
text-align: left;
|
|
24
|
+
color: #6d7275;
|
|
25
|
+
margin: 1rem 0 1.5rem 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
17
28
|
.blog__title {
|
|
18
29
|
color: get-color(primary, main-dark-1);
|
|
19
30
|
|
|
20
31
|
@include laptop {
|
|
21
32
|
margin-bottom: 3rem;
|
|
22
33
|
}
|
|
34
|
+
|
|
35
|
+
&.category-product-title {
|
|
36
|
+
margin-bottom: 0;
|
|
37
|
+
font-family: Inter;
|
|
38
|
+
font-size: 28px;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
line-height: 32px;
|
|
41
|
+
letter-spacing: -0.3px;
|
|
42
|
+
text-align: left;
|
|
43
|
+
}
|
|
23
44
|
}
|
|
24
45
|
|
|
25
46
|
.cta-button {
|
|
@@ -6,14 +6,18 @@ import { type BlogSectionProps } from './BlogSectionProps.types'
|
|
|
6
6
|
import { Button } from '../../atoms'
|
|
7
7
|
// import './BlogSection.scss'
|
|
8
8
|
|
|
9
|
-
const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta, articles }) => {
|
|
10
|
-
if (articles.articles?.length === 0) return
|
|
9
|
+
const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta = null, blogDescription = null, articles }) => {
|
|
10
|
+
if (articles.articles?.length === 0) return
|
|
11
|
+
const categoryProductTitle = !!blogDescription
|
|
11
12
|
|
|
12
13
|
return (
|
|
13
14
|
<div className={'blog'}>
|
|
14
|
-
<h2 className={
|
|
15
|
+
<h2 className={`serif --super-large blog__title ${categoryProductTitle ? 'category-product-title' : ''}`}>
|
|
16
|
+
{blogTitle}
|
|
17
|
+
</h2>
|
|
18
|
+
{blogDescription && <p className='blog__description'>{blogDescription}</p>}
|
|
15
19
|
<ArticlesList articles={articles.articles} />
|
|
16
|
-
<Button dataQa='' color='secondary' label={blogCta} givenClass='cta-button' link={'/articles'} />
|
|
20
|
+
{blogCta && <Button dataQa='' color='secondary' label={blogCta} givenClass='cta-button' link={'/articles'} />}
|
|
17
21
|
</div>
|
|
18
22
|
)
|
|
19
23
|
}
|