@tbox.cn/app-card-assets 0.1.1 → 1.0.0-alpha.10

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 (48) hide show
  1. package/README.md +1 -1
  2. package/SOURCE.md +1 -1
  3. package/assets.json +2 -21
  4. package/components/Banner/index.tsx +2 -3
  5. package/components/BlockAnimal/LottiePlayer/index.tsx +2 -3
  6. package/components/BlockAnimal/index.tsx +13 -14
  7. package/components/BlockBarrage/index.tsx +10 -11
  8. package/components/BlockFanSwiper/index.tsx +6 -7
  9. package/components/BlockIntro/index.tsx +4 -5
  10. package/components/BlockIntroCenter/index.tsx +3 -4
  11. package/components/BlockNowList/index.tsx +10 -8
  12. package/components/BlockQuestionList/index.tsx +12 -13
  13. package/components/BlockServiceIconList/index.tsx +20 -18
  14. package/components/BlockServiceList/index.tsx +10 -11
  15. package/components/BlockTravelCarousel/index.tsx +142 -33
  16. package/components/BlockTravelCarousel/tags/Tags.tsx +2 -3
  17. package/components/OneCol/index.tsx +18 -19
  18. package/components/TwoCol/index.tsx +16 -17
  19. package/docs/Banner.md +1 -1
  20. package/docs/BlockAnimal.md +1 -1
  21. package/docs/BlockBarrage.md +1 -1
  22. package/docs/BlockFanSwiper.md +1 -1
  23. package/docs/BlockIntro.md +1 -1
  24. package/docs/BlockIntroCenter.md +1 -1
  25. package/docs/BlockNowList.md +1 -1
  26. package/docs/BlockQuestionList.md +1 -1
  27. package/docs/BlockServiceIconList.md +1 -1
  28. package/docs/BlockServiceList.md +1 -1
  29. package/docs/BlockTravelCarousel.md +3 -1
  30. package/docs/OneCol.md +1 -1
  31. package/docs/TwoCol.md +1 -1
  32. package/package.json +1 -3
  33. package/shared/home-integration.md +11 -11
  34. package/components/Banner/index.module.less +0 -13
  35. package/components/BlockAnimal/LottiePlayer/index.module.less +0 -11
  36. package/components/BlockAnimal/index.module.less +0 -80
  37. package/components/BlockBarrage/index.module.less +0 -104
  38. package/components/BlockFanSwiper/index.module.less +0 -93
  39. package/components/BlockIntro/index.module.less +0 -32
  40. package/components/BlockIntroCenter/index.module.less +0 -31
  41. package/components/BlockNowList/index.module.less +0 -75
  42. package/components/BlockQuestionList/index.module.less +0 -115
  43. package/components/BlockServiceIconList/index.module.less +0 -68
  44. package/components/BlockServiceList/index.module.less +0 -92
  45. package/components/BlockTravelCarousel/index.module.less +0 -127
  46. package/components/BlockTravelCarousel/tags/Tags.module.less +0 -20
  47. package/components/OneCol/index.module.less +0 -161
  48. package/components/TwoCol/index.module.less +0 -199
@@ -1,80 +0,0 @@
1
- .blockAnimal {
2
- min-width: 0;
3
- box-sizing: border-box;
4
- position: relative;
5
- width: 100%;
6
- height: 100%;
7
- margin-bottom: 32px;
8
- .blockContent {
9
- position: relative;
10
- }
11
- .blockMedia {
12
- min-height: 300px;
13
- }
14
- .animalGif {
15
- width: 100%;
16
- }
17
- .animalMp4 {
18
- width: 100%;
19
- }
20
-
21
- .welcomeWrapper {
22
- margin-top: 24px;
23
- border-radius: 8px 48px 48px 48px;
24
- padding: 24px 32px;
25
- background: #1f3b63;
26
- background: rgba(255, 255, 255, 0.4);
27
- }
28
-
29
- .welcomeText {
30
- font-size: 30px;
31
- color: #1f3b63;
32
- letter-spacing: 0;
33
- line-height: 48px;
34
- }
35
-
36
- .tipsContainer {
37
- position: absolute;
38
- width: 100%;
39
- height: 100%;
40
- top: 0;
41
- left: 0;
42
- }
43
-
44
- .lottieTips {
45
- font-size: 24px;
46
- position: absolute;
47
- padding: 12px 24px;
48
- background-color: #fff;
49
- flex-direction: row;
50
- justify-content: center;
51
- align-items: center;
52
- border-radius: 37px;
53
- }
54
-
55
- .tips-icon {
56
- height: 28px;
57
- width: 28px;
58
- }
59
-
60
- .tipsTitle {
61
- color: #1f3b63;
62
- font-size: 26px;
63
- margin-left: 8px;
64
- }
65
- }
66
- .guessbox {
67
- display: flex;
68
- flex-direction: column;
69
- align-items: flex-start;
70
- }
71
- .guessItem {
72
- background: rgba(255, 255, 255, 0.8);
73
- border-radius: 31px;
74
- padding: 8px 32px;
75
- margin-top: 16px;
76
- font-size: 26px;
77
- line-height: 1.5;
78
- color: #1f3b63;
79
- display: inline-block;
80
- }
@@ -1,104 +0,0 @@
1
- /* 弹幕组件样式 */
2
- .danmuWallWrap {
3
- width: 100%;
4
- min-width: 0;
5
- box-sizing: border-box;
6
- margin-bottom: 28px;
7
- }
8
-
9
- .danmuWall {
10
- white-space: nowrap;
11
- display: flex;
12
- flex-direction: row;
13
- overflow: hidden;
14
-
15
- /* 边界淡出效果 - 24px宽度 */
16
- mask-image: linear-gradient(
17
- to right,
18
- transparent 0%,
19
- rgba(0, 0, 0, 0.1) 12px,
20
- rgba(0, 0, 0, 1) 24px,
21
- rgba(0, 0, 0, 1) calc(100% - 24px),
22
- rgba(0, 0, 0, 0.1) calc(100% - 12px),
23
- transparent 100%
24
- );
25
- -webkit-mask-image: linear-gradient(
26
- to right,
27
- transparent 0%,
28
- rgba(0, 0, 0, 0.1) 12px,
29
- rgba(0, 0, 0, 1) 24px,
30
- rgba(0, 0, 0, 1) calc(100% - 24px),
31
- rgba(0, 0, 0, 0.1) calc(100% - 12px),
32
- transparent 100%
33
- );
34
-
35
- }
36
-
37
- .danmuWallBox {
38
- display: flex;
39
- flex-direction: column;
40
- transition: transform 0.1s linear;
41
- width: 100%;
42
- min-width: 0;
43
- overflow-x: hidden;
44
- overflow-y: hidden;
45
- scrollbar-width: none;
46
- }
47
-
48
- .danmuWallTitleBox {
49
- margin-bottom: 24px;
50
- }
51
-
52
- .danmuWallTitle {
53
- font-size: 30px;
54
- color: #1f3b63;
55
- font-weight: 500;
56
- }
57
-
58
- .danmuWallItem {
59
- display: flex;
60
- flex-direction: column;
61
- margin-right: 20px;
62
- }
63
-
64
- /* 弹幕项样式 */
65
- .danmuItemWrap {
66
- display: flex;
67
- gap: 10px;
68
- margin-bottom: 16px;
69
- }
70
-
71
- .danmuItem {
72
- border-radius: 38px;
73
- background-color: rgb(244, 249, 255);
74
- padding: 13px 32px 12px 32px;
75
- box-sizing: border-box;
76
- display: flex;
77
- flex-direction: row;
78
- align-items: center;
79
- cursor: pointer;
80
- transition: background-color 0.3s ease;
81
- }
82
-
83
- .danmuWrap {
84
- display: flex;
85
- flex-direction: row;
86
- flex-wrap: wrap;
87
- }
88
-
89
- .danmuImage {
90
- border-radius: 14px;
91
- width: 28px;
92
- height: 28px;
93
- flex-shrink: 0;
94
- box-sizing: border-box;
95
- margin-right: 8px;
96
- }
97
-
98
- .danmuTitle {
99
- color: #1f3b63;
100
- font-size: 26px;
101
- white-space: nowrap;
102
- box-sizing: border-box;
103
- line-height: 1.2;
104
- }
@@ -1,93 +0,0 @@
1
- .cardContainer {
2
- width: 100%;
3
- min-width: 0;
4
- box-sizing: border-box;
5
- // background-color: aqua;
6
- // overflow: hidden;
7
- // height: 506px;
8
- margin-bottom: 28px;
9
- }
10
-
11
- .swiperWrapper {
12
- padding-top: 44px;
13
- // padding-bottom: 44px;
14
- }
15
-
16
- .slider {
17
- position: relative;
18
- width: 100%;
19
- min-height: 506px;
20
-
21
- // background-color: khaki;
22
- overflow: hidden;
23
- // overflow-y: initial;
24
- }
25
-
26
- .sliderItem {
27
- position: absolute;
28
- width: 394px;
29
- max-width: 100%;
30
- height: 506px;
31
- // overflow: hidden;
32
- border-radius: 40px;
33
- background-size: cover;
34
- left: max(0px, calc(50% - 394px/2));
35
- top: 0;
36
- transition: transform 0.3s ease-in-out;
37
- visibility: visible;
38
- // box-shadow: 0 17px 51px rgba(50, 87, 107, 0.22);
39
- // background-color: lawngreen;
40
- }
41
-
42
- .itemHidden {
43
- visibility: hidden;
44
- }
45
-
46
- .sliderItemContent {
47
- width: 100%;
48
- height: 100%;
49
- // padding: 28px;
50
- display: flex;
51
- flex-direction: column;
52
- justify-content: flex-end;
53
- position: relative;
54
- }
55
-
56
- .sliderItemImg {
57
- position: absolute;
58
- top: 0;
59
- left: 0;
60
- width: 100%;
61
- height: 100%;
62
- // height: 506px;
63
- border-radius: 40px;
64
- }
65
- .sliderItemTitle {
66
- position: relative;
67
- z-index: 3;
68
- font-size: 34px;
69
- line-height: 48px;
70
- color: #fff;
71
- font-weight: 500;
72
- margin-bottom: 20px;
73
- padding: 0 24px;
74
-
75
- }
76
-
77
- .sliderItemCity {
78
- margin-top: 28px;
79
- display: flex;
80
- flex-direction: row;
81
- align-items: center;
82
- }
83
-
84
- .cityIcon {
85
- width: 24px;
86
- height: 24px;
87
- }
88
-
89
- .cityText {
90
- font-size: 18px;
91
- line-height: 24px;
92
- color: rgba(255, 255, 255, 0.8);
93
- }
@@ -1,32 +0,0 @@
1
- .cityContainer {
2
- min-width: 0;
3
- margin-top: 32px;
4
- width: 100%;
5
- box-sizing: border-box;
6
- margin-bottom: 40px;
7
- }
8
-
9
- .welcomeSection {
10
- display: flex;
11
- flex-direction: column;
12
- box-sizing: border-box;
13
- }
14
-
15
- .greetingText {
16
- color: #102953;
17
- font-size: 48px;
18
- line-height: 64px;
19
- font-weight: 700;
20
- align-self: flex-start;
21
- width: 100%;
22
- white-space: nowrap;
23
- box-sizing: border-box;
24
- }
25
-
26
- .descText {
27
- color: #1f3b63;
28
- font-size: 25px;
29
- margin-top: 12px;
30
- line-height: 1.5;
31
- box-sizing: border-box;
32
- }
@@ -1,31 +0,0 @@
1
- .welcomeSection {
2
- min-width: 0;
3
- margin-top: 32px;
4
- display: flex;
5
- flex-direction: column;
6
- box-sizing: border-box;
7
- width: 100%;
8
- align-items: center;
9
- margin-bottom: 28px;
10
- }
11
-
12
- .greetingText {
13
- width: 100%;
14
- text-align: center;
15
- color: #102953;
16
- font-size: 44px;
17
- line-height: 64px;
18
- font-weight: 700;
19
- box-sizing: border-box;
20
- }
21
-
22
- .descText {
23
- width: 100%;
24
- text-align: center;
25
- // color: rgba(0,0,0,0.5);
26
- color: #1f3b63;
27
- font-size: 25px;
28
- line-height: 36px;
29
- margin-top: 12px;
30
- box-sizing: border-box;
31
- }
@@ -1,75 +0,0 @@
1
- .nowList {
2
- width: 100%;
3
- min-width: 0;
4
- box-sizing: border-box;
5
- margin-bottom: 28px;
6
- position: relative;
7
- }
8
-
9
- .listBox {
10
- width: 100%;
11
- display: grid;
12
- grid-template-columns: repeat(2, minmax(0, 1fr));
13
- gap: 32px;
14
- justify-content: center;
15
-
16
- }
17
-
18
- .listItem {
19
- width: 100%;
20
- min-width: 0;
21
- height: 416px;
22
- background-size: 100% 100%;
23
- }
24
- .item0 {
25
- transform: rotate(3deg);
26
- }
27
- .item1 {
28
- transform: rotate(-3deg);
29
- }
30
- .item2 {
31
- transform: rotate(3deg);
32
-
33
- }
34
-
35
- .item3 {
36
- transform: rotate(-3deg);
37
- }
38
-
39
-
40
- .itemContent {
41
- margin-top: 190px;
42
- padding: 24px;
43
- display: flex;
44
- flex-direction: column;
45
- }
46
-
47
- .itemTitle {
48
- color: #102953;
49
- font-size: 30px;
50
- white-space: nowrap;
51
- overflow: hidden;
52
- text-overflow: ellipsis;
53
- font-weight: 500;
54
- margin-bottom: 8px;
55
- }
56
-
57
- .itemDesc {
58
- color: #102953;
59
- font-size: 26px;
60
- white-space: nowrap;
61
- overflow: hidden;
62
- text-overflow: ellipsis;
63
- font-weight: 500;
64
- margin-bottom: 28px;
65
- }
66
-
67
- .itemBtn {
68
- align-self: flex-start;
69
- padding: 12px 24px;
70
- background: #102953;
71
- color: #fff;
72
- font-weight: 500;
73
- font-size: 26px;
74
- border-radius: 32px;
75
- }
@@ -1,115 +0,0 @@
1
- .articleList {
2
- width: 100%;
3
- min-width: 0;
4
- margin-bottom: 28px;
5
- box-sizing: border-box;
6
- }
7
-
8
- .headerSection {
9
- border-radius: 24px;
10
- background-color: rgba(255, 255, 255, 0.5);
11
- padding: 24px 24px 28px 24px;
12
- display: flex;
13
- flex-direction: column;
14
- box-sizing: border-box;
15
- }
16
-
17
- .titleWrapper {
18
- display: flex;
19
- flex-direction: row;
20
- justify-content: space-between;
21
- align-items: center;
22
- box-sizing: border-box;
23
- }
24
-
25
- .articleTitle {
26
- color: #1f3b63;
27
- font-size: 30px;
28
- font-weight: 500;
29
- line-height: 40px;
30
- white-space: nowrap;
31
- box-sizing: border-box;
32
- }
33
-
34
- .actionBar {
35
- display: flex;
36
- align-items: center;
37
- flex-direction: row;
38
- box-sizing: border-box;
39
- cursor: pointer;
40
- }
41
-
42
- .loadingIndicator {
43
- width: 32px;
44
- height: 32px;
45
- box-sizing: border-box;
46
- }
47
-
48
- .refreshButton {
49
- color: #4b6b99;
50
- font-size: 26px;
51
- font-weight: 500;
52
- line-height: 36px;
53
- margin-left: 6px;
54
- white-space: nowrap;
55
- box-sizing: border-box;
56
- }
57
-
58
- .contentArea {
59
- display: flex;
60
- flex-direction: column;
61
- box-sizing: border-box;
62
- }
63
-
64
- .articleItem {
65
- border-radius: 16px;
66
- background-color: #fff;
67
- padding: 18px 24px;
68
- height: 72px;
69
- display: flex;
70
- flex-direction: row;
71
- align-items: center;
72
- box-sizing: border-box;
73
- cursor: pointer;
74
- margin-top: 24px;
75
- }
76
-
77
- .itemThumbnail {
78
- width: 16px;
79
- height: 16px;
80
- }
81
-
82
- .itemDescription {
83
- color: #1f3b63;
84
- font-size: 26px;
85
- margin-left: 8px;
86
- line-height: 36px;
87
- white-space: nowrap;
88
- box-sizing: border-box;
89
- flex: 1;
90
- overflow: hidden;
91
- text-overflow: ellipsis;
92
- }
93
-
94
- .navigationIcon {
95
- margin-left: 48px;
96
- width: 32px;
97
- height: 32px;
98
- box-sizing: border-box;
99
- }
100
-
101
- .more-options-icon {
102
- margin-left: 76px;
103
- width: 36px;
104
- height: 36px;
105
- box-sizing: border-box;
106
- }
107
-
108
- .additional-item {
109
- border-radius: 16px;
110
- background-color: rgb(255, 255, 255);
111
- padding: 20px 20px 20px 20px;
112
- display: flex;
113
- align-items: center;
114
- box-sizing: border-box;
115
- }
@@ -1,68 +0,0 @@
1
- .serviceList {
2
- width: 100%;
3
- min-width: 0;
4
- margin-bottom: 28px;
5
- border-radius: 24px;
6
- background-color: rgba(255, 255, 255, 0.5);
7
- padding: 24px;
8
- display: flex;
9
- flex-direction: column;
10
- justify-content: center;
11
- box-sizing: border-box;
12
- }
13
-
14
- .servers {
15
- display: flex;
16
- flex-direction: column;
17
- }
18
- .serversTitle {
19
- color: #1f3b63;
20
- font-size: 30px;
21
- font-weight: 500;
22
- }
23
-
24
- .serversListBox {
25
- margin-top: 24px;
26
- width: 100%;
27
- display: flex;
28
- justify-content: center;
29
- align-items: center;
30
- }
31
-
32
- .serversList {
33
- display: grid;
34
- grid-template-columns: repeat(4, minmax(0, 1fr));
35
- width: 100%;
36
- min-width: 0;
37
- }
38
-
39
- .serversItem {
40
- display: flex;
41
- justify-content: center;
42
- align-items: center;
43
- min-width: 0;
44
- height: 86px;
45
- cursor: pointer;
46
- }
47
- .serversItemBox {
48
- max-width: 100%;
49
- min-width: 0;
50
- display: flex;
51
- flex-direction: column;
52
- justify-content: center;
53
- align-items: center;
54
- }
55
-
56
- .serversIcon {
57
- width: 48px;
58
- height: 48px;
59
- }
60
-
61
- .serversText {
62
- font-size: 22px;
63
- color: #1f3b63;
64
- margin-top: 8px;
65
- text-align: center;
66
- max-width: 100%;
67
- overflow-wrap: anywhere;
68
- }
@@ -1,92 +0,0 @@
1
- .travelType {
2
- width: 100%;
3
- min-width: 0;
4
- box-sizing: border-box;
5
- margin-bottom: 28px;
6
- }
7
-
8
- .serviceHeader {
9
- border-radius: 24px;
10
- background-color: rgba(255, 255, 255, 0.5);
11
- padding: 0 24px 28px;
12
- display: flex;
13
- flex-direction: column;
14
- box-sizing: border-box;
15
- }
16
-
17
- .mainTitle {
18
- font-size: 30px;
19
- color: #1f3b63;
20
- line-height: 40px;
21
- font-weight: 500;
22
- margin: 24px 0;
23
- }
24
-
25
- .transportOptions {
26
- width: 100%;
27
- display: flex;
28
- height: 164px;
29
- flex-direction: row;
30
- overflow-x: auto;
31
- gap: 12px;
32
- // 隐藏滚动条width: 0;
33
- scrollbar-width: none;
34
- }
35
- .optionsContainer {
36
- position: relative;
37
- width: 280px;
38
- max-width: 100%;
39
- height: 164px;
40
- padding: 20px 24px;
41
- display: flex;
42
- flex-direction: column;
43
- align-items: flex-start;
44
- justify-content: space-between;
45
- background-size: cover;
46
- box-sizing: border-box;
47
- flex-shrink: 0;
48
- flex-grow: 0;
49
- border-radius: 16px;
50
- overflow: hidden;
51
- }
52
-
53
- .optionsMark {
54
- position: absolute;
55
- top: 0;
56
- left: 0;
57
- width: 100%;
58
- height: 100%;
59
- }
60
- .optionsMarkWrap {
61
- position: relative;
62
- width: 100%;
63
- height: 100%;
64
- z-index: 1;
65
- }
66
-
67
- .guideTitle {
68
- color: rgb(255, 255, 255);
69
- font-size: 26px;
70
- white-space: nowrap;
71
- box-sizing: border-box;
72
- margin-bottom: 30px;
73
- overflow: hidden;
74
- text-overflow: ellipsis;
75
- width: 100%;
76
- }
77
-
78
- .descWrap {
79
- display: flex;
80
- flex-direction: column;
81
- }
82
-
83
- .freeTourOption {
84
- margin-bottom: 12px;
85
- color: rgb(237, 238, 239);
86
- font-size: 22px;
87
- box-sizing: border-box;
88
- white-space: nowrap;
89
- overflow: hidden;
90
- text-overflow: ellipsis;
91
- width: 100%;
92
- }