Skip to content

Commit 5c2c3ce

Browse files
committed
c
1 parent b6a09ac commit 5c2c3ce

3 files changed

Lines changed: 17 additions & 48 deletions

File tree

src/i18n/dictionaries.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,9 @@ export const dictionaries = {
203203
otherOfficesLabel: "Other Offices:",
204204
otherOffices: ["Tehran", "Bandar Abbas", "Sarakhs"],
205205
mobileNumbersLabel: "Mobile Numbers:",
206-
mobileNumbers: [
207-
"+989152826059",
208-
"+989151160448",
209-
"+989152826059",
210-
"+989151160448",
211-
],
212-
deskphoneNumbersLabel: "DeskPhone Numbers:",
213-
deskphoneNumbers: ["+989152826059", "+989151160448"],
206+
mobileNumbers: ["+905547396001", "+905528283985"],
214207
instagramLabel: "Instagram:",
215-
instagram: "Khaliffarsraillogistic",
208+
instagram: ["Khaliffarsraillogistic", "mohamad.ghandchi"],
216209
websiteLabel: "Website:",
217210
website: "khalijfarsrail.com",
218211
},
@@ -419,16 +412,9 @@ export const dictionaries = {
419412
otherOfficesLabel: "Diğer Ofisler:",
420413
otherOffices: ["Tahran", "Bender Abbas", "Serahs"],
421414
mobileNumbersLabel: "Cep Numaraları:",
422-
mobileNumbers: [
423-
"+989152826059",
424-
"+989151160448",
425-
"+989152826059",
426-
"+989151160448",
427-
],
428-
deskphoneNumbersLabel: "Sabit Hat Numaraları:",
429-
deskphoneNumbers: ["+989152826059", "+989151160448"],
415+
mobileNumbers: ["+905547396001", "+905528283985"],
430416
instagramLabel: "Instagram:",
431-
instagram: "Khaliffarsraillogistic",
417+
instagram: ["Khaliffarsraillogistic", "mohamad.ghandchi"],
432418
websiteLabel: "Web Sitesi:",
433419
website: "khalijfarsrail.com",
434420
},

src/i18n/types.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ export type Dictionary = {
105105
otherOffices: string[];
106106
mobileNumbersLabel: string;
107107
mobileNumbers: string[];
108-
deskphoneNumbersLabel: string;
109-
deskphoneNumbers: string[];
110108
instagramLabel: string;
111-
instagram: string;
109+
instagram: string[];
112110
websiteLabel: string;
113111
website: string;
114112
};

src/slides/07-slide.tsx

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Logo from "#/logo.webp";
44
import Rail from "#/rail.webp";
55
import type { Dictionary } from "@/i18n";
66
import {
7-
DeskphoneIcon,
87
GlobeIcon,
98
InstagramIcon,
109
LocationIcon,
@@ -115,17 +114,20 @@ export function Slide07({ copy }: Slide07Props) {
115114

116115
<div data-reveal="card" data-stagger={5}>
117116
<ContentItem
118-
icon={DeskphoneIcon}
117+
icon={InstagramIcon}
119118
data={{
120-
title: copy.deskphoneNumbersLabel,
119+
title: copy.instagramLabel,
121120
content: (
122-
<div className="flex flex-wrap max-w-72 items-center gap-x-2">
123-
{copy.deskphoneNumbers.map((number, index) => (
124-
<Fragment key={index}>
125-
<span className="text-white opacity-80 text-nowrap">
126-
<PhoneNumber value={number} clickable />
127-
</span>
128-
{index % 2 === 0 && (
121+
<div className="flex flex-wrap max-w-72 items-center gap-x-2 gap-y-1">
122+
{copy.instagram.map((account, index) => (
123+
<Fragment key={account}>
124+
<a href={"https://instagram.com/" + account} target="_blank">
125+
<span className="text-secondary font-black text-sm me-0.5">@</span>
126+
<span className="font-bold uppercase text-white tracking-widest text-xs opacity-70">
127+
{account}
128+
</span>
129+
</a>
130+
{index < copy.instagram.length - 1 && (
129131
<span className="size-1.5 bg-secondary rotate-z-45 opacity-70" />
130132
)}
131133
</Fragment>
@@ -136,23 +138,6 @@ export function Slide07({ copy }: Slide07Props) {
136138
/>
137139
</div>
138140

139-
<div data-reveal="card" data-stagger={6}>
140-
<ContentItem
141-
icon={InstagramIcon}
142-
data={{
143-
title: copy.instagramLabel,
144-
content: (
145-
<a href={"https://instagram.com/" + copy.instagram} target="_blank">
146-
<span className="text-secondary font-black text-sm me-0.5">@</span>
147-
<span className="font-bold uppercase text-white tracking-widest text-xs opacity-70">
148-
{copy.instagram}
149-
</span>
150-
</a>
151-
),
152-
}}
153-
/>
154-
</div>
155-
156141
<div data-reveal="card" data-stagger={7} className="z-20">
157142
<ContentItem
158143
icon={GlobeIcon}

0 commit comments

Comments
 (0)