@tbox.cn/app-card-assets 0.0.0-stage → 0.1.0

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.
Files changed (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -2
  3. package/SOURCE.md +5 -0
  4. package/assets.json +239 -0
  5. package/components/Banner/index.module.less +11 -0
  6. package/components/Banner/index.tsx +36 -0
  7. package/components/BlockAnimal/LottiePlayer/index.module.less +11 -0
  8. package/components/BlockAnimal/LottiePlayer/index.tsx +24 -0
  9. package/components/BlockAnimal/LottiePlayer/utils.ts +72 -0
  10. package/components/BlockAnimal/index.module.less +78 -0
  11. package/components/BlockAnimal/index.tsx +120 -0
  12. package/components/BlockBarrage/index.module.less +101 -0
  13. package/components/BlockBarrage/index.tsx +98 -0
  14. package/components/BlockFanSwiper/index.module.less +89 -0
  15. package/components/BlockFanSwiper/index.tsx +56 -0
  16. package/components/BlockIntro/index.module.less +31 -0
  17. package/components/BlockIntro/index.tsx +21 -0
  18. package/components/BlockIntroCenter/index.module.less +30 -0
  19. package/components/BlockIntroCenter/index.tsx +22 -0
  20. package/components/BlockNowList/index.module.less +72 -0
  21. package/components/BlockNowList/index.tsx +54 -0
  22. package/components/BlockQuestionList/index.module.less +113 -0
  23. package/components/BlockQuestionList/index.tsx +107 -0
  24. package/components/BlockServiceIconList/index.module.less +62 -0
  25. package/components/BlockServiceIconList/index.tsx +83 -0
  26. package/components/BlockServiceList/index.module.less +89 -0
  27. package/components/BlockServiceList/index.tsx +88 -0
  28. package/components/BlockTravelCarousel/index.module.less +125 -0
  29. package/components/BlockTravelCarousel/index.tsx +101 -0
  30. package/components/BlockTravelCarousel/tags/Tags.module.less +20 -0
  31. package/components/BlockTravelCarousel/tags/Tags.tsx +20 -0
  32. package/components/OneCol/index.module.less +158 -0
  33. package/components/OneCol/index.tsx +83 -0
  34. package/components/TwoCol/index.module.less +191 -0
  35. package/components/TwoCol/index.tsx +82 -0
  36. package/docs/Banner.md +17 -0
  37. package/docs/BlockAnimal.md +17 -0
  38. package/docs/BlockBarrage.md +17 -0
  39. package/docs/BlockFanSwiper.md +17 -0
  40. package/docs/BlockIntro.md +17 -0
  41. package/docs/BlockIntroCenter.md +17 -0
  42. package/docs/BlockNowList.md +17 -0
  43. package/docs/BlockQuestionList.md +17 -0
  44. package/docs/BlockServiceIconList.md +17 -0
  45. package/docs/BlockServiceList.md +17 -0
  46. package/docs/BlockTravelCarousel.md +17 -0
  47. package/docs/OneCol.md +17 -0
  48. package/docs/TwoCol.md +17 -0
  49. package/examples/Banner.json +5 -0
  50. package/examples/BlockAnimal.json +22 -0
  51. package/examples/BlockBarrage.json +26 -0
  52. package/examples/BlockFanSwiper.json +23 -0
  53. package/examples/BlockIntro.json +4 -0
  54. package/examples/BlockIntroCenter.json +4 -0
  55. package/examples/BlockNowList.json +36 -0
  56. package/examples/BlockQuestionList.json +25 -0
  57. package/examples/BlockServiceIconList.json +36 -0
  58. package/examples/BlockServiceList.json +36 -0
  59. package/examples/BlockTravelCarousel.json +37 -0
  60. package/examples/OneCol.json +49 -0
  61. package/examples/TwoCol.json +49 -0
  62. package/package.json +39 -3
  63. package/shared/actions.ts +38 -0
  64. package/shared/home-integration.md +47 -0
  65. package/shared/types.ts +10 -0
@@ -0,0 +1,101 @@
1
+ /* 弹幕组件样式 */
2
+ .danmuWallWrap {
3
+ margin-bottom: 28px;
4
+ }
5
+
6
+ .danmuWall {
7
+ white-space: nowrap;
8
+ display: flex;
9
+ flex-direction: row;
10
+ overflow: hidden;
11
+
12
+ /* 边界淡出效果 - 24px宽度 */
13
+ mask-image: linear-gradient(
14
+ to right,
15
+ transparent 0%,
16
+ rgba(0, 0, 0, 0.1) 12px,
17
+ rgba(0, 0, 0, 1) 24px,
18
+ rgba(0, 0, 0, 1) calc(100% - 24px),
19
+ rgba(0, 0, 0, 0.1) calc(100% - 12px),
20
+ transparent 100%
21
+ );
22
+ -webkit-mask-image: linear-gradient(
23
+ to right,
24
+ transparent 0%,
25
+ rgba(0, 0, 0, 0.1) 12px,
26
+ rgba(0, 0, 0, 1) 24px,
27
+ rgba(0, 0, 0, 1) calc(100% - 24px),
28
+ rgba(0, 0, 0, 0.1) calc(100% - 12px),
29
+ transparent 100%
30
+ );
31
+
32
+ }
33
+
34
+ .danmuWallBox {
35
+ display: flex;
36
+ flex-direction: column;
37
+ transition: transform 0.1s linear;
38
+ width: 100%;
39
+ min-width: 0;
40
+ overflow-x: hidden;
41
+ overflow-y: hidden;
42
+ scrollbar-width: none;
43
+ }
44
+
45
+ .danmuWallTitleBox {
46
+ margin-bottom: 24px;
47
+ }
48
+
49
+ .danmuWallTitle {
50
+ font-size: 30px;
51
+ color: #1f3b63;
52
+ font-weight: 500;
53
+ }
54
+
55
+ .danmuWallItem {
56
+ display: flex;
57
+ flex-direction: column;
58
+ margin-right: 20px;
59
+ }
60
+
61
+ /* 弹幕项样式 */
62
+ .danmuItemWrap {
63
+ display: flex;
64
+ gap: 10px;
65
+ margin-bottom: 16px;
66
+ }
67
+
68
+ .danmuItem {
69
+ border-radius: 38px;
70
+ background-color: rgb(244, 249, 255);
71
+ padding: 13px 32px 12px 32px;
72
+ box-sizing: border-box;
73
+ display: flex;
74
+ flex-direction: row;
75
+ align-items: center;
76
+ cursor: pointer;
77
+ transition: background-color 0.3s ease;
78
+ }
79
+
80
+ .danmuWrap {
81
+ display: flex;
82
+ flex-direction: row;
83
+ flex-wrap: wrap;
84
+ }
85
+
86
+ .danmuImage {
87
+ border-radius: 14px;
88
+ width: 28px;
89
+ height: 28px;
90
+ flex-shrink: 0;
91
+ box-sizing: border-box;
92
+ margin-right: 8px;
93
+ }
94
+
95
+ .danmuTitle {
96
+ color: #1f3b63;
97
+ font-size: 26px;
98
+ white-space: nowrap;
99
+ box-sizing: border-box;
100
+ line-height: 1.2;
101
+ }
@@ -0,0 +1,98 @@
1
+ import type { CardAssetProps as ICardProps } from '../../shared/types';
2
+ import React, { useState, useEffect, useRef, useMemo } from 'react';
3
+ import styles from './index.module.less';
4
+
5
+ interface BlockBarrageProps extends ICardProps {
6
+ /** 后端下发的卡片渲染相关的所有字段 */
7
+ cardData?: {
8
+ title?: string;
9
+ list?: Array<{
10
+ imageUrl?: string;
11
+ title?: string;
12
+ query?: string;
13
+ }>;
14
+ lineNum?: number;
15
+ } & ICardProps['cardData'];
16
+ }
17
+
18
+ const EMPTY_LIST: NonNullable<NonNullable<BlockBarrageProps['cardData']>['list']> = [];
19
+
20
+ interface DanmuItemProps {
21
+ list: any[];
22
+ onQuery: (query: string) => void;
23
+ }
24
+
25
+ const DanmuItem: React.FC<DanmuItemProps> = ({ list, onQuery }) => {
26
+ return (
27
+ <div className={styles.danmuItemWrap} style={{ marginLeft: '0.16rem' }}>
28
+ {list.map((item, index) => (
29
+ <div key={`${index}-${item.title}-${item.query}`} className={styles.danmuItem} onClick={() => onQuery(item.query)}>
30
+ {item.imageUrl && <img src={item.imageUrl} className={styles.danmuImage} alt={item.title} />}
31
+ <span className={styles.danmuTitle}>{item.title}</span>
32
+ </div>
33
+ ))}
34
+ </div>
35
+ );
36
+ };
37
+
38
+ const BlockBarrage: React.FC<BlockBarrageProps> = ({ cardData = {}, bridgeAPI }) => {
39
+ const { title, list: originalList = EMPTY_LIST, lineNum = 3 } = cardData;
40
+ const [paused, setPaused] = useState(false);
41
+ const contentRef = useRef<HTMLDivElement>(null);
42
+ const danmus = useMemo(() => {
43
+ if (!originalList.length) return [];
44
+ const lines = Math.min(originalList.length, Number.isFinite(lineNum) ? Math.max(1, Math.floor(lineNum)) : 3);
45
+ const size = Math.ceil(originalList.length / lines);
46
+ const groups = Array.from({ length: Math.ceil(originalList.length / size) }, (_, index) => originalList.slice(index * size, (index + 1) * size));
47
+ return Array.from({ length: lines }, (_, index) => {
48
+ const row = groups.flatMap((_, offset) => groups[(index + offset) % groups.length]);
49
+ return row.concat(row);
50
+ });
51
+ }, [originalList, lineNum]);
52
+
53
+ useEffect(() => {
54
+ const content = contentRef.current;
55
+ if (!content || paused || !danmus.length) return;
56
+ content.scrollLeft = 0;
57
+ const timer = setInterval(() => {
58
+ // Measure after content/images/layout updates; scrollWidth is in browser pixels.
59
+ const limit = content.scrollWidth / 2;
60
+ content.scrollLeft = limit > 0 && content.scrollLeft + 1 < limit ? content.scrollLeft + 1 : 0;
61
+ }, 25);
62
+ return () => clearInterval(timer);
63
+ }, [danmus, paused]);
64
+
65
+ const handleQuery = (query: string) => {
66
+ if (query) {
67
+ bridgeAPI?.sendQuery({
68
+ question_content: query,
69
+ });
70
+ }
71
+ };
72
+
73
+ return (
74
+ <div className={styles.danmuWallWrap}>
75
+ <div className={styles.danmuWallTitleBox}>
76
+ <span className={styles.danmuWallTitle}>{title}</span>
77
+ </div>
78
+ <div className={styles.danmuWall} onTouchStart={() => setPaused(true)} onTouchEnd={() => setPaused(false)} onTouchCancel={() => setPaused(false)}
79
+ onMouseEnter={() => setPaused(true)} onMouseLeave={() => setPaused(false)}>
80
+ <div className={styles.danmuWallBox} ref={contentRef}>
81
+ {danmus.map((list, index) => (
82
+ <div
83
+ key={index}
84
+ className={styles.danmuWallItem}
85
+ style={{
86
+ marginLeft: index % 2 === 0 ? 0 : '0.2rem',
87
+ }}
88
+ >
89
+ <DanmuItem list={list} onQuery={handleQuery} />
90
+ </div>
91
+ ))}
92
+ </div>
93
+ </div>
94
+ </div>
95
+ );
96
+ };
97
+
98
+ export default BlockBarrage;
@@ -0,0 +1,89 @@
1
+ .cardContainer {
2
+ // background-color: aqua;
3
+ // overflow: hidden;
4
+ // height: 506px;
5
+ margin-bottom: 28px;
6
+ }
7
+
8
+ .swiperWrapper {
9
+ padding-top: 44px;
10
+ // padding-bottom: 44px;
11
+ }
12
+
13
+ .slider {
14
+ position: relative;
15
+ width: 100%;
16
+ min-height: 506px;
17
+
18
+ // background-color: khaki;
19
+ overflow: hidden;
20
+ // overflow-y: initial;
21
+ }
22
+
23
+ .sliderItem {
24
+ position: absolute;
25
+ width: 394px;
26
+ height: 506px;
27
+ // overflow: hidden;
28
+ border-radius: 40px;
29
+ background-size: cover;
30
+ left: calc(50% - 394px/2);
31
+ top: 0;
32
+ transition: transform 0.3s ease-in-out;
33
+ visibility: visible;
34
+ // box-shadow: 0 17px 51px rgba(50, 87, 107, 0.22);
35
+ // background-color: lawngreen;
36
+ }
37
+
38
+ .itemHidden {
39
+ visibility: hidden;
40
+ }
41
+
42
+ .sliderItemContent {
43
+ width: 100%;
44
+ height: 100%;
45
+ // padding: 28px;
46
+ display: flex;
47
+ flex-direction: column;
48
+ justify-content: flex-end;
49
+ position: relative;
50
+ }
51
+
52
+ .sliderItemImg {
53
+ position: absolute;
54
+ top: 0;
55
+ left: 0;
56
+ width: 100%;
57
+ height: 100%;
58
+ // height: 506px;
59
+ border-radius: 40px;
60
+ }
61
+ .sliderItemTitle {
62
+ position: relative;
63
+ z-index: 3;
64
+ font-size: 34px;
65
+ line-height: 48px;
66
+ color: #fff;
67
+ font-weight: 500;
68
+ margin-bottom: 20px;
69
+ padding: 0 24px;
70
+
71
+ }
72
+
73
+ .sliderItemCity {
74
+ margin-top: 28px;
75
+ display: flex;
76
+ flex-direction: row;
77
+ align-items: center;
78
+ }
79
+
80
+ .cityIcon {
81
+ width: 24px;
82
+ height: 24px;
83
+ }
84
+
85
+ .cityText {
86
+ font-size: 18px;
87
+ line-height: 24px;
88
+ color: rgba(255, 255, 255, 0.8);
89
+ }
@@ -0,0 +1,56 @@
1
+ import { runCardClick } from '../../shared/actions';
2
+ import { useEffect, useState, useRef } from 'react';
3
+ import type { CardAssetBridge } from '../../shared/types';
4
+ import styles from './index.module.less';
5
+
6
+ interface FanItem {
7
+ imageUrl: string;
8
+ title?: string;
9
+ query?: string;
10
+ jumpUrl?: string;
11
+ clickAction?: string;
12
+ }
13
+
14
+ /** Fan carousel; the copied source belongs to the application. */
15
+ export default function BlockFanSwiper({ cardData = {}, bridgeAPI }: {
16
+ cardData?: { list?: FanItem[] };
17
+ bridgeAPI?: CardAssetBridge;
18
+ }) {
19
+ const list = cardData.list || [];
20
+ const [active, setActive] = useState(0);
21
+ const [paused, setPaused] = useState(false);
22
+ const start = useRef<number | null>(null);
23
+ useEffect(() => { setActive(0); }, [list]);
24
+ useEffect(() => {
25
+ if (paused || list.length < 2) return;
26
+ const timer = setInterval(() => setActive((value) => (value + 1) % list.length), 3000);
27
+ return () => clearInterval(timer);
28
+ }, [paused, list.length]);
29
+ if (!list.length) return null;
30
+ const positions = list.length > 1 ? [-2, -1, 0, 1, 2] : [0];
31
+ return (
32
+ <div className={styles.cardContainer}>
33
+ <div className={styles.slider}
34
+ onTouchStart={(event) => { start.current = event.touches[0].clientX; setPaused(true); }}
35
+ onTouchEnd={(event) => {
36
+ const offset = event.changedTouches[0].clientX - (start.current ?? event.changedTouches[0].clientX);
37
+ if (Math.abs(offset) > 10) setActive((value) => (value + (offset > 0 ? -1 : 1) + list.length) % list.length);
38
+ start.current = null;
39
+ setPaused(false);
40
+ }}
41
+ onTouchCancel={() => { start.current = null; setPaused(false); }}>
42
+ {positions.map((position) => {
43
+ const item = list[(active + position + list.length * 2) % list.length];
44
+ return <div key={position} className={styles.sliderItem}
45
+ style={{ transform: `translate(${position * 4.14}rem, ${Math.abs(position) * 0.5}rem) scale(${1 - Math.abs(position) * 0.2}) rotateZ(${position * 10}deg)` }}
46
+ onClick={() => runCardClick(bridgeAPI, item)}>
47
+ <div className={styles.sliderItemContent}>
48
+ <img src={item.imageUrl} className={styles.sliderItemImg} alt={item.title || ''} />
49
+ <span className={styles.sliderItemTitle}>{item.title}</span>
50
+ </div>
51
+ </div>;
52
+ })}
53
+ </div>
54
+ </div>
55
+ );
56
+ }
@@ -0,0 +1,31 @@
1
+ .cityContainer {
2
+ margin-top: 32px;
3
+ width: 100%;
4
+ box-sizing: border-box;
5
+ margin-bottom: 40px;
6
+ }
7
+
8
+ .welcomeSection {
9
+ display: flex;
10
+ flex-direction: column;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ .greetingText {
15
+ color: #102953;
16
+ font-size: 48px;
17
+ line-height: 64px;
18
+ font-weight: 700;
19
+ align-self: flex-start;
20
+ width: 100%;
21
+ white-space: nowrap;
22
+ box-sizing: border-box;
23
+ }
24
+
25
+ .descText {
26
+ color: #1f3b63;
27
+ font-size: 25px;
28
+ margin-top: 12px;
29
+ line-height: 1.5;
30
+ box-sizing: border-box;
31
+ }
@@ -0,0 +1,21 @@
1
+ import type { CardAssetProps as ICardProps } from '../../shared/types';
2
+ import React from 'react';
3
+ import styles from './index.module.less';
4
+
5
+ interface BlockInfoProps extends ICardProps {
6
+ /** 后端下发的卡片渲染相关的所有字段 */
7
+ cardData?: Record<string, any>;
8
+ }
9
+
10
+ const BlockInfo: React.FC<BlockInfoProps> = ({ cardData = {} }) => {
11
+ return (
12
+ <div className={styles.cityContainer}>
13
+ <div className={styles.welcomeSection}>
14
+ <span className={styles.greetingText}>{cardData?.title}</span>
15
+ <span className={styles.descText}>{cardData?.desc}</span>
16
+ </div>
17
+ </div>
18
+ );
19
+ };
20
+
21
+ export default BlockInfo;
@@ -0,0 +1,30 @@
1
+ .welcomeSection {
2
+ margin-top: 32px;
3
+ display: flex;
4
+ flex-direction: column;
5
+ box-sizing: border-box;
6
+ width: 100%;
7
+ align-items: center;
8
+ margin-bottom: 28px;
9
+ }
10
+
11
+ .greetingText {
12
+ width: 100%;
13
+ text-align: center;
14
+ color: #102953;
15
+ font-size: 44px;
16
+ line-height: 64px;
17
+ font-weight: 700;
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ .descText {
22
+ width: 100%;
23
+ text-align: center;
24
+ // color: rgba(0,0,0,0.5);
25
+ color: #1f3b63;
26
+ font-size: 25px;
27
+ line-height: 36px;
28
+ margin-top: 12px;
29
+ box-sizing: border-box;
30
+ }
@@ -0,0 +1,22 @@
1
+ import type { CardAssetProps as ICardProps } from '../../shared/types';
2
+ import React from 'react';
3
+ import styles from './index.module.less';
4
+
5
+ interface BlockInfoCenterProps extends ICardProps {
6
+ cardData: {
7
+ logo?: string;
8
+ title: string;
9
+ desc: string;
10
+ } & ICardProps['cardData'];
11
+ }
12
+
13
+ const BlockInfoCenter: React.FC<BlockInfoCenterProps> = ({ cardData = { title: '', desc: '' } }) => {
14
+ return (
15
+ <div className={styles.welcomeSection}>
16
+ <div className={styles.greetingText}>{cardData.title}</div>
17
+ <div className={styles.descText}>{cardData.desc}</div>
18
+ </div>
19
+ );
20
+ };
21
+
22
+ export default BlockInfoCenter;
@@ -0,0 +1,72 @@
1
+ .nowList {
2
+ margin-bottom: 28px;
3
+ position: relative;
4
+ }
5
+
6
+ .listBox {
7
+ width: 100%;
8
+ display: flex;
9
+ flex-direction: row;
10
+ flex-wrap: wrap;
11
+ gap: 32px;
12
+ justify-content: center;
13
+
14
+ }
15
+
16
+ .listItem {
17
+ width: 300px;
18
+ height: 416px;
19
+ background-size: 100% 100%;
20
+ }
21
+ .item0 {
22
+ transform: rotate(3deg);
23
+ }
24
+ .item1 {
25
+ transform: rotate(-3deg);
26
+ }
27
+ .item2 {
28
+ transform: rotate(3deg);
29
+
30
+ }
31
+
32
+ .item3 {
33
+ transform: rotate(-3deg);
34
+ }
35
+
36
+
37
+ .itemContent {
38
+ margin-top: 190px;
39
+ padding: 24px;
40
+ display: flex;
41
+ flex-direction: column;
42
+ }
43
+
44
+ .itemTitle {
45
+ color: #102953;
46
+ font-size: 30px;
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ text-overflow: ellipsis;
50
+ font-weight: 500;
51
+ margin-bottom: 8px;
52
+ }
53
+
54
+ .itemDesc {
55
+ color: #102953;
56
+ font-size: 26px;
57
+ white-space: nowrap;
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ font-weight: 500;
61
+ margin-bottom: 28px;
62
+ }
63
+
64
+ .itemBtn {
65
+ align-self: flex-start;
66
+ padding: 12px 24px;
67
+ background: #102953;
68
+ color: #fff;
69
+ font-weight: 500;
70
+ font-size: 26px;
71
+ border-radius: 32px;
72
+ }
@@ -0,0 +1,54 @@
1
+ import { runCardClick } from '../../shared/actions';
2
+ import type { CardAssetProps as ICardProps } from '../../shared/types';
3
+ import React from 'react';
4
+ import styles from './index.module.less';
5
+
6
+ interface BlockNowListProps extends ICardProps {
7
+ cardData?: {
8
+ list?: Array<{
9
+ bg?: string;
10
+ title?: string;
11
+ desc?: string;
12
+ btnText?: string;
13
+ jumpUrl?: string;
14
+ clickAction?: string;
15
+ query?: string;
16
+ }>;
17
+ } & ICardProps['cardData'];
18
+ }
19
+
20
+ const BlockNowList: React.FC<BlockNowListProps> = ({ cardData = {}, bridgeAPI }) => {
21
+ const { list: originalList = [] } = cardData;
22
+ const list = originalList.slice(0, 4);
23
+
24
+ const handleClick = (item: any) => runCardClick(bridgeAPI, item);
25
+
26
+ if (!list || list.length === 0) {
27
+ return null;
28
+ }
29
+
30
+ return (
31
+ <div className={styles.nowList}>
32
+ <div className={styles.listBox}>
33
+ {list.map((item, index) => (
34
+ <div
35
+ key={index}
36
+ className={`${styles.listItem} ${styles[`item${index}`]}`}
37
+ style={{
38
+ backgroundImage: `url(${item.bg})`,
39
+ }}
40
+ onClick={() => handleClick(item)}
41
+ >
42
+ <div className={styles.itemContent}>
43
+ <span className={styles.itemTitle}>{item.title}</span>
44
+ <span className={styles.itemDesc}>{item.desc}</span>
45
+ <span className={styles.itemBtn}>{item.btnText}</span>
46
+ </div>
47
+ </div>
48
+ ))}
49
+ </div>
50
+ </div>
51
+ );
52
+ };
53
+
54
+ export default BlockNowList;
@@ -0,0 +1,113 @@
1
+ .articleList {
2
+ margin-bottom: 28px;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ .headerSection {
7
+ border-radius: 24px;
8
+ background-color: rgba(255, 255, 255, 0.5);
9
+ padding: 24px 24px 28px 24px;
10
+ display: flex;
11
+ flex-direction: column;
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ .titleWrapper {
16
+ display: flex;
17
+ flex-direction: row;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ box-sizing: border-box;
21
+ }
22
+
23
+ .articleTitle {
24
+ color: #1f3b63;
25
+ font-size: 30px;
26
+ font-weight: 500;
27
+ line-height: 40px;
28
+ white-space: nowrap;
29
+ box-sizing: border-box;
30
+ }
31
+
32
+ .actionBar {
33
+ display: flex;
34
+ align-items: center;
35
+ flex-direction: row;
36
+ box-sizing: border-box;
37
+ cursor: pointer;
38
+ }
39
+
40
+ .loadingIndicator {
41
+ width: 32px;
42
+ height: 32px;
43
+ box-sizing: border-box;
44
+ }
45
+
46
+ .refreshButton {
47
+ color: #4b6b99;
48
+ font-size: 26px;
49
+ font-weight: 500;
50
+ line-height: 36px;
51
+ margin-left: 6px;
52
+ white-space: nowrap;
53
+ box-sizing: border-box;
54
+ }
55
+
56
+ .contentArea {
57
+ display: flex;
58
+ flex-direction: column;
59
+ box-sizing: border-box;
60
+ }
61
+
62
+ .articleItem {
63
+ border-radius: 16px;
64
+ background-color: #fff;
65
+ padding: 18px 24px;
66
+ height: 72px;
67
+ display: flex;
68
+ flex-direction: row;
69
+ align-items: center;
70
+ box-sizing: border-box;
71
+ cursor: pointer;
72
+ margin-top: 24px;
73
+ }
74
+
75
+ .itemThumbnail {
76
+ width: 16px;
77
+ height: 16px;
78
+ }
79
+
80
+ .itemDescription {
81
+ color: #1f3b63;
82
+ font-size: 26px;
83
+ margin-left: 8px;
84
+ line-height: 36px;
85
+ white-space: nowrap;
86
+ box-sizing: border-box;
87
+ flex: 1;
88
+ overflow: hidden;
89
+ text-overflow: ellipsis;
90
+ }
91
+
92
+ .navigationIcon {
93
+ margin-left: 48px;
94
+ width: 32px;
95
+ height: 32px;
96
+ box-sizing: border-box;
97
+ }
98
+
99
+ .more-options-icon {
100
+ margin-left: 76px;
101
+ width: 36px;
102
+ height: 36px;
103
+ box-sizing: border-box;
104
+ }
105
+
106
+ .additional-item {
107
+ border-radius: 16px;
108
+ background-color: rgb(255, 255, 255);
109
+ padding: 20px 20px 20px 20px;
110
+ display: flex;
111
+ align-items: center;
112
+ box-sizing: border-box;
113
+ }