iceholidays-frontend 0.3.0 → 0.4.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 (76) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/iceholidays/frontend/application.sass.scss +1588 -0
  3. data/app/assets/stylesheets/iceholidays/frontend/common.scss +233 -0
  4. data/app/assets/stylesheets/iceholidays/frontend/layout.scss +188 -0
  5. data/app/assets/stylesheets/iceholidays/frontend/utils/_antd_overrides.scss +107 -0
  6. data/app/assets/stylesheets/iceholidays/frontend/utils/_variables.scss +3 -0
  7. data/app/assets/stylesheets/iceholidays/frontend/widgets/filter_pills.scss +45 -0
  8. data/app/assets/stylesheets/iceholidays/frontend/widgets/search_bar.scss +112 -0
  9. data/app/controllers/iceholidays/frontend/site_controller.rb +32 -0
  10. data/app/javascript/api-services/banners-api.service.ts +28 -0
  11. data/app/javascript/api-services/locations-api.service.ts +49 -0
  12. data/app/javascript/api-services/search-api.service.ts +16 -0
  13. data/app/javascript/api-services/series-api.service.ts +44 -0
  14. data/app/javascript/api-services/testimonials-api.service.ts +27 -0
  15. data/app/javascript/interfaces/banner.interface.ts +10 -0
  16. data/app/javascript/interfaces/country.interface.ts +18 -0
  17. data/app/javascript/interfaces/itinerary.interface.ts +18 -0
  18. data/app/javascript/interfaces/testimonial.interface.ts +6 -0
  19. data/app/javascript/react/App.tsx +32 -0
  20. data/app/javascript/react/components/Destinations.tsx +72 -141
  21. data/app/javascript/react/components/Testimonials.tsx +68 -61
  22. data/app/javascript/react/components/shared/Headline.tsx +29 -0
  23. data/app/javascript/react/components/shared/Postcard.tsx +31 -0
  24. data/app/javascript/react/components/shared/RibbonSection.tsx +21 -0
  25. data/app/javascript/react/index.js +3 -5
  26. data/app/javascript/react/layouts/MainFooter.tsx +72 -0
  27. data/app/javascript/react/layouts/MainHeader.tsx +45 -0
  28. data/app/javascript/react/layouts/MainLayout.tsx +21 -0
  29. data/app/javascript/react/pages/AboutUsPage.tsx +95 -0
  30. data/app/javascript/react/pages/BlogPage.tsx +79 -0
  31. data/app/javascript/react/pages/BlogShowPage.tsx +43 -0
  32. data/app/javascript/react/pages/ContactAgentsPage.tsx +16 -0
  33. data/app/javascript/react/pages/ContactUsPage.tsx +122 -0
  34. data/app/javascript/react/pages/CountriesPage.tsx +62 -0
  35. data/app/javascript/react/pages/Homepage.tsx +90 -0
  36. data/app/javascript/react/pages/ListingPage.tsx +246 -0
  37. data/app/javascript/react/pages/ShowPage.tsx +397 -0
  38. data/app/javascript/react/widgets/FilterPills.tsx +77 -0
  39. data/app/javascript/react/widgets/SearchBarWidget.tsx +42 -0
  40. data/app/views/iceholidays/frontend/site/index.html.erb +1 -24
  41. data/app/views/layouts/iceholidays/frontend/application.html.erb +2 -6
  42. data/config/routes.rb +9 -0
  43. data/lib/iceholidays/frontend/version.rb +1 -1
  44. data/public/iceholidays-assets/application.css +1873 -0
  45. data/public/iceholidays-assets/application.js +225 -651
  46. data/public/iceholidays-assets/application.js.map +4 -4
  47. data/public/iceholidays-assets/images/8D7N.png +0 -0
  48. data/public/iceholidays-assets/images/about_us.png +0 -0
  49. data/public/iceholidays-assets/images/about_us2.png +0 -0
  50. data/public/iceholidays-assets/images/blog.png +0 -0
  51. data/public/iceholidays-assets/images/blog1.png +0 -0
  52. data/public/iceholidays-assets/images/certificate1.png +0 -0
  53. data/public/iceholidays-assets/images/certificate2.png +0 -0
  54. data/public/iceholidays-assets/images/china_listings_cover.png +0 -0
  55. data/public/iceholidays-assets/images/china_southern_airlines.png +0 -0
  56. data/public/iceholidays-assets/images/china_southern_airlines_icon.png +0 -0
  57. data/public/iceholidays-assets/images/competitiveness.png +0 -0
  58. data/public/iceholidays-assets/images/contact_agents.png +0 -0
  59. data/public/iceholidays-assets/images/contact_us.png +0 -0
  60. data/public/iceholidays-assets/images/contact_us_form.png +0 -0
  61. data/public/iceholidays-assets/images/ethical.png +0 -0
  62. data/public/iceholidays-assets/images/hw_logo.png +0 -0
  63. data/public/iceholidays-assets/images/innovative.png +0 -0
  64. data/public/iceholidays-assets/images/plane.png +0 -0
  65. data/public/iceholidays-assets/images/social/ico_fb.png +0 -0
  66. data/public/iceholidays-assets/images/social/ico_ig.png +0 -0
  67. data/public/iceholidays-assets/images/social/ico_twitter.png +0 -0
  68. data/public/iceholidays-assets/images/social/ico_yt.png +0 -0
  69. data/public/iceholidays-assets/images/social.png +0 -0
  70. data/public/iceholidays-assets/images/tour1.png +0 -0
  71. metadata +61 -49
  72. data/app/assets/stylesheets/iceholidays/frontend/application.scss +0 -904
  73. data/app/javascript/react/components/Homepage.tsx +0 -15
  74. data/app/javascript/react/components/HomepageBanner.tsx +0 -62
  75. data/app/views/layouts/iceholidays/frontend/shared/_footer.html.erb +0 -42
  76. data/app/views/layouts/iceholidays/frontend/shared/_header.html.erb +0 -20
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { Link } from "react-router-dom";
3
+ import { mdiMenuRight } from "@mdi/js";
4
+ import Icon from "@mdi/react";
5
+
6
+
7
+ const Postcard = (
8
+ props: {
9
+ link: string;
10
+ image: string;
11
+ name: string;
12
+ tourCount: number;
13
+ }
14
+ ) => {
15
+ const { link, image, name, tourCount } = props;
16
+
17
+ const pluralize = (count: number, noun: string, suffix = 's') =>
18
+ `${count} ${noun}${count > 1 ? suffix : ''}`;
19
+
20
+ return (
21
+ <Link to={link} className="postcard">
22
+ <img src={image}/>
23
+ <div className="details">
24
+ <span className="name">{name}</span>
25
+ <span className="tour-count">{pluralize(tourCount, "Tour")} <Icon path={mdiMenuRight} size={1} /> </span>
26
+ </div>
27
+ </Link>
28
+ )
29
+ }
30
+
31
+ export default Postcard;
@@ -0,0 +1,21 @@
1
+ import React, { JSX } from "react";
2
+
3
+ const RibbonSection = (
4
+ props: {
5
+ title?: string;
6
+ children?: JSX.Element;
7
+ }
8
+ ) => {
9
+ const { title, children } = props;
10
+ return (
11
+ <div id="ribbon-section">
12
+ <div id="ribbon-section_header">
13
+ { title && <h1> {title} </h1>}
14
+ </div>
15
+
16
+ {children}
17
+ </div>
18
+ )
19
+ }
20
+
21
+ export default RibbonSection;
@@ -1,8 +1,6 @@
1
+
2
+ import App from "./App"
1
3
  import ReactComponent from "./application"
2
- import Destinations from "./components/Destinations"
3
- import HomepageBanner from "./components/HomepageBanner"
4
- import Homepage from "./components/Homepage"
5
- import Testimonials from "./components/Testimonials"
6
4
 
7
5
 
8
- ReactComponent.setup({Homepage, HomepageBanner, Destinations, Testimonials})
6
+ ReactComponent.setup({App})
@@ -0,0 +1,72 @@
1
+ import { notification, Space } from "antd";
2
+ import React from "react";
3
+ import { Link } from "react-router-dom";
4
+ import LocationsApi from "../../api-services/locations-api.service";
5
+ import { Country } from "../../interfaces/country.interface";
6
+
7
+
8
+ export default class MainFooter extends React.Component {
9
+ api = new LocationsApi;
10
+
11
+ state = {
12
+ countries: []
13
+ }
14
+
15
+ componentDidMount() {
16
+ this.api.getCountries()
17
+ .then(locationsData => {
18
+ this.setState({countries: locationsData})
19
+ })
20
+ .catch(error => {
21
+ notification.error({ message: 'An error occured while loading countries.'});
22
+ });
23
+ }
24
+
25
+ render(){
26
+ return (
27
+ <div id="main-footer">
28
+ <div id="main-footer_links">
29
+ <div>
30
+ <div className="link-group-title">Countries</div>
31
+ <div>
32
+ {
33
+ this.state.countries.map((country: Country)=> <Link to={`/app/listing?keyword=${country.name}`}>{country.name}</Link> )
34
+ }
35
+ </div>
36
+ </div>
37
+ <div>
38
+ <div className="link-group-title">&nbsp;</div>
39
+ <div>
40
+ <Link to="/app">home</Link>
41
+ <Link to="/app">pdpa</Link>
42
+ <Link to="/app/about-us">about us</Link>
43
+ <Link to="/app">privacy policy</Link>
44
+ <Link to="/app/contact-us">contact us</Link>
45
+ <Link to="/app">terms & conditions</Link>
46
+ </div>
47
+ </div>
48
+ <div>
49
+ <div>
50
+ <div className="link-group-title">Contact Us</div>
51
+ <div><Link to="/app/contact-agents">contact agents</Link></div>
52
+ </div>
53
+
54
+ <div>
55
+ <div className="link-group-title">Follow us on</div>
56
+ <Space size={20}>
57
+ <img src="/iceholidays-assets/images/social/ico_fb.png"/>
58
+ <img src="/iceholidays-assets/images/social/ico_twitter.png"/>
59
+ <img src="/iceholidays-assets/images/social/ico_yt.png"/>
60
+ <img src="/iceholidays-assets/images/social/ico_ig.png"/>
61
+ </Space>
62
+ </div>
63
+ </div>
64
+ <hr/>
65
+ </div>
66
+ <div id="copyright">
67
+ <span>Copyright © 2024 Golden Destinations</span>
68
+ </div>
69
+ </div>
70
+ )
71
+ }
72
+ }
@@ -0,0 +1,45 @@
1
+ import { mdiFileDownload } from "@mdi/js";
2
+ import Icon from "@mdi/react";
3
+ import { Button } from "antd";
4
+ import React from "react";
5
+ import { NavLink } from "react-router-dom";
6
+
7
+
8
+ const routes = [
9
+ {label: "Home", path: "/app"},
10
+ {label: "About Us", path: "/app/about-us"},
11
+ {label: "Countries", path: "/app/countries"},
12
+ {label: "Blog", path: "/app/blog"}
13
+ ]
14
+
15
+ const routes2 = [
16
+ {label: "Contact Agents", path: "/app/contact-agents"},
17
+ {label: "Contact Us", path: "/app/contact-us"}
18
+ ]
19
+
20
+ const MainHeader = () => {
21
+ return (
22
+ <div id="main-header">
23
+ <div>
24
+ <div className="nav-menu" id="left-menu">
25
+ {
26
+ routes.map((route, index)=> <NavLink key={index} to={route.path} end className={({ isActive }) => (isActive ? 'active' : '')}> {route.label} </NavLink>)
27
+ }
28
+ </div>
29
+ <span className="nav-menu logo">
30
+ <img src="/iceholidays-assets/images/logo_container.png"/>
31
+ </span>
32
+ <div className="nav-menu" id="right-menu">
33
+ {
34
+ routes2.map((route, index)=> <NavLink key={index} to={route.path} end className={({ isActive }) => (isActive ? 'active' : '')}> {route.label} </NavLink>)
35
+ }
36
+ </div>
37
+ </div>
38
+ <a id="get-brochure">
39
+ <Button type="primary"><Icon path={mdiFileDownload} size="18px" /> get brochure</Button>
40
+ </a>
41
+ </div>
42
+ )
43
+ }
44
+
45
+ export default MainHeader;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { Outlet } from "react-router-dom";
3
+ import { Layout } from 'antd';
4
+ import MainHeader from "./MainHeader";
5
+ import MainFooter from "./MainFooter";
6
+
7
+ const { Content } = Layout;
8
+
9
+ const MainLayout = () => {
10
+ return (
11
+ <Layout>
12
+ <MainHeader/>
13
+ <Content>
14
+ <Outlet/>
15
+ </Content>
16
+ <MainFooter/>
17
+ </Layout>
18
+ )
19
+ };
20
+
21
+ export default MainLayout;
@@ -0,0 +1,95 @@
1
+ import React from "react";
2
+ import Headline from "../components/shared/Headline";
3
+ import { Col, Flex, Row } from "antd";
4
+ import RibbonSection from "../components/shared/RibbonSection";
5
+
6
+ const bannerPath = '/iceholidays-assets/images/about_us.png';
7
+ const breadcrumbs = [
8
+ { title: 'Home' },
9
+ { title: 'About Us' }
10
+ ]
11
+
12
+ const AboutUsPage = React.FC = () => (
13
+ <div id="about-us-page">
14
+ <Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="“WHAT WE DO”"/>
15
+
16
+ <div id="about-us-page_body">
17
+ <div id="introduction">
18
+ <Flex vertical align="center" justify="center">
19
+ <img src="/iceholidays-assets/images/logomark.png"/>
20
+ <h1> Welcome To The Signature Tours </h1>
21
+ </Flex>
22
+ </div>
23
+
24
+ <div id="article">
25
+ <Row gutter={40}>
26
+ <Col span={24}>
27
+ <img src="/iceholidays-assets/images/about_us2.png"/>
28
+ </Col>
29
+ <Col span={12}>
30
+ <p>The Signature Tours was born from a passion for redefining travel. We believe that journeys should be more than just trips—they should be transformative experiences, filled with moments that leave an indelible mark on the soul. Catering to discerning travelers who seek more than the ordinary, The Signature Tours crafts bespoke journeys that combine sophistication, cultural immersion, and unparalleled quality. </p>
31
+ <p>Our story begins with a vision: to create journeys that linger in the heart long after the traveler returns home. Each itinerary we design reflects our dedication to perfection. From the charm of boutique accommodations nestled in picturesque landscapes to handpicked cultural experiences that unveil the soul of a destination, every detail is thoughtfully considered to ensure your journey is as seamless as it is extraordinary.</p>
32
+ <p>At The Signature Tours, we embrace the philosophy of the S-Tours experience—where every moment is a masterpiece. Imagine strolling through the cobblestone streets of a quaint village, savoring the aroma of freshly baked bread as locals welcome you with warm smiles. </p>
33
+ </Col>
34
+ <Col span={12}>
35
+ <p>Picture yourself standing atop a majestic mountain at sunrise,the golden hues of the horizon reflecting the sense of awe within you. These are the kinds of moments we strive to create—authentic, meaningful, and unforgettable.</p>
36
+ <p>But our commitment goes beyond premium and comfort. It’s about forging connections—with places, cultures, and people. It’s about stepping into a story, whether it’s exploring ancient ruins with a seasoned archaeologist, learning the art of wine making from a passionate vintner, or sharing laughter with a local family over a home-cooked meal.</p>
37
+ <p>At The Signature Tours, every journey is an invitation to step out of the ordinary and into a world of wonder. We’re not just about travel; we’re about creating memories that stay with you forever. This is our promise, and this is what we call the S-Tours philosophy where we deliver S-Class Journeys, Signature Memories. Because every journey should be as unique as your signature.</p>
38
+ </Col>
39
+ </Row>
40
+ </div>
41
+
42
+
43
+ </div>
44
+ <RibbonSection>
45
+ <>
46
+ <Row id="quality-policy" gutter={40} justify="center">
47
+ <Col span={24}>
48
+ <div className="section-header">
49
+ <h2>Quality Policy</h2>
50
+ <p>ICE Holidays is committed to striving towards our customer satisfaction in areas of more quality value for money of our products & services. The management and all employees are committed to the company quality policy through effort in:</p>
51
+ </div>
52
+ </Col>
53
+ <Col span={8}>
54
+ <div className="items">
55
+ <img src="/iceholidays-assets/images/innovative.png"/>
56
+ <label>Innovative</label>
57
+ <p>Talent team develops great products and services; Agile, innovative, and a quality conscious team of resourceful people dedicated to the best.</p>
58
+ </div>
59
+ </Col>
60
+ <Col span={8}>
61
+ <div className="items">
62
+ <img src="/iceholidays-assets/images/competitiveness.png"/>
63
+ <label>Competitiveness</label>
64
+ <p>Provide competitive pricing to achieve customer satisfaction.</p>
65
+ </div>
66
+ </Col>
67
+ <Col span={8}>
68
+ <div className="items">
69
+ <img src="/iceholidays-assets/images/ethical.png"/>
70
+ <label>Ethical</label>
71
+ <p>Precedent for an honest, fair and ethical business.</p>
72
+ </div>
73
+ </Col>
74
+ </Row>
75
+
76
+ <Row id="certificates" gutter={24}>
77
+ <Col span={24}>
78
+ <div className="section-header">
79
+ <h2>Our Certificates</h2>
80
+ <p>We have acquired recognition and certificates such as:</p>
81
+ </div>
82
+ </Col>
83
+ <Col span={8}>
84
+ <img src="/iceholidays-assets/images/certificate1.png"/>
85
+ </Col>
86
+ <Col span={8}>
87
+ <img src="/iceholidays-assets/images/certificate2.png"/>
88
+ </Col>
89
+ </Row>
90
+ </>
91
+ </RibbonSection>
92
+ </div>
93
+ );
94
+
95
+ export default AboutUsPage;
@@ -0,0 +1,79 @@
1
+ import React from "react";
2
+ import Headline from "../components/shared/Headline";
3
+ import { Button, Card, Col, Row, Space } from "antd";
4
+ import FilterPills from "../widgets/FilterPills";
5
+ import { Link } from "react-router-dom";
6
+ const { Meta } = Card;
7
+
8
+ const bannerPath = '/iceholidays-assets/images/blog.png';
9
+ const breadcrumbs = [
10
+ { title: 'Home' },
11
+ { title: 'Blog' }
12
+ ]
13
+
14
+ const types = [ "News", "Blogs" ];
15
+ const blogs = [
16
+ {
17
+ id: 1,
18
+ cover: "/iceholidays-assets/images/blog1.png",
19
+ title: "旅游的意义:探索世界与内心的旅程",
20
+ info: "未分类 / 发表评论 / 2024年11月22日",
21
+ summary: "旅游不仅拓展视野,也带来人生的启示。它教会我们谦逊、适应变化、享受过程,激发内心力量,感恩遇见,并帮助我们找回初心。"
22
+ },
23
+ {
24
+ id: 2,
25
+ cover: "/iceholidays-assets/images/blog1.png",
26
+ title: "旅游的意义:探索世界与内心的旅程",
27
+ info: "未分类 / 发表评论 / 2024年11月22日",
28
+ summary: "旅游不仅拓展视野,也带来人生的启示。它教会我们谦逊、适应变化、享受过程,激发内心力量,感恩遇见,并帮助我们找回初心。"
29
+ },
30
+ {
31
+ id: 3,
32
+ cover: "/iceholidays-assets/images/blog1.png",
33
+ title: "旅游的意义:探索世界与内心的旅程",
34
+ info: "未分类 / 发表评论 / 2024年11月22日",
35
+ summary: "旅游不仅拓展视野,也带来人生的启示。它教会我们谦逊、适应变化、享受过程,激发内心力量,感恩遇见,并帮助我们找回初心。"
36
+ },
37
+ ]
38
+
39
+
40
+ const BlogPage = React.FC = () => (
41
+ <div id="blog-page">
42
+ <Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="Blog"/>
43
+
44
+ <div id="blog-page_body">
45
+ <Space size={12} direction="vertical">
46
+ <FilterPills items={types} allOption={true}></FilterPills>
47
+ <FilterPills items="years" title="Year" allOption={true}></FilterPills>
48
+ <FilterPills items="months" title="Month" allOption={true}></FilterPills>
49
+ </Space>
50
+
51
+ <div id="blogs">
52
+ <Row wrap gutter={20}>
53
+ {
54
+ blogs.map(blog => (
55
+ <Col span={8}>
56
+ <Link to={`/app/blog/${blog.id}`}>
57
+ <Card
58
+ hoverable
59
+ cover={<img alt="example" src={blog.cover} />}
60
+ >
61
+ <Meta title={blog.title} description={
62
+ <>
63
+ <span>{blog.info}</span>
64
+ <p>{blog.summary}</p>
65
+ <Button color="primary" variant="outlined" block>阅读更多</Button>
66
+ </>
67
+ } />
68
+ </Card>
69
+ </Link>
70
+ </Col>
71
+ ))
72
+ }
73
+ </Row>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ );
78
+
79
+ export default BlogPage;
@@ -0,0 +1,43 @@
1
+ import React from "react";
2
+ import Headline from "../components/shared/Headline";
3
+
4
+ const bannerPath = '/iceholidays-assets/images/blog.png';
5
+ const breadcrumbs = [
6
+ { title: 'Home' },
7
+ { title: 'Blog' },
8
+ { title: '从斯里兰卡到马尔代夫' },
9
+ ]
10
+
11
+ const types = [ "News", "Blogs" ];
12
+ const blogs = [
13
+ {
14
+ cover: "/iceholidays-assets/images/blog1.png",
15
+ title: "旅游的意义:探索世界与内心的旅程",
16
+ info: "未分类 / 发表评论 / 2024年11月22日",
17
+ summary: "旅游不仅拓展视野,也带来人生的启示。它教会我们谦逊、适应变化、享受过程,激发内心力量,感恩遇见,并帮助我们找回初心。"
18
+ },
19
+ {
20
+ cover: "/iceholidays-assets/images/blog1.png",
21
+ title: "旅游的意义:探索世界与内心的旅程",
22
+ info: "未分类 / 发表评论 / 2024年11月22日",
23
+ summary: "旅游不仅拓展视野,也带来人生的启示。它教会我们谦逊、适应变化、享受过程,激发内心力量,感恩遇见,并帮助我们找回初心。"
24
+ },
25
+ {
26
+ cover: "/iceholidays-assets/images/blog1.png",
27
+ title: "旅游的意义:探索世界与内心的旅程",
28
+ info: "未分类 / 发表评论 / 2024年11月22日",
29
+ summary: "旅游不仅拓展视野,也带来人生的启示。它教会我们谦逊、适应变化、享受过程,激发内心力量,感恩遇见,并帮助我们找回初心。"
30
+ },
31
+ ]
32
+
33
+ const BlogShowPage = React.FC = () => (
34
+ <div id="blog-show-page">
35
+ <Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="Blog"/>
36
+
37
+ <div id="blog-page_body">
38
+
39
+ </div>
40
+ </div>
41
+ );
42
+
43
+ export default BlogShowPage;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import Headline from "../components/shared/Headline";
3
+
4
+ const bannerPath = '/iceholidays-assets/images/contact_agents.png';
5
+ const breadcrumbs = [
6
+ { title: 'Home' },
7
+ { title: 'Contact Agents' }
8
+ ]
9
+
10
+ const ContactAgentsPage = React.FC = () => (
11
+ <div id="contact-agents-page">
12
+ <Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="CONTACT AGENTS"/>
13
+ </div>
14
+ );
15
+
16
+ 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
+ <Form.Item wrapperCol={{ offset: 10, span: 14 }}>
87
+ <Button type="primary" htmlType="submit">
88
+ Submit
89
+ </Button>
90
+ </Form.Item>
91
+
92
+ </Form>
93
+ </div>
94
+ </div>
95
+
96
+ <div id="contact-us-page_footer">
97
+ <Row gutter={29}>
98
+ <Col span={12}>
99
+ <div>
100
+ <label>Contact Us</label>
101
+ <span>feedback@gd.my</span>
102
+ </div>
103
+ </Col>
104
+ <Col span={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,62 @@
1
+ import React from "react";
2
+ import Headline from "../components/shared/Headline";
3
+ import LocationsApi from "../../api-services/locations-api.service";
4
+ import { Col, Flex, notification, Row } from "antd";
5
+ import { Country } from "../../interfaces/country.interface";
6
+ import Postcard from "../components/shared/Postcard";
7
+
8
+ const bannerPath = '/iceholidays-assets/images/about_us.png';
9
+ const breadcrumbs = [
10
+ { title: 'Home' },
11
+ { title: 'Countries' }
12
+ ]
13
+
14
+
15
+ export default class CountriesPage extends React.Component {
16
+ locationsApi = new LocationsApi;
17
+
18
+ state = {
19
+ countries: []
20
+ }
21
+
22
+ componentDidMount() {
23
+ this.locationsApi.getCountries()
24
+ .then(locationsData => {
25
+ this.setState({countries: locationsData})
26
+ })
27
+ .catch(error => {
28
+ notification.error({ message: 'An error occured while loading countries.'});
29
+ });
30
+ }
31
+
32
+
33
+ render(){
34
+ return (
35
+ <div id="countries-page">
36
+ <Headline bannerImage={bannerPath} breadcrumbs={breadcrumbs} title="Countries"/>
37
+
38
+ <div id="countries-page_body">
39
+ <div id="introduction">
40
+ <Flex vertical gap={24}>
41
+ <div id="introduction_header"> <img src="/iceholidays-assets/images/logomark.png"/> <span> The Signature Tours </span> </div>
42
+ <div id="introduction_body">
43
+ <p>Immerse yourself in the art of travel with The Signature Tour. Every experience is meticulously designed to create memories that last a lifetime.
44
+ Our journeys go beyond the ordinary, offering experiences that are as unique as you are.</p>
45
+
46
+ <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>
47
+ </div>
48
+ </Flex>
49
+ </div>
50
+
51
+ <h2> Countries </h2>
52
+ <div className="postcards">
53
+ {
54
+ this.state.countries.map((country:Country, index) => <Postcard key={index} link={`/app/listing?keyword=${country.name}`} image={country.cover} name={country.name} tourCount={country.tourCount}/>)
55
+ }
56
+ </div>
57
+ </div>
58
+
59
+ </div>
60
+ )
61
+ }
62
+ }