iceholidays-frontend 0.4.0 → 0.6.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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/iceholidays/frontend/actiontext.scss +119 -0
  3. data/app/assets/stylesheets/iceholidays/frontend/application.sass.scss +968 -355
  4. data/app/assets/stylesheets/iceholidays/frontend/common.scss +159 -74
  5. data/app/assets/stylesheets/iceholidays/frontend/layout.scss +218 -125
  6. data/app/assets/stylesheets/iceholidays/frontend/utils/_antd_overrides.scss +22 -7
  7. data/app/assets/stylesheets/iceholidays/frontend/utils/_variables.scss +2 -1
  8. data/app/assets/stylesheets/iceholidays/frontend/widgets/filter_pills.scss +19 -12
  9. data/app/assets/stylesheets/iceholidays/frontend/widgets/search_bar.scss +4 -0
  10. data/app/controllers/iceholidays/frontend/posts_controller.rb +14 -0
  11. data/app/javascript/api-services/agents-api.service.ts +33 -0
  12. data/app/javascript/api-services/locations-api.service.ts +23 -1
  13. data/app/javascript/api-services/series-api.service.ts +48 -28
  14. data/app/javascript/interfaces/agent.interface.ts +11 -0
  15. data/app/javascript/interfaces/country.interface.ts +4 -3
  16. data/app/javascript/interfaces/itinerary.interface.ts +101 -8
  17. data/app/javascript/react/App.tsx +1 -1
  18. data/app/javascript/react/components/Destinations.tsx +30 -20
  19. data/app/javascript/react/components/PriceDetails.tsx +146 -0
  20. data/app/javascript/react/components/shared/ContactAgentsForm.tsx +44 -0
  21. data/app/javascript/react/components/shared/Headline.tsx +2 -1
  22. data/app/javascript/react/components/shared/LocationDropdown.tsx +34 -0
  23. data/app/javascript/react/components/shared/{Postcard.tsx → LocationPostcards.tsx} +22 -1
  24. data/app/javascript/react/layouts/MainFooter.tsx +64 -39
  25. data/app/javascript/react/layouts/MainHeader.tsx +68 -30
  26. data/app/javascript/react/pages/AboutUsPage.tsx +8 -8
  27. data/app/javascript/react/pages/BlogPage.tsx +6 -4
  28. data/app/javascript/react/pages/ContactAgentsPage.tsx +174 -5
  29. data/app/javascript/react/pages/ContactUsPage.tsx +5 -5
  30. data/app/javascript/react/pages/CountriesPage.tsx +3 -8
  31. data/app/javascript/react/pages/Homepage.tsx +23 -13
  32. data/app/javascript/react/pages/ListingPage.tsx +197 -145
  33. data/app/javascript/react/pages/ShowPage.tsx +275 -265
  34. data/app/javascript/react/widgets/FilterPills.tsx +83 -49
  35. data/app/javascript/react/widgets/SearchBarWidget.tsx +24 -8
  36. data/app/views/iceholidays/frontend/posts/index.html.erb +9 -0
  37. data/app/views/iceholidays/frontend/posts/show.html.erb +2 -0
  38. data/config/routes.rb +2 -1
  39. data/lib/iceholidays/frontend/version.rb +1 -1
  40. data/public/iceholidays-assets/application.css +1209 -437
  41. data/public/iceholidays-assets/application.js +91 -104
  42. data/public/iceholidays-assets/application.js.map +4 -4
  43. data/public/iceholidays-assets/images/TSTRibbon.png +0 -0
  44. data/public/iceholidays-assets/images/about-us_logo_mobile.png +0 -0
  45. data/public/iceholidays-assets/images/destinations_logo.png +0 -0
  46. data/public/iceholidays-assets/images/footer-bg_mobile.png +0 -0
  47. data/public/iceholidays-assets/images/logo_mobile.png +0 -0
  48. metadata +19 -27
  49. data/public/iceholidays-assets/images/8D7N.png +0 -0
  50. data/public/iceholidays-assets/images/Frame71.png +0 -0
  51. data/public/iceholidays-assets/images/africa.png +0 -0
  52. data/public/iceholidays-assets/images/banner1.png +0 -0
  53. data/public/iceholidays-assets/images/banner2.png +0 -0
  54. data/public/iceholidays-assets/images/china.png +0 -0
  55. data/public/iceholidays-assets/images/china2.png +0 -0
  56. data/public/iceholidays-assets/images/chongqing.png +0 -0
  57. data/public/iceholidays-assets/images/guangzhou.png +0 -0
  58. data/public/iceholidays-assets/images/guilin.png +0 -0
  59. data/public/iceholidays-assets/images/harbin.png +0 -0
  60. data/public/iceholidays-assets/images/hongkong.png +0 -0
  61. data/public/iceholidays-assets/images/inner_mongolia.png +0 -0
  62. data/public/iceholidays-assets/images/jiangxi.png +0 -0
  63. data/public/iceholidays-assets/images/kenya.png +0 -0
  64. data/public/iceholidays-assets/images/kenya2.png +0 -0
  65. data/public/iceholidays-assets/images/kunming.png +0 -0
  66. data/public/iceholidays-assets/images/slikroad.png +0 -0
  67. data/public/iceholidays-assets/images/southafrica.png +0 -0
  68. data/public/iceholidays-assets/images/tanzania.png +0 -0
  69. data/public/iceholidays-assets/images/tour1.png +0 -0
  70. data/public/iceholidays-assets/images/uganda.png +0 -0
  71. /data/public/iceholidays-assets/images/{Group_71.png → about-us_logo.png} +0 -0
  72. /data/public/iceholidays-assets/images/{logo_container.png → logo.png} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3fc1491eacac49f5080e2daea34bfabffb039b555a48a150b71a33df7a083a6
4
- data.tar.gz: 891c68684f64fb2a545b59becf250b1581a4304253d3eade363c95f3f963f1de
3
+ metadata.gz: 6247a8c09cfbda6553642ceb846d1a1661d98edbfa83a891f3ae54dc1cc8db14
4
+ data.tar.gz: 5551d3ff2200d552fe3449604ff5ee3159a5096a06c19436b630e721ce2f3632
5
5
  SHA512:
6
- metadata.gz: 39e9937e37125dec63cfeba697686258f3d586105833a2e9b2cf102d56bdc37d511331b8dabef6441295de699e5724e28eee6cad82d961a8015f92316253cff4
7
- data.tar.gz: dd96dd130c3f6263207c67f6defcfba6bac4a50c86b6ed3f39dba04e4482c12662e2bba21bc5458f65ae03fa314d8c9a060de63c849d6857c741e5e6349c56f2
6
+ metadata.gz: f69e3e14e999712b65290da68cfda945d889b63d23acbfa94aad05351d6df78e77ca02150830688860187af1a724a763cb2402b673397140fc415eba4d99cb23
7
+ data.tar.gz: ad72cf692918fac66f81acf70a12790a6eec52cc34127bc8acf82ad8d1892ca5242d98a629c132066ab0bcb289452bb30f92bdc2511804eb7ff325fa46f668bc
@@ -0,0 +1,119 @@
1
+ .trix-content .attachment-gallery > action-text-attachment,
2
+ .trix-content .attachment-gallery > .attachment {
3
+ flex: 1 0 33%;
4
+ padding: 0 0.5em;
5
+ max-width: 33%;
6
+ }
7
+
8
+ .trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
9
+ .trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
10
+ .trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
11
+ flex-basis: 50%;
12
+ max-width: 50%;
13
+ }
14
+
15
+ .trix-content action-text-attachment .attachment {
16
+ padding: 0 !important;
17
+ max-width: 100% !important;
18
+ }
19
+
20
+ .actiontext-content {
21
+ font-family: Arial, sans-serif;
22
+ line-height: 1.5;
23
+ }
24
+
25
+ .actiontext-table {
26
+ border-collapse: collapse!important;
27
+ width: 100%!important;
28
+ margin-top: 20px!important;
29
+ }
30
+
31
+ .actiontext-table th, .actiontext-table td {
32
+ border: 1px solid black!important;
33
+ padding: 8px!important;
34
+ text-align: left!important;
35
+ }
36
+
37
+ .actiontext-table th {
38
+ background-color: #f2f2f2!important;
39
+ }
40
+
41
+ .actiontext-link {
42
+ color: #007BFF!important;
43
+ }
44
+
45
+ .trix-content {
46
+ line-height: 1.5; }
47
+ .trix-content * {
48
+ box-sizing: border-box;
49
+ margin: 0;
50
+ padding: 0; }
51
+ .trix-content h1 {
52
+ font-size: 1.2em;
53
+ line-height: 1.2; }
54
+ .trix-content blockquote {
55
+ border: 0 solid #ccc;
56
+ border-left-width: 0.3em;
57
+ margin-left: 0.3em;
58
+ padding-left: 0.6em; }
59
+ .trix-content [dir=rtl] blockquote,
60
+ .trix-content blockquote[dir=rtl] {
61
+ border-width: 0;
62
+ border-right-width: 0.3em;
63
+ margin-right: 0.3em;
64
+ padding-right: 0.6em; }
65
+ .trix-content li {
66
+ margin-left: 1em; }
67
+ .trix-content [dir=rtl] li {
68
+ margin-right: 1em; }
69
+ .trix-content pre {
70
+ display: inline-block;
71
+ width: 100%;
72
+ vertical-align: top;
73
+ font-family: monospace;
74
+ font-size: 0.9em;
75
+ padding: 0.5em;
76
+ white-space: pre;
77
+ background-color: #eee;
78
+ overflow-x: auto; }
79
+ .trix-content img {
80
+ max-width: 100%;
81
+ height: auto; }
82
+ .trix-content .attachment {
83
+ display: inline-block;
84
+ position: relative;
85
+ max-width: 100%; }
86
+ .trix-content .attachment a {
87
+ color: inherit;
88
+ text-decoration: none; }
89
+ .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
90
+ color: inherit; }
91
+ .trix-content .attachment__caption {
92
+ text-align: center; }
93
+ .trix-content .attachment__caption .attachment__name + .attachment__size::before {
94
+ content: ' \2022 '; }
95
+ .trix-content .attachment--preview {
96
+ width: 100%;
97
+ text-align: center; }
98
+ .trix-content .attachment--preview .attachment__caption {
99
+ color: #666;
100
+ font-size: 0.9em;
101
+ line-height: 1.2; }
102
+ .trix-content .attachment--file {
103
+ color: #333;
104
+ line-height: 1;
105
+ margin: 0 2px 2px 2px;
106
+ padding: 0.4em 1em;
107
+ border: 1px solid #bbb;
108
+ border-radius: 5px; }
109
+ .trix-content .attachment-gallery {
110
+ display: flex;
111
+ flex-wrap: wrap;
112
+ position: relative; }
113
+ .trix-content .attachment-gallery .attachment {
114
+ flex: 1 0 33%;
115
+ padding: 0 0.5em;
116
+ max-width: 33%; }
117
+ .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
118
+ flex-basis: 50%;
119
+ max-width: 50%; }