@tbox.cn/app-card-assets 0.1.0 → 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 +3 -1
  2. package/SOURCE.md +1 -1
  3. package/assets.json +3 -22
  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 +18 -16
  34. package/components/Banner/index.module.less +0 -11
  35. package/components/BlockAnimal/LottiePlayer/index.module.less +0 -11
  36. package/components/BlockAnimal/index.module.less +0 -78
  37. package/components/BlockBarrage/index.module.less +0 -101
  38. package/components/BlockFanSwiper/index.module.less +0 -89
  39. package/components/BlockIntro/index.module.less +0 -31
  40. package/components/BlockIntroCenter/index.module.less +0 -30
  41. package/components/BlockNowList/index.module.less +0 -72
  42. package/components/BlockQuestionList/index.module.less +0 -113
  43. package/components/BlockServiceIconList/index.module.less +0 -62
  44. package/components/BlockServiceList/index.module.less +0 -89
  45. package/components/BlockTravelCarousel/index.module.less +0 -125
  46. package/components/BlockTravelCarousel/tags/Tags.module.less +0 -20
  47. package/components/OneCol/index.module.less +0 -158
  48. package/components/TwoCol/index.module.less +0 -191
@@ -1,78 +0,0 @@
1
- .blockAnimal {
2
- position: relative;
3
- width: 100%;
4
- height: 100%;
5
- margin-bottom: 32px;
6
- .blockContent {
7
- position: relative;
8
- }
9
- .blockMedia {
10
- min-height: 300px;
11
- }
12
- .animalGif {
13
- width: 100%;
14
- }
15
- .animalMp4 {
16
- width: 100%;
17
- }
18
-
19
- .welcomeWrapper {
20
- margin-top: 24px;
21
- border-radius: 8px 48px 48px 48px;
22
- padding: 24px 32px;
23
- background: #1f3b63;
24
- background: rgba(255, 255, 255, 0.4);
25
- }
26
-
27
- .welcomeText {
28
- font-size: 30px;
29
- color: #1f3b63;
30
- letter-spacing: 0;
31
- line-height: 48px;
32
- }
33
-
34
- .tipsContainer {
35
- position: absolute;
36
- width: 100%;
37
- height: 100%;
38
- top: 0;
39
- left: 0;
40
- }
41
-
42
- .lottieTips {
43
- font-size: 24px;
44
- position: absolute;
45
- padding: 12px 24px;
46
- background-color: #fff;
47
- flex-direction: row;
48
- justify-content: center;
49
- align-items: center;
50
- border-radius: 37px;
51
- }
52
-
53
- .tips-icon {
54
- height: 28px;
55
- width: 28px;
56
- }
57
-
58
- .tipsTitle {
59
- color: #1f3b63;
60
- font-size: 26px;
61
- margin-left: 8px;
62
- }
63
- }
64
- .guessbox {
65
- display: flex;
66
- flex-direction: column;
67
- align-items: flex-start;
68
- }
69
- .guessItem {
70
- background: rgba(255, 255, 255, 0.8);
71
- border-radius: 31px;
72
- padding: 8px 32px;
73
- margin-top: 16px;
74
- font-size: 26px;
75
- line-height: 1.5;
76
- color: #1f3b63;
77
- display: inline-block;
78
- }
@@ -1,101 +0,0 @@
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
- }
@@ -1,89 +0,0 @@
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
- }
@@ -1,31 +0,0 @@
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
- }
@@ -1,30 +0,0 @@
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
- }
@@ -1,72 +0,0 @@
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
- }
@@ -1,113 +0,0 @@
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
- }
@@ -1,62 +0,0 @@
1
- .serviceList {
2
- margin-bottom: 28px;
3
- border-radius: 24px;
4
- background-color: rgba(255, 255, 255, 0.5);
5
- padding: 24px;
6
- display: flex;
7
- flex-direction: column;
8
- justify-content: center;
9
- box-sizing: border-box;
10
- }
11
-
12
- .servers {
13
- display: flex;
14
- flex-direction: column;
15
- }
16
- .serversTitle {
17
- color: #1f3b63;
18
- font-size: 30px;
19
- font-weight: 500;
20
- }
21
-
22
- .serversListBox {
23
- margin-top: 24px;
24
- width: 100%;
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- }
29
-
30
- .serversList {
31
- display: flex;
32
- flex-direction: row;
33
- flex-wrap: wrap;
34
- width: 622px;
35
- }
36
-
37
- .serversItem {
38
- display: flex;
39
- justify-content: center;
40
- align-items: center;
41
- width: 155px;
42
- height: 86px;
43
- cursor: pointer;
44
- }
45
- .serversItemBox {
46
- display: flex;
47
- flex-direction: column;
48
- justify-content: center;
49
- align-items: center;
50
- }
51
-
52
- .serversIcon {
53
- width: 48px;
54
- height: 48px;
55
- }
56
-
57
- .serversText {
58
- font-size: 22px;
59
- color: #1f3b63;
60
- margin-top: 8px;
61
- text-align: center;
62
- }
@@ -1,89 +0,0 @@
1
- .travelType {
2
- box-sizing: border-box;
3
- margin-bottom: 28px;
4
- }
5
-
6
- .serviceHeader {
7
- border-radius: 24px;
8
- background-color: rgba(255, 255, 255, 0.5);
9
- padding: 0 24px 28px;
10
- display: flex;
11
- flex-direction: column;
12
- box-sizing: border-box;
13
- }
14
-
15
- .mainTitle {
16
- font-size: 30px;
17
- color: #1f3b63;
18
- line-height: 40px;
19
- font-weight: 500;
20
- margin: 24px 0;
21
- }
22
-
23
- .transportOptions {
24
- width: 100%;
25
- display: flex;
26
- height: 164px;
27
- flex-direction: row;
28
- overflow-x: auto;
29
- gap: 12px;
30
- // 隐藏滚动条width: 0;
31
- scrollbar-width: none;
32
- }
33
- .optionsContainer {
34
- position: relative;
35
- width: 280px;
36
- height: 164px;
37
- padding: 20px 24px;
38
- display: flex;
39
- flex-direction: column;
40
- align-items: flex-start;
41
- justify-content: space-between;
42
- background-size: cover;
43
- box-sizing: border-box;
44
- flex-shrink: 0;
45
- flex-grow: 0;
46
- border-radius: 16px;
47
- overflow: hidden;
48
- }
49
-
50
- .optionsMark {
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
- width: 100%;
55
- height: 100%;
56
- }
57
- .optionsMarkWrap {
58
- position: relative;
59
- width: 100%;
60
- height: 100%;
61
- z-index: 1;
62
- }
63
-
64
- .guideTitle {
65
- color: rgb(255, 255, 255);
66
- font-size: 26px;
67
- white-space: nowrap;
68
- box-sizing: border-box;
69
- margin-bottom: 30px;
70
- overflow: hidden;
71
- text-overflow: ellipsis;
72
- width: 100%;
73
- }
74
-
75
- .descWrap {
76
- display: flex;
77
- flex-direction: column;
78
- }
79
-
80
- .freeTourOption {
81
- margin-bottom: 12px;
82
- color: rgb(237, 238, 239);
83
- font-size: 22px;
84
- box-sizing: border-box;
85
- white-space: nowrap;
86
- overflow: hidden;
87
- text-overflow: ellipsis;
88
- width: 100%;
89
- }