Skip to content

Commit b6a3f24

Browse files
implement singapore airlines riyadh page
1 parent 4bc12f8 commit b6a3f24

3 files changed

Lines changed: 88 additions & 0 deletions

File tree

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

lib/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,5 @@ export const SINGAPORE_AIRLINES_DESTINATION_LINKS: Partial<
203203
CPT: Routes.SingaporeAirlinesFlightsCapeTown,
204204
NYC: Routes.SingaporeAirlinesFlightsNewYork,
205205
IAH: Routes.SingaporeAirlinesFlightsHouston,
206+
RUH: Routes.SingaporeAirlinesFlightsRiyadh,
206207
};

lib/enums.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export enum Routes {
107107
SingaporeAirlinesFlightsCapeTown = "/topics/singapore-airlines-flights/cape-town/",
108108
SingaporeAirlinesFlightsNewYork = "/topics/singapore-airlines-flights/new-york/",
109109
SingaporeAirlinesFlightsHouston = "/topics/singapore-airlines-flights/houston/",
110+
SingaporeAirlinesFlightsRiyadh = "/topics/singapore-airlines-flights/riyadh/",
110111
ScootFlights = "/topics/scoot-flights/",
111112
JetstarFlights = "/topics/jetstar-flights/",
112113
CebuPacificFlights = "/topics/cebu-pacific-flights/",

0 commit comments

Comments
 (0)