@npm_leadtech/legal-lib-components 5.2.12 → 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.
@@ -6410,7 +6410,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6410
6410
  }
6411
6411
  .trustworthy-websites__image {
6412
6412
  margin: 1.5rem;
6413
- max-width: 8rem;
6413
+ max-width: 7rem;
6414
6414
  }
6415
6415
  .type-modules-list {
6416
6416
  display: flex;
@@ -6851,8 +6851,15 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6851
6851
  }
6852
6852
  .guidelines-section-main {
6853
6853
  display: flex;
6854
- flex-direction: row;
6854
+ flex-direction: column;
6855
6855
  flex-wrap: nowrap;
6856
+ padding: 1.5rem;
6857
+ }
6858
+ @media (min-width: 960px) {
6859
+ .guidelines-section-main {
6860
+ flex-direction: row;
6861
+ padding: 0;
6862
+ }
6856
6863
  }
6857
6864
  .guidelines-section__texts {
6858
6865
  flex-basis: 50%;
@@ -6909,7 +6916,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6909
6916
  }
6910
6917
  }
6911
6918
  .guidelines-section__image.is-mobile {
6912
- display: flex;
6919
+ display: none;
6913
6920
  }
6914
6921
  @media (min-width: 720px) {
6915
6922
  .guidelines-section__image.is-mobile {
@@ -7511,9 +7518,14 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7511
7518
  flex-direction: column;
7512
7519
  box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
7513
7520
  background: var(--others-white);
7514
- transform: translateY(-50%);
7521
+ transform: translateY(-5rem);
7515
7522
  padding: 1.5rem 0;
7516
7523
  }
7524
+ @media (min-width: 960px) {
7525
+ .as-seen-in-section-box .as-seen-in-section {
7526
+ transform: translateY(-50%);
7527
+ }
7528
+ }
7517
7529
  .as-seen-in-section-box .as-seen-in-section__title {
7518
7530
  text-align: center;
7519
7531
  font-size: 32px;
@@ -7551,11 +7563,12 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7551
7563
  display: flex;
7552
7564
  justify-content: center;
7553
7565
  flex-direction: column;
7554
- gap: 2.5rem;
7566
+ gap: 1rem;
7555
7567
  }
7556
7568
  @media (min-width: 960px) {
7557
7569
  .contact-us-section-blocks {
7558
7570
  flex-direction: row;
7571
+ gap: 2.5rem;
7559
7572
  }
7560
7573
  }
7561
7574
  .contact-us-section-blocks__item {
@@ -7646,6 +7659,16 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7646
7659
  max-width: 1200px;
7647
7660
  }
7648
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
+ }
7649
7672
  .blog .blog__title {
7650
7673
  color: var(--primary-main-dark-1);
7651
7674
  }
@@ -7654,6 +7677,15 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7654
7677
  margin-bottom: 3rem;
7655
7678
  }
7656
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
+ }
7657
7689
  .blog .cta-button {
7658
7690
  width: 100%;
7659
7691
  margin-top: 3rem;
@@ -8229,6 +8261,12 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
8229
8261
  width: 100%;
8230
8262
  margin: 0 auto;
8231
8263
  text-align: center;
8264
+ padding: 1.5rem;
8265
+ }
8266
+ @media (min-width: 960px) {
8267
+ .people-say {
8268
+ padding: 0;
8269
+ }
8232
8270
  }
8233
8271
  @media (min-width: 1200px) {
8234
8272
  .people-say {
@@ -9,6 +9,6 @@
9
9
 
10
10
  &__image {
11
11
  margin: 1.5rem;
12
- max-width: 8rem;
12
+ max-width: 7rem;
13
13
  }
14
14
  }
@@ -4,8 +4,14 @@
4
4
  .guidelines-section {
5
5
  &-main {
6
6
  display: flex;
7
- flex-direction: row;
7
+ flex-direction: column;
8
8
  flex-wrap: nowrap;
9
+ padding: 1.5rem;
10
+
11
+ @include laptop {
12
+ flex-direction: row;
13
+ padding: 0;
14
+ }
9
15
  }
10
16
 
11
17
  &__texts {
@@ -65,7 +71,7 @@
65
71
  }
66
72
 
67
73
  &.is-mobile {
68
- display: flex;
74
+ display: none;
69
75
 
70
76
  @include landscape-tablets {
71
77
  display: none;
@@ -14,9 +14,13 @@
14
14
  flex-direction: column;
15
15
  box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
16
16
  background: get-color(others, white);
17
- transform: translateY(-50%);
17
+ transform: translateY(-5rem);
18
18
  padding: 1.5rem 0;
19
19
 
20
+ @include laptop {
21
+ transform: translateY(-50%);
22
+ }
23
+
20
24
  &__title {
21
25
  text-align: center;
22
26
  font-size: 32px;
@@ -59,10 +63,11 @@
59
63
  display: flex;
60
64
  justify-content: center;
61
65
  flex-direction: column;
62
- gap: 2.5rem;
66
+ gap: 1rem;
63
67
 
64
68
  @include laptop {
65
69
  flex-direction: row;
70
+ gap: 2.5rem;
66
71
  }
67
72
 
68
73
  &__item {
@@ -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 null;
8
- return (_jsxs("div", { className: 'blog', children: [_jsx("h2", { className: 'serif --super-large blog__title', children: blogTitle }), _jsx(ArticlesList, { articles: articles.articles }), _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
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 null
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={'serif --super-large blog__title'}>{blogTitle}</h2>
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
  }
@@ -1,6 +1,7 @@
1
1
  import { type ArticlesListProps } from '../../organisms';
2
2
  export interface BlogSectionProps {
3
3
  blogTitle: string;
4
- blogCta: string;
4
+ blogCta?: string | null;
5
+ blogDescription?: string | null;
5
6
  articles: ArticlesListProps;
6
7
  }
@@ -2,6 +2,7 @@ import { type ArticlesListProps } from '../../organisms'
2
2
 
3
3
  export interface BlogSectionProps {
4
4
  blogTitle: string
5
- blogCta: string
5
+ blogCta?: string | null
6
+ blogDescription?: string | null
6
7
  articles: ArticlesListProps
7
8
  }
@@ -5,6 +5,11 @@
5
5
  width: 100%;
6
6
  margin: 0 auto;
7
7
  text-align: center;
8
+ padding: 1.5rem;
9
+
10
+ @include laptop {
11
+ padding: 0;
12
+ }
8
13
 
9
14
  @include desktop {
10
15
  max-width: $max-width;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.2.12",
3
+ "version": "5.2.14",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",