iceholidays-frontend 0.3.0 → 0.5.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 (108) 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 +2194 -0
  4. data/app/assets/stylesheets/iceholidays/frontend/common.scss +317 -0
  5. data/app/assets/stylesheets/iceholidays/frontend/layout.scss +281 -0
  6. data/app/assets/stylesheets/iceholidays/frontend/utils/_antd_overrides.scss +122 -0
  7. data/app/assets/stylesheets/iceholidays/frontend/utils/_variables.scss +4 -0
  8. data/app/assets/stylesheets/iceholidays/frontend/widgets/filter_pills.scss +52 -0
  9. data/app/assets/stylesheets/iceholidays/frontend/widgets/search_bar.scss +116 -0
  10. data/app/controllers/iceholidays/frontend/posts_controller.rb +14 -0
  11. data/app/controllers/iceholidays/frontend/site_controller.rb +32 -0
  12. data/app/javascript/api-services/agents-api.service.ts +33 -0
  13. data/app/javascript/api-services/banners-api.service.ts +28 -0
  14. data/app/javascript/api-services/locations-api.service.ts +71 -0
  15. data/app/javascript/api-services/search-api.service.ts +16 -0
  16. data/app/javascript/api-services/series-api.service.ts +64 -0
  17. data/app/javascript/api-services/testimonials-api.service.ts +27 -0
  18. data/app/javascript/interfaces/agent.interface.ts +11 -0
  19. data/app/javascript/interfaces/banner.interface.ts +10 -0
  20. data/app/javascript/interfaces/country.interface.ts +19 -0
  21. data/app/javascript/interfaces/itinerary.interface.ts +111 -0
  22. data/app/javascript/interfaces/testimonial.interface.ts +6 -0
  23. data/app/javascript/react/App.tsx +32 -0
  24. data/app/javascript/react/components/Destinations.tsx +84 -143
  25. data/app/javascript/react/components/PriceDetails.tsx +146 -0
  26. data/app/javascript/react/components/Testimonials.tsx +68 -61
  27. data/app/javascript/react/components/shared/ContactAgentsForm.tsx +44 -0
  28. data/app/javascript/react/components/shared/Headline.tsx +30 -0
  29. data/app/javascript/react/components/shared/LocationDropdown.tsx +34 -0
  30. data/app/javascript/react/components/shared/LocationPostcards.tsx +52 -0
  31. data/app/javascript/react/components/shared/RibbonSection.tsx +21 -0
  32. data/app/javascript/react/index.js +3 -5
  33. data/app/javascript/react/layouts/MainFooter.tsx +97 -0
  34. data/app/javascript/react/layouts/MainHeader.tsx +83 -0
  35. data/app/javascript/react/layouts/MainLayout.tsx +21 -0
  36. data/app/javascript/react/pages/AboutUsPage.tsx +95 -0
  37. data/app/javascript/react/pages/BlogPage.tsx +81 -0
  38. data/app/javascript/react/pages/BlogShowPage.tsx +43 -0
  39. data/app/javascript/react/pages/ContactAgentsPage.tsx +185 -0
  40. data/app/javascript/react/pages/ContactUsPage.tsx +122 -0
  41. data/app/javascript/react/pages/CountriesPage.tsx +57 -0
  42. data/app/javascript/react/pages/Homepage.tsx +100 -0
  43. data/app/javascript/react/pages/ListingPage.tsx +292 -0
  44. data/app/javascript/react/pages/ShowPage.tsx +402 -0
  45. data/app/javascript/react/widgets/FilterPills.tsx +111 -0
  46. data/app/javascript/react/widgets/SearchBarWidget.tsx +58 -0
  47. data/app/views/iceholidays/frontend/posts/index.html.erb +9 -0
  48. data/app/views/iceholidays/frontend/posts/show.html.erb +2 -0
  49. data/app/views/iceholidays/frontend/site/index.html.erb +1 -24
  50. data/app/views/layouts/iceholidays/frontend/application.html.erb +2 -6
  51. data/config/routes.rb +10 -0
  52. data/lib/iceholidays/frontend/version.rb +1 -1
  53. data/public/iceholidays-assets/application.css +2638 -0
  54. data/public/iceholidays-assets/application.js +212 -651
  55. data/public/iceholidays-assets/application.js.map +4 -4
  56. data/public/iceholidays-assets/images/about-us_logo_mobile.png +0 -0
  57. data/public/iceholidays-assets/images/about_us.png +0 -0
  58. data/public/iceholidays-assets/images/about_us2.png +0 -0
  59. data/public/iceholidays-assets/images/blog.png +0 -0
  60. data/public/iceholidays-assets/images/blog1.png +0 -0
  61. data/public/iceholidays-assets/images/certificate1.png +0 -0
  62. data/public/iceholidays-assets/images/certificate2.png +0 -0
  63. data/public/iceholidays-assets/images/china_southern_airlines.png +0 -0
  64. data/public/iceholidays-assets/images/china_southern_airlines_icon.png +0 -0
  65. data/public/iceholidays-assets/images/competitiveness.png +0 -0
  66. data/public/iceholidays-assets/images/contact_agents.png +0 -0
  67. data/public/iceholidays-assets/images/contact_us.png +0 -0
  68. data/public/iceholidays-assets/images/contact_us_form.png +0 -0
  69. data/public/iceholidays-assets/images/destinations_logo.png +0 -0
  70. data/public/iceholidays-assets/images/ethical.png +0 -0
  71. data/public/iceholidays-assets/images/footer-bg_mobile.png +0 -0
  72. data/public/iceholidays-assets/images/hw_logo.png +0 -0
  73. data/public/iceholidays-assets/images/innovative.png +0 -0
  74. data/public/iceholidays-assets/images/logo_mobile.png +0 -0
  75. data/public/iceholidays-assets/images/plane.png +0 -0
  76. data/public/iceholidays-assets/images/social/ico_fb.png +0 -0
  77. data/public/iceholidays-assets/images/social/ico_ig.png +0 -0
  78. data/public/iceholidays-assets/images/social/ico_twitter.png +0 -0
  79. data/public/iceholidays-assets/images/social/ico_yt.png +0 -0
  80. data/public/iceholidays-assets/images/social.png +0 -0
  81. metadata +74 -71
  82. data/app/assets/stylesheets/iceholidays/frontend/application.scss +0 -904
  83. data/app/javascript/react/components/Homepage.tsx +0 -15
  84. data/app/javascript/react/components/HomepageBanner.tsx +0 -62
  85. data/app/views/layouts/iceholidays/frontend/shared/_footer.html.erb +0 -42
  86. data/app/views/layouts/iceholidays/frontend/shared/_header.html.erb +0 -20
  87. data/public/iceholidays-assets/images/Frame71.png +0 -0
  88. data/public/iceholidays-assets/images/africa.png +0 -0
  89. data/public/iceholidays-assets/images/banner1.png +0 -0
  90. data/public/iceholidays-assets/images/banner2.png +0 -0
  91. data/public/iceholidays-assets/images/china.png +0 -0
  92. data/public/iceholidays-assets/images/china2.png +0 -0
  93. data/public/iceholidays-assets/images/guangzhou.png +0 -0
  94. data/public/iceholidays-assets/images/guilin.png +0 -0
  95. data/public/iceholidays-assets/images/harbin.png +0 -0
  96. data/public/iceholidays-assets/images/hongkong.png +0 -0
  97. data/public/iceholidays-assets/images/inner_mongolia.png +0 -0
  98. data/public/iceholidays-assets/images/jiangxi.png +0 -0
  99. data/public/iceholidays-assets/images/kenya.png +0 -0
  100. data/public/iceholidays-assets/images/kenya2.png +0 -0
  101. data/public/iceholidays-assets/images/kunming.png +0 -0
  102. data/public/iceholidays-assets/images/slikroad.png +0 -0
  103. data/public/iceholidays-assets/images/southafrica.png +0 -0
  104. data/public/iceholidays-assets/images/tanzania.png +0 -0
  105. data/public/iceholidays-assets/images/uganda.png +0 -0
  106. /data/public/iceholidays-assets/images/{Group_71.png → about-us_logo.png} +0 -0
  107. /data/public/iceholidays-assets/images/{chongqing.png → china_listings_cover.png} +0 -0
  108. /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: 863654c2cf6a12a64a30d7ac313c3b3151e6772ba2f6fcfc6aa2160391dcc8bd
4
- data.tar.gz: ec1f0394c55a0bc6a474ae0a96cbc5cca1e309d2e2f756437f7f615935f641f9
3
+ metadata.gz: 9543a8bab876ad4982f485380d55661e2be5bfc331c5aeac759e9bc7994956db
4
+ data.tar.gz: 66a5be926856f9cb40f5cff827168e2d4d3f33ad10b60505680be62bd5f90cd4
5
5
  SHA512:
6
- metadata.gz: 903ac5ecac661c1062d2547570706c1965e1a1ca0d260167f91158442d49f05a6ba4bd00e4127726e988519718582d0d48692d5b9007a223f5b82bbd83a10e89
7
- data.tar.gz: d9818be7bb909eaeb97d3b5693654c0b7c145602681916cfcd3aeab7979ca8ef2c0e39e990b54127e92442a806424e408f568ffe728bc96fefd92c839dfa5093
6
+ metadata.gz: 116f2957d4e6557c76fb96a8477cd4d8316f2e0309a8a3fb412563089e13fefbe63287148095255532e29e5256c5bff7116ed07e2e0c0471f516d75a2b04066d
7
+ data.tar.gz: fb90a122c99796f4388378857fde351a57b8daf4baa025d2fdb0aa5d222853ef88b3840924d2e4339c78c921e765e38cbe54eced1813ae9a798061552f226afb
@@ -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%; }