Skip to content

Commit 6fbce2a

Browse files
implement scoot page for yogyakarta and hat yai
1 parent 75f81d3 commit 6fbce2a

4 files changed

Lines changed: 198 additions & 0 deletions

File tree

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
import { Metadata } from "next";
2+
import Link from "next/link";
3+
import React from "react";
4+
import { ArrowLeftIcon } from "lucide-react";
5+
import { Button } from "@/components/ui/button";
6+
import { Container } from "@/components/ui/container";
7+
import Heading from "@/components/ui/heading";
8+
import Subheading from "@/components/ui/subheading";
9+
import Paragraph from "@/components/ui/paragraph";
10+
import { FlightPriceChart } from "@/components/flight-price-chart";
11+
import { FlightShareUrlAnchor } from "@/components/flight-share-url-anchor";
12+
import TelegramLinkButton from "@/components/telegram-link-button";
13+
import AdUnit from "@/components/ad-unit";
14+
import { META_OPEN_GRAPH, META_TWITTER } from "@/app/shared-metadata";
15+
import {
16+
FlightAirline,
17+
Routes,
18+
TelegramChannel,
19+
TopicTitle,
20+
} from "@/lib/enums";
21+
22+
const title = "Scoot Flights to Hat Yai";
23+
const description =
24+
"Analyse Scoot fare trends from Singapore to Hat Yai for the past 6 months, 1 year and 2 years.";
25+
const url = Routes.ScootFlightsHatYai;
26+
27+
export const metadata: Metadata = {
28+
title,
29+
description,
30+
alternates: {
31+
canonical: url,
32+
},
33+
openGraph: {
34+
...META_OPEN_GRAPH,
35+
title,
36+
description,
37+
url,
38+
},
39+
twitter: {
40+
...META_TWITTER,
41+
title,
42+
description,
43+
},
44+
};
45+
46+
export default function ScootFlightsHatYai() {
47+
return (
48+
<Container>
49+
<div className="space-y-2">
50+
<Heading>{title}</Heading>
51+
<Subheading>{description}</Subheading>
52+
</div>
53+
<FlightPriceChart
54+
airline={FlightAirline.SCOOT}
55+
destinationCityCode="HDY"
56+
chartTitle="Hat Yai Price Trend"
57+
/>
58+
<Paragraph>
59+
The above chart shows the fare trends for Scoot flights from Singapore
60+
to Hat Yai (HDY) for the past 6 months, 1 year and 2 years. You can use
61+
this information to decide when to{" "}
62+
<FlightShareUrlAnchor
63+
airline={FlightAirline.SCOOT}
64+
destinationCityCode="HDY"
65+
linkText="book your flight"
66+
/>{" "}
67+
for the best price.
68+
</Paragraph>
69+
<AdUnit />
70+
<Paragraph>
71+
<span className="font-medium">SG Alerts</span> is a free notification
72+
service that monitors Scoot flight fare deals from Singapore to Hat Yai.
73+
It sends you a Telegram notification when the prices go down so that you
74+
can take advantage of the lower prices.
75+
</Paragraph>
76+
<Paragraph>
77+
To get started, simply click the button below to join the Telegram
78+
channel and start receiving notifications.
79+
</Paragraph>
80+
<div className="sticky bottom-6 z-50 mt-8 text-center">
81+
<TelegramLinkButton
82+
channel={TelegramChannel.ScootFlights}
83+
linkText="Subscribe Now"
84+
topicTitle={TopicTitle.ScootFlights}
85+
/>
86+
</div>
87+
<div className="mt-4 text-center">
88+
<Button variant="secondary" asChild>
89+
<Link href={Routes.ScootFlights}>
90+
<ArrowLeftIcon className="mr-2 h-4 w-4" />
91+
Go Back
92+
</Link>
93+
</Button>
94+
</div>
95+
</Container>
96+
);
97+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
import { Metadata } from "next";
2+
import Link from "next/link";
3+
import React from "react";
4+
import { ArrowLeftIcon } from "lucide-react";
5+
import { Button } from "@/components/ui/button";
6+
import { Container } from "@/components/ui/container";
7+
import Heading from "@/components/ui/heading";
8+
import Subheading from "@/components/ui/subheading";
9+
import Paragraph from "@/components/ui/paragraph";
10+
import { FlightPriceChart } from "@/components/flight-price-chart";
11+
import { FlightShareUrlAnchor } from "@/components/flight-share-url-anchor";
12+
import TelegramLinkButton from "@/components/telegram-link-button";
13+
import AdUnit from "@/components/ad-unit";
14+
import { META_OPEN_GRAPH, META_TWITTER } from "@/app/shared-metadata";
15+
import {
16+
FlightAirline,
17+
Routes,
18+
TelegramChannel,
19+
TopicTitle,
20+
} from "@/lib/enums";
21+
22+
const title = "Scoot Flights to Yogyakarta";
23+
const description =
24+
"Analyse Scoot fare trends from Singapore to Yogyakarta for the past 6 months, 1 year and 2 years.";
25+
const url = Routes.ScootFlightsYogyakarta;
26+
27+
export const metadata: Metadata = {
28+
title,
29+
description,
30+
alternates: {
31+
canonical: url,
32+
},
33+
openGraph: {
34+
...META_OPEN_GRAPH,
35+
title,
36+
description,
37+
url,
38+
},
39+
twitter: {
40+
...META_TWITTER,
41+
title,
42+
description,
43+
},
44+
};
45+
46+
export default function ScootFlightsYogyakarta() {
47+
return (
48+
<Container>
49+
<div className="space-y-2">
50+
<Heading>{title}</Heading>
51+
<Subheading>{description}</Subheading>
52+
</div>
53+
<FlightPriceChart
54+
airline={FlightAirline.SCOOT}
55+
destinationCityCode="YIA"
56+
chartTitle="Yogyakarta Price Trend"
57+
/>
58+
<Paragraph>
59+
The above chart shows the fare trends for Scoot flights from Singapore
60+
to Yogyakarta (YIA) for the past 6 months, 1 year and 2 years. You can
61+
use this information to decide when to{" "}
62+
<FlightShareUrlAnchor
63+
airline={FlightAirline.SCOOT}
64+
destinationCityCode="YIA"
65+
linkText="book your flight"
66+
/>{" "}
67+
for the best price.
68+
</Paragraph>
69+
<AdUnit />
70+
<Paragraph>
71+
<span className="font-medium">SG Alerts</span> is a free notification
72+
service that monitors Scoot flight fare deals from Singapore to
73+
Yogyakarta. It sends you a Telegram notification when the prices go down
74+
so that you can take advantage of the lower prices.
75+
</Paragraph>
76+
<Paragraph>
77+
To get started, simply click the button below to join the Telegram
78+
channel and start receiving notifications.
79+
</Paragraph>
80+
<div className="sticky bottom-6 z-50 mt-8 text-center">
81+
<TelegramLinkButton
82+
channel={TelegramChannel.ScootFlights}
83+
linkText="Subscribe Now"
84+
topicTitle={TopicTitle.ScootFlights}
85+
/>
86+
</div>
87+
<div className="mt-4 text-center">
88+
<Button variant="secondary" asChild>
89+
<Link href={Routes.ScootFlights}>
90+
<ArrowLeftIcon className="mr-2 h-4 w-4" />
91+
Go Back
92+
</Link>
93+
</Button>
94+
</div>
95+
</Container>
96+
);
97+
}

lib/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,6 @@ export const SCOOT_DESTINATION_LINKS: Partial<Record<string, string>> = {
253253
TYO: Routes.ScootFlightsTokyo,
254254
CRK: Routes.ScootFlightsClark,
255255
SUB: Routes.ScootFlightsSurabaya,
256+
YIA: Routes.ScootFlightsYogyakarta,
257+
HDY: Routes.ScootFlightsHatYai,
256258
};

lib/enums.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ export enum Routes {
153153
ScootFlightsTokyo = "/topics/scoot-flights/tokyo/",
154154
ScootFlightsClark = "/topics/scoot-flights/clark/",
155155
ScootFlightsSurabaya = "/topics/scoot-flights/surabaya/",
156+
ScootFlightsYogyakarta = "/topics/scoot-flights/yogyakarta/",
157+
ScootFlightsHatYai = "/topics/scoot-flights/hat-yai/",
156158
JetstarFlights = "/topics/jetstar-flights/",
157159
CebuPacificFlights = "/topics/cebu-pacific-flights/",
158160
CoeBiddingResults = "/topics/coe-bidding-results/",

0 commit comments

Comments
 (0)