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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/iceholidays/frontend/actiontext.scss +119 -0
- data/app/assets/stylesheets/iceholidays/frontend/application.sass.scss +2194 -0
- data/app/assets/stylesheets/iceholidays/frontend/common.scss +317 -0
- data/app/assets/stylesheets/iceholidays/frontend/layout.scss +281 -0
- data/app/assets/stylesheets/iceholidays/frontend/utils/_antd_overrides.scss +122 -0
- data/app/assets/stylesheets/iceholidays/frontend/utils/_variables.scss +4 -0
- data/app/assets/stylesheets/iceholidays/frontend/widgets/filter_pills.scss +52 -0
- data/app/assets/stylesheets/iceholidays/frontend/widgets/search_bar.scss +116 -0
- data/app/controllers/iceholidays/frontend/posts_controller.rb +14 -0
- data/app/controllers/iceholidays/frontend/site_controller.rb +32 -0
- data/app/javascript/api-services/agents-api.service.ts +33 -0
- data/app/javascript/api-services/banners-api.service.ts +28 -0
- data/app/javascript/api-services/locations-api.service.ts +71 -0
- data/app/javascript/api-services/search-api.service.ts +16 -0
- data/app/javascript/api-services/series-api.service.ts +64 -0
- data/app/javascript/api-services/testimonials-api.service.ts +27 -0
- data/app/javascript/interfaces/agent.interface.ts +11 -0
- data/app/javascript/interfaces/banner.interface.ts +10 -0
- data/app/javascript/interfaces/country.interface.ts +19 -0
- data/app/javascript/interfaces/itinerary.interface.ts +111 -0
- data/app/javascript/interfaces/testimonial.interface.ts +6 -0
- data/app/javascript/react/App.tsx +32 -0
- data/app/javascript/react/components/Destinations.tsx +84 -143
- data/app/javascript/react/components/PriceDetails.tsx +146 -0
- data/app/javascript/react/components/Testimonials.tsx +68 -61
- data/app/javascript/react/components/shared/ContactAgentsForm.tsx +44 -0
- data/app/javascript/react/components/shared/Headline.tsx +30 -0
- data/app/javascript/react/components/shared/LocationDropdown.tsx +34 -0
- data/app/javascript/react/components/shared/LocationPostcards.tsx +52 -0
- data/app/javascript/react/components/shared/RibbonSection.tsx +21 -0
- data/app/javascript/react/index.js +3 -5
- data/app/javascript/react/layouts/MainFooter.tsx +97 -0
- data/app/javascript/react/layouts/MainHeader.tsx +83 -0
- data/app/javascript/react/layouts/MainLayout.tsx +21 -0
- data/app/javascript/react/pages/AboutUsPage.tsx +95 -0
- data/app/javascript/react/pages/BlogPage.tsx +81 -0
- data/app/javascript/react/pages/BlogShowPage.tsx +43 -0
- data/app/javascript/react/pages/ContactAgentsPage.tsx +185 -0
- data/app/javascript/react/pages/ContactUsPage.tsx +122 -0
- data/app/javascript/react/pages/CountriesPage.tsx +57 -0
- data/app/javascript/react/pages/Homepage.tsx +100 -0
- data/app/javascript/react/pages/ListingPage.tsx +292 -0
- data/app/javascript/react/pages/ShowPage.tsx +402 -0
- data/app/javascript/react/widgets/FilterPills.tsx +111 -0
- data/app/javascript/react/widgets/SearchBarWidget.tsx +58 -0
- data/app/views/iceholidays/frontend/posts/index.html.erb +9 -0
- data/app/views/iceholidays/frontend/posts/show.html.erb +2 -0
- data/app/views/iceholidays/frontend/site/index.html.erb +1 -24
- data/app/views/layouts/iceholidays/frontend/application.html.erb +2 -6
- data/config/routes.rb +10 -0
- data/lib/iceholidays/frontend/version.rb +1 -1
- data/public/iceholidays-assets/application.css +2638 -0
- data/public/iceholidays-assets/application.js +212 -651
- data/public/iceholidays-assets/application.js.map +4 -4
- data/public/iceholidays-assets/images/about-us_logo_mobile.png +0 -0
- data/public/iceholidays-assets/images/about_us.png +0 -0
- data/public/iceholidays-assets/images/about_us2.png +0 -0
- data/public/iceholidays-assets/images/blog.png +0 -0
- data/public/iceholidays-assets/images/blog1.png +0 -0
- data/public/iceholidays-assets/images/certificate1.png +0 -0
- data/public/iceholidays-assets/images/certificate2.png +0 -0
- data/public/iceholidays-assets/images/china_southern_airlines.png +0 -0
- data/public/iceholidays-assets/images/china_southern_airlines_icon.png +0 -0
- data/public/iceholidays-assets/images/competitiveness.png +0 -0
- data/public/iceholidays-assets/images/contact_agents.png +0 -0
- data/public/iceholidays-assets/images/contact_us.png +0 -0
- data/public/iceholidays-assets/images/contact_us_form.png +0 -0
- data/public/iceholidays-assets/images/destinations_logo.png +0 -0
- data/public/iceholidays-assets/images/ethical.png +0 -0
- data/public/iceholidays-assets/images/footer-bg_mobile.png +0 -0
- data/public/iceholidays-assets/images/hw_logo.png +0 -0
- data/public/iceholidays-assets/images/innovative.png +0 -0
- data/public/iceholidays-assets/images/logo_mobile.png +0 -0
- data/public/iceholidays-assets/images/plane.png +0 -0
- data/public/iceholidays-assets/images/social/ico_fb.png +0 -0
- data/public/iceholidays-assets/images/social/ico_ig.png +0 -0
- data/public/iceholidays-assets/images/social/ico_twitter.png +0 -0
- data/public/iceholidays-assets/images/social/ico_yt.png +0 -0
- data/public/iceholidays-assets/images/social.png +0 -0
- metadata +74 -71
- data/app/assets/stylesheets/iceholidays/frontend/application.scss +0 -904
- data/app/javascript/react/components/Homepage.tsx +0 -15
- data/app/javascript/react/components/HomepageBanner.tsx +0 -62
- data/app/views/layouts/iceholidays/frontend/shared/_footer.html.erb +0 -42
- data/app/views/layouts/iceholidays/frontend/shared/_header.html.erb +0 -20
- data/public/iceholidays-assets/images/Frame71.png +0 -0
- data/public/iceholidays-assets/images/africa.png +0 -0
- data/public/iceholidays-assets/images/banner1.png +0 -0
- data/public/iceholidays-assets/images/banner2.png +0 -0
- data/public/iceholidays-assets/images/china.png +0 -0
- data/public/iceholidays-assets/images/china2.png +0 -0
- data/public/iceholidays-assets/images/guangzhou.png +0 -0
- data/public/iceholidays-assets/images/guilin.png +0 -0
- data/public/iceholidays-assets/images/harbin.png +0 -0
- data/public/iceholidays-assets/images/hongkong.png +0 -0
- data/public/iceholidays-assets/images/inner_mongolia.png +0 -0
- data/public/iceholidays-assets/images/jiangxi.png +0 -0
- data/public/iceholidays-assets/images/kenya.png +0 -0
- data/public/iceholidays-assets/images/kenya2.png +0 -0
- data/public/iceholidays-assets/images/kunming.png +0 -0
- data/public/iceholidays-assets/images/slikroad.png +0 -0
- data/public/iceholidays-assets/images/southafrica.png +0 -0
- data/public/iceholidays-assets/images/tanzania.png +0 -0
- data/public/iceholidays-assets/images/uganda.png +0 -0
- /data/public/iceholidays-assets/images/{Group_71.png → about-us_logo.png} +0 -0
- /data/public/iceholidays-assets/images/{chongqing.png → china_listings_cover.png} +0 -0
- /data/public/iceholidays-assets/images/{logo_container.png → logo.png} +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Headline from "../components/shared/Headline";
|
|
3
|
+
import ContactAgentsForm from "../components/shared/ContactAgentsForm";
|
|
4
|
+
import AgentsApi from "../../api-services/agents-api.service";
|
|
5
|
+
import { Button, Card, Col, Modal, notification, Row } from "antd";
|
|
6
|
+
import { Agent } from "../../interfaces/agent.interface";
|
|
7
|
+
import { mdiMapMarker, mdiPhoneInTalkOutline, mdiWhatsapp, mdiEmailOutline } from "@mdi/js";
|
|
8
|
+
import Icon from "@mdi/react";
|
|
9
|
+
|
|
10
|
+
const { Meta } = Card;
|
|
11
|
+
|
|
12
|
+
const bannerPath = '/iceholidays-assets/images/contact_agents.png';
|
|
13
|
+
const breadcrumbs = [
|
|
14
|
+
{ title: 'Home' },
|
|
15
|
+
{ title: 'Contact Agents' }
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
class ContactAgentsPage extends React.Component {
|
|
19
|
+
agentsApi = new AgentsApi;
|
|
20
|
+
|
|
21
|
+
state = {
|
|
22
|
+
loading: true,
|
|
23
|
+
allAgents: [],
|
|
24
|
+
agents: [],
|
|
25
|
+
states: [],
|
|
26
|
+
cities: [],
|
|
27
|
+
setIsModalOpen: false,
|
|
28
|
+
agentData: { name: "", image: "", address: "", phone: "", whatsapp: "", email: "", city: "", state: "" },
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
componentDidMount() {
|
|
33
|
+
this.agentsApi.getAgents()
|
|
34
|
+
.then((agentsData:Agent[]) => {
|
|
35
|
+
const states = agentsData.filter(a => a.state != null).map(a => a.state);
|
|
36
|
+
const cities = agentsData.filter(a => a.city != null).map(a => a.city);
|
|
37
|
+
this.setState({agents: agentsData, allAgents: agentsData, loadingAgents:false, states, cities});
|
|
38
|
+
})
|
|
39
|
+
.finally(()=>this.setState({loading: false}))
|
|
40
|
+
.catch(error => {
|
|
41
|
+
notification.error({ message: 'An error occured while loading agents.'});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
showModal(agentData){
|
|
46
|
+
this.setState({setIsModalOpen: true, agentData: agentData});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
closeModal(){
|
|
50
|
+
this.setState({setIsModalOpen: false});
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
filterCities = (searchStr) => {
|
|
55
|
+
const allAgents:Agent[] = this.state.allAgents;
|
|
56
|
+
|
|
57
|
+
if(searchStr == undefined){
|
|
58
|
+
this.resetAgents();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const agents:Agent[] = allAgents.filter(a => a.state == searchStr);
|
|
62
|
+
const results = agents.map(a => a.city);
|
|
63
|
+
this.setState({cities: results});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
filterStates= (searchStr) => {
|
|
68
|
+
const allAgents:Agent[] = this.state.allAgents;
|
|
69
|
+
|
|
70
|
+
if(searchStr == undefined){
|
|
71
|
+
this.resetAgents();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const agents:Agent[] = allAgents.filter(a => a.city == searchStr);
|
|
76
|
+
const results = agents.map(a => a.state);
|
|
77
|
+
this.setState({states: results});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
resetAgents(){
|
|
81
|
+
const allAgents:Agent[] = this.state.allAgents;
|
|
82
|
+
const states = allAgents.filter(a => a.state != null).map(a => a.state);
|
|
83
|
+
const cities = allAgents.filter(a => a.city != null).map(a => a.city);
|
|
84
|
+
this.setState({states, cities});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
findAgents = (formValues) => {
|
|
88
|
+
const allAgents:Agent[] = this.state.allAgents;
|
|
89
|
+
const agents = allAgents.filter(a =>
|
|
90
|
+
(formValues.state == undefined || a.state === formValues.state) &&
|
|
91
|
+
(formValues.city == undefined || a.city === formValues.city));
|
|
92
|
+
this.setState({agents, showAgentsResults: true})
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
render(){
|
|
97
|
+
const {agents, states, cities, agentData} = this.state;
|
|
98
|
+
return (
|
|
99
|
+
<div id="contact-agents-page">
|
|
100
|
+
<Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="CONTACT AGENTS"/>
|
|
101
|
+
|
|
102
|
+
<div id="contact-agents-page_body">
|
|
103
|
+
<div id="find-agents">
|
|
104
|
+
<div id="find-agents_header"><span>Get Your City</span></div>
|
|
105
|
+
<div id="find-agents_form">
|
|
106
|
+
<ContactAgentsForm
|
|
107
|
+
states={states}
|
|
108
|
+
cities={cities}
|
|
109
|
+
findAgents={this.findAgents}
|
|
110
|
+
filterCities={this.filterCities}
|
|
111
|
+
filterStates={this.filterStates}/>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<div id="agents-list">
|
|
116
|
+
<Row gutter={[20, 20]}>
|
|
117
|
+
{
|
|
118
|
+
agents.map((agent:Agent) => (
|
|
119
|
+
<Col xs={24} sm={24} md={12} lg={6}>
|
|
120
|
+
<Card
|
|
121
|
+
hoverable
|
|
122
|
+
cover={<img alt={agent.name} src={agent.image} />}
|
|
123
|
+
>
|
|
124
|
+
<Meta title={agent.name} description={
|
|
125
|
+
<>
|
|
126
|
+
<div className="agent-details">
|
|
127
|
+
<Row gutter={[20, 20]} align="middle">
|
|
128
|
+
<Col span={24}>
|
|
129
|
+
<Icon path={mdiMapMarker} size="15px" />
|
|
130
|
+
<span>{agent.address}</span>
|
|
131
|
+
</Col>
|
|
132
|
+
<Col span={24}>
|
|
133
|
+
<Icon path={mdiPhoneInTalkOutline} size="15px" />
|
|
134
|
+
<span>{agent.phone}</span>
|
|
135
|
+
</Col>
|
|
136
|
+
<Col span={24}>
|
|
137
|
+
<Icon path={mdiWhatsapp} size="15px" />
|
|
138
|
+
<span>{agent.whatsapp}</span>
|
|
139
|
+
</Col>
|
|
140
|
+
<Col span={24}>
|
|
141
|
+
<Icon path={mdiEmailOutline} size="15px" />
|
|
142
|
+
<span>{agent.email}</span>
|
|
143
|
+
</Col>
|
|
144
|
+
</Row>
|
|
145
|
+
</div>
|
|
146
|
+
<Button color="primary" variant="outlined" className="more-info-button"
|
|
147
|
+
onClick={()=>this.showModal(agent)}>
|
|
148
|
+
More info
|
|
149
|
+
</Button>
|
|
150
|
+
</>
|
|
151
|
+
} />
|
|
152
|
+
</Card>
|
|
153
|
+
</Col>
|
|
154
|
+
))
|
|
155
|
+
}
|
|
156
|
+
</Row>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<Modal title={
|
|
160
|
+
<>
|
|
161
|
+
<img src={agentData?.image}/>
|
|
162
|
+
<span> {agentData.name} </span>
|
|
163
|
+
</>
|
|
164
|
+
} open={this.state.setIsModalOpen} onCancel={()=>this.closeModal()} footer={null} width={350} centered className="agent-full-details">
|
|
165
|
+
<Row gutter={[10,10]}>
|
|
166
|
+
<Col span={12}> <label>Agent Name</label> </Col>
|
|
167
|
+
<Col span={12}> <span> {agentData.name} </span></Col>
|
|
168
|
+
<Col span={12}> <label>State</label> </Col>
|
|
169
|
+
<Col span={12}> <span> {agentData.state} </span></Col>
|
|
170
|
+
<Col span={12}> <label>Address</label> </Col>
|
|
171
|
+
<Col span={12}> <span> {agentData.address} </span></Col>
|
|
172
|
+
<Col span={12}> <label>Tel</label> </Col>
|
|
173
|
+
<Col span={12}> <span> {agentData.phone} </span></Col>
|
|
174
|
+
<Col span={12}> <label>Email</label> </Col>
|
|
175
|
+
<Col span={12}> <span> {agentData.email} </span></Col>
|
|
176
|
+
</Row>
|
|
177
|
+
{/* google maps */}
|
|
178
|
+
</Modal>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
)
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export default ContactAgentsPage;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Headline from "../components/shared/Headline";
|
|
3
|
+
import { Button, Col, Flex, Form, Input, Row, Select, Space } from "antd";
|
|
4
|
+
import { mdiFacebook, mdiInstagram, mdiTwitter, mdiYoutube } from "@mdi/js";
|
|
5
|
+
import Icon from "@mdi/react";
|
|
6
|
+
const { TextArea } = Input;
|
|
7
|
+
|
|
8
|
+
const bannerPath = '/iceholidays-assets/images/contact_us.png';
|
|
9
|
+
const breadcrumbs = [
|
|
10
|
+
{ title: 'Home' },
|
|
11
|
+
{ title: 'Contact Us' }
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
const ContactUsPage = React.FC = () => {
|
|
15
|
+
const [form] = Form.useForm();
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div id="contact-us-page">
|
|
19
|
+
<Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="contact us"/>
|
|
20
|
+
|
|
21
|
+
<div id="contact-us-page_body">
|
|
22
|
+
<img src="/iceholidays-assets/images/contact_us_form.png"/>
|
|
23
|
+
|
|
24
|
+
<div id="contact-us-form">
|
|
25
|
+
<div id="contact-us-form_header">
|
|
26
|
+
<h2>Get in touch</h2>
|
|
27
|
+
<span>Send us your enquiry</span>
|
|
28
|
+
</div>
|
|
29
|
+
<Form
|
|
30
|
+
form={form}
|
|
31
|
+
autoComplete="off"
|
|
32
|
+
layout="vertical"
|
|
33
|
+
variant="filled"
|
|
34
|
+
>
|
|
35
|
+
<Form.Item label="Enter Name" name="name">
|
|
36
|
+
<Input placeholder="Enter Here" />
|
|
37
|
+
</Form.Item>
|
|
38
|
+
|
|
39
|
+
<Row gutter={20}>
|
|
40
|
+
<Col span={12}>
|
|
41
|
+
<Form.Item label="Enter Email" name="email">
|
|
42
|
+
<Input placeholder="Enter Here" />
|
|
43
|
+
</Form.Item>
|
|
44
|
+
</Col>
|
|
45
|
+
<Col span={12}>
|
|
46
|
+
<Form.Item label="Enter Phone Number" name="phoneNumber">
|
|
47
|
+
<Input placeholder="Enter Here" />
|
|
48
|
+
</Form.Item>
|
|
49
|
+
</Col>
|
|
50
|
+
</Row>
|
|
51
|
+
|
|
52
|
+
<Form.Item label="Select State" name="state">
|
|
53
|
+
<Select
|
|
54
|
+
placeholder="Please Select"
|
|
55
|
+
defaultValue="lucy"
|
|
56
|
+
options={[
|
|
57
|
+
{ value: 'jack', label: 'Jack' },
|
|
58
|
+
]}
|
|
59
|
+
/>
|
|
60
|
+
</Form.Item>
|
|
61
|
+
|
|
62
|
+
<Form.Item label="Select Area" name="area">
|
|
63
|
+
<Select
|
|
64
|
+
placeholder="Please Select"
|
|
65
|
+
defaultValue="lucy"
|
|
66
|
+
options={[
|
|
67
|
+
{ value: 'jack', label: 'Jack' },
|
|
68
|
+
]}
|
|
69
|
+
/>
|
|
70
|
+
</Form.Item>
|
|
71
|
+
|
|
72
|
+
<Form.Item label="Select Subject" name="subject">
|
|
73
|
+
<Select
|
|
74
|
+
placeholder="Please Select"
|
|
75
|
+
defaultValue="lucy"
|
|
76
|
+
options={[
|
|
77
|
+
{ value: 'jack', label: 'Jack' },
|
|
78
|
+
]}
|
|
79
|
+
/>
|
|
80
|
+
</Form.Item>
|
|
81
|
+
|
|
82
|
+
<Form.Item label="Write your message" name="message">
|
|
83
|
+
<TextArea rows={4} placeholder="Write Here"/>
|
|
84
|
+
</Form.Item>
|
|
85
|
+
|
|
86
|
+
<Flex align="center" justify="center">
|
|
87
|
+
<Button type="primary" htmlType="submit">
|
|
88
|
+
Submit
|
|
89
|
+
</Button>
|
|
90
|
+
</Flex>
|
|
91
|
+
|
|
92
|
+
</Form>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<div id="contact-us-page_footer">
|
|
97
|
+
<Row gutter={[29, 20]} >
|
|
98
|
+
<Col xs={24} sm={24} lg={12}>
|
|
99
|
+
<div>
|
|
100
|
+
<label>Contact Us</label>
|
|
101
|
+
<span>feedback@gd.my</span>
|
|
102
|
+
</div>
|
|
103
|
+
</Col>
|
|
104
|
+
<Col xs={24} sm={24} lg={12}>
|
|
105
|
+
<div>
|
|
106
|
+
<label>Connect with Us</label>
|
|
107
|
+
<Space size={29}>
|
|
108
|
+
<Icon path={mdiFacebook} size={1} />
|
|
109
|
+
<Icon path={mdiInstagram} size={1} />
|
|
110
|
+
<Icon path={mdiTwitter} size={1} />
|
|
111
|
+
<Icon path={mdiYoutube} size={1} />
|
|
112
|
+
<img src="/iceholidays-assets/images/social.png" className="social-icon"/>
|
|
113
|
+
</Space>
|
|
114
|
+
</div>
|
|
115
|
+
</Col>
|
|
116
|
+
</Row>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export default ContactUsPage;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Headline from "../components/shared/Headline";
|
|
3
|
+
import LocationsApi from "../../api-services/locations-api.service";
|
|
4
|
+
import { Flex, notification } from "antd";
|
|
5
|
+
import LocationPostcards from "../components/shared/LocationPostcards";
|
|
6
|
+
|
|
7
|
+
const bannerPath = '/iceholidays-assets/images/about_us.png';
|
|
8
|
+
const breadcrumbs = [
|
|
9
|
+
{ title: 'Home' },
|
|
10
|
+
{ title: 'Countries' }
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export default class CountriesPage extends React.Component {
|
|
15
|
+
locationsApi = new LocationsApi;
|
|
16
|
+
|
|
17
|
+
state = {
|
|
18
|
+
countries: []
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
componentDidMount() {
|
|
22
|
+
this.locationsApi.getCountries()
|
|
23
|
+
.then(locationsData => {
|
|
24
|
+
this.setState({countries: locationsData})
|
|
25
|
+
})
|
|
26
|
+
.catch(error => {
|
|
27
|
+
notification.error({ message: 'An error occured while loading countries.'});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
render(){
|
|
33
|
+
return (
|
|
34
|
+
<div id="countries-page">
|
|
35
|
+
<Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="Countries"/>
|
|
36
|
+
|
|
37
|
+
<div id="countries-page_body">
|
|
38
|
+
<div id="introduction">
|
|
39
|
+
<Flex vertical gap={24}>
|
|
40
|
+
<div id="introduction_header"> <img src="/iceholidays-assets/images/logomark.png"/> <span> The Signature Tours </span> </div>
|
|
41
|
+
<div id="introduction_body">
|
|
42
|
+
<p>Immerse yourself in the art of travel with The Signature Tour. Every experience is meticulously designed to create memories that last a lifetime.
|
|
43
|
+
Our journeys go beyond the ordinary, offering experiences that are as unique as you are.</p>
|
|
44
|
+
|
|
45
|
+
<p>From charming accommodations to curated cultural encounters, every aspect is thoughtfully crafted to elevate your travel experience. At The Signature Tour, we believe in the S-Tour’s philosophy —where every moment is a signature memory.</p>
|
|
46
|
+
</div>
|
|
47
|
+
</Flex>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<h2> Countries </h2>
|
|
51
|
+
<LocationPostcards locations={this.state.countries}/>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Testimonials from "../components/Testimonials";
|
|
3
|
+
import Destinations from "../components/Destinations";
|
|
4
|
+
import SearchBarWidget from "../widgets/SearchBarWidget";
|
|
5
|
+
import { Carousel, Col, notification, Row } from "antd";
|
|
6
|
+
import SlickButtonFix from "../components/shared/SlickButtonFix";
|
|
7
|
+
import BannersApi from "../../api-services/banners-api.service";
|
|
8
|
+
import { Banner } from "../../interfaces/banner.interface";
|
|
9
|
+
|
|
10
|
+
export default class Homepage extends React.Component {
|
|
11
|
+
api = new BannersApi;
|
|
12
|
+
|
|
13
|
+
state = {
|
|
14
|
+
banners: []
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
componentDidMount() {
|
|
19
|
+
this.api.getBanners()
|
|
20
|
+
.then(bannersData => {
|
|
21
|
+
this.setState({banners: bannersData})
|
|
22
|
+
})
|
|
23
|
+
.catch(error => {
|
|
24
|
+
notification.error({ message: 'An error occured while loading banners.'});
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
render(){
|
|
29
|
+
const { banners } = this.state;
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div id="homepage">
|
|
33
|
+
|
|
34
|
+
<SearchBarWidget/>
|
|
35
|
+
|
|
36
|
+
<div id="homepage_banner">
|
|
37
|
+
<Carousel autoplay arrows infinite={banners.length>1}
|
|
38
|
+
prevArrow={
|
|
39
|
+
<SlickButtonFix>
|
|
40
|
+
<img src="/iceholidays-assets/images/banner_arrow.png"/>
|
|
41
|
+
</SlickButtonFix>
|
|
42
|
+
}
|
|
43
|
+
nextArrow={
|
|
44
|
+
<SlickButtonFix>
|
|
45
|
+
<img src="/iceholidays-assets/images/banner_arrow.png" className="flip"/>
|
|
46
|
+
</SlickButtonFix>
|
|
47
|
+
}
|
|
48
|
+
>
|
|
49
|
+
{
|
|
50
|
+
banners.map((banner:Banner, index)=>{
|
|
51
|
+
return <a key={index} href={banner.url} target={banner.target} rel="nofollow">
|
|
52
|
+
<picture>
|
|
53
|
+
<source media="(min-width: 600px)" srcSet={banner.desktopImage} />
|
|
54
|
+
<source media="(max-width: 599px)" srcSet={banner.mobileImage} />
|
|
55
|
+
<img src={banner.desktopImage} alt={banner.title} />
|
|
56
|
+
</picture>
|
|
57
|
+
</a>
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
</Carousel>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<Destinations/>
|
|
64
|
+
<div id="testimonials-section">
|
|
65
|
+
<Testimonials/>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div id="about-signature-tours" style={{background: "url('/iceholidays-assets/images/about_st_bg.png') no-repeat 70% 7%, linear-gradient(65.77deg, rgba(170, 133, 62, 0.5) 33.44%, rgba(249, 225, 151, 0.5) 67.37%)"}}>
|
|
69
|
+
<div>
|
|
70
|
+
<h1>ABOUT SIGNATURE TOURS</h1>
|
|
71
|
+
<p>
|
|
72
|
+
From charming accommodations to curated cultural encounters, every aspect is thoughtfully crafted to elevate your travel experience. At The Signature Tours, we believe in the S-Tour’s philosophy —where every moment is a signature memory.
|
|
73
|
+
</p>
|
|
74
|
+
<picture>
|
|
75
|
+
<source media="(min-width: 600px)" srcSet="/iceholidays-assets/images/about-us_logo.png" />
|
|
76
|
+
<source media="(max-width: 599px)" srcSet="/iceholidays-assets/images/about-us_logo_mobile.png" />
|
|
77
|
+
<img src="/iceholidays-assets/images/about-us_logo.png" alt="About Signature Tours Logo Line"/>
|
|
78
|
+
</picture>
|
|
79
|
+
<div id="about-st-feature">
|
|
80
|
+
<Row gutter={[20, 20]} align="middle">
|
|
81
|
+
<Col flex="1 0 50%" className="column">
|
|
82
|
+
<p>Every experience is meticulously designed to create memories that last a lifetime. Our journeys go beyond the ordinary, offering experiences that are as unique as you are.</p>
|
|
83
|
+
</Col>
|
|
84
|
+
<Col flex="1 0 50%" className="column">
|
|
85
|
+
<div id="feature">
|
|
86
|
+
<img src="/iceholidays-assets/images/feature.jpg"/>
|
|
87
|
+
<div id="st-brand">
|
|
88
|
+
<span>Signature Tours</span>
|
|
89
|
+
<img src="/iceholidays-assets/images/logomark.png" id="st-logo"/>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</Col>
|
|
93
|
+
</Row>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
}
|