Skip to content

Commit bc55a14

Browse files
committed
fix filan onepage version
1 parent 62eab51 commit bc55a14

25 files changed

Lines changed: 51 additions & 48 deletions

src/app/[lang]/whitepaper/page.tsx

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ import {
99
} from "@/components/utils/actions";
1010

1111
import { findByUniqueId } from "@/components/utils/findByUniqueId";
12-
import PoweredBy from "./components/PoweredBy";
13-
import EcosystemIntro from "./components/EcosystemIntro";
14-
import WhyMetarang from "./components/WhyMetarang"
15-
import EcosystemFeatures from "./components/EcosystemFeatures"
16-
import TrustedBy from "./components/TrustedBy"
17-
import TrustedBySimple from "./components/TrustedBySimple"
18-
import Codebase from "./components/Codebase"
19-
import FoundationGrants from "./components/FoundationGrants"
20-
import AvalancheNetwork from "./components/AvalancheNetwork"
21-
import NewsStories from "./components/NewsStories"
22-
import AvalancheSolutions from "./components/AvalancheSolutions"
23-
import AvalancheStories from "./components/AvalancheStories"
24-
import AvalancheEventsCard from "./components/AvalancheEventsCard";
25-
import MetaFeatures from "./components/MetaFeatures";
26-
import AvalancheCTA from "./components/AvalancheCTA";
27-
import ContactSection from "./components/ContactSection";
28-
import AvalancheBanner from "./components/AvalancheBanner"
12+
import PoweredBy from "@/components/features/onepager/PoweredBy";
13+
import EcosystemIntro from "@/components/features/onepager/EcosystemIntro";
14+
import WhyMetarang from "@/components/shared/slider/WhyMetarang"
15+
import EcosystemFeatures from "@/components/features/onepager/EcosystemFeatures"
16+
import TrustedBy from "@/components/features/onepager/TrustedBy"
17+
import TrustedBySimple from "@/components/shared/slider/TrustedBySimple"
18+
import Codebase from "@/components/features/onepager/Codebase"
19+
import FoundationGrants from "@/components/features/onepager/FoundationGrants"
20+
import AvalancheNetwork from "@/components/features/onepager/MetarangNetwork"
21+
import NewsStories from "@/components/shared/slider/NewsStories"
22+
import AvalancheSolutions from "@/components/features/onepager/MetarangSolutions"
23+
import AvalancheStories from "@/components/features/onepager/MetarangStories"
24+
import AvalancheEventsCard from "@/components/templates/envent/MetarangEventsCard";
25+
import MetaFeatures from "@/components/features/onepager/MetaFeatures";
26+
import AvalancheCTA from "@/components/shared/MetarangCTA";
27+
import ContactSection from "@/components/shared/ContactSection";
28+
import AvalancheBanner from "@/components/banner/MetarangBanner"
2929
import SectionTeam from "@/components/templates/firstpage/TeamSection";
30-
import PressureLayout from "./components/PressureLayout";
31-
import Logo from "./components/logo";
30+
import PressureLayout from "@/components/ui/animations/PressureLayout";
31+
import Logo from "@/components/ui/animations/Pressure";
3232
import ClipButton from "@/components/shared/ClipButton";
3333
import Image from "next/image";
3434
const baseUrl = "https://metarang.com"; // ← دامنه اصلی سایتت
@@ -54,6 +54,9 @@ export async function generateMetadata({
5454
return {
5555
title: findByUniqueId(mainData, 1756),
5656
description: findByUniqueId(mainData, 1757),
57+
alternates: {
58+
canonical: url,
59+
},
5760
openGraph: {
5861
title: findByUniqueId(mainData, 1756),
5962
description: findByUniqueId(mainData, 1757),

src/app/[lang]/whitepaper/components/AvalancheBanner.tsx renamed to src/components/banner/MetarangBanner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default function AvalancheBanner({ params, mainData }: AvalancheBannerPro
1010
return (
1111
<section className="relative overflow-hidden bg-white dark:bg-[#1A1A18] rounded-[40px] px-4 py-10 md:px-0 md:py-14">
1212
{/* Background Glow */}
13-
<div className="flex gap-10 items-center justify-center">
14-
<div className='flex gap-10 mt-5 items-center w-[50%] pb-10'>
13+
<div className="flex gap-10 items-start justify-center py-4">
14+
<div className='flex gap-10 items-start w-[50%] '>
1515
<div >
1616
<svg className="w-[100px] lg:w-auto" width="198" height="198" viewBox="0 0 198 198" fill="none" xmlns="http://www.w3.org/2000/svg">
1717
<path className='fill-black dark:fill-white' d="M45.0441 16.5H33.4113C25.7388 16.5 21.8614 25.8225 27.3064 31.2675L74.5787 78.54C88.1087 92.07 109.971 92.07 123.501 78.54L170.774 31.2675C176.219 25.8225 172.342 16.5 164.669 16.5H153.036C146.189 16.5 139.589 19.2225 134.722 24.09L105.186 53.625C101.804 57.0075 96.3591 57.0075 92.9766 53.625L63.4414 24.09C58.4914 19.2225 51.8916 16.5 45.0441 16.5Z" fill="white" />
@@ -27,7 +27,7 @@ export default function AvalancheBanner({ params, mainData }: AvalancheBannerPro
2727
</div>
2828

2929
</div>
30-
<div className="w-[40%] lg:mt-[-76px]">
30+
<div className="w-[40%] ">
3131
<p className="dark:text-[#FFFFFF] text-[#1A1A18] 3xl:text-3xl">
3232
{findByUniqueId(mainData, 1682)}
3333
</p>
File renamed without changes.

src/app/[lang]/whitepaper/components/EcosystemFeatures.tsx renamed to src/components/features/onepager/EcosystemFeatures.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { Hex, DropBox, Wings } from "@/components/svgs/SvgWhitepaper";
55
import { findByUniqueId } from "@/components/utils/findByUniqueId";
6-
import AnimatedReveal from "./AnimatedReveal";
6+
import AnimatedReveal from "../../ui/animations/AnimatedReveal";
77
import ClipButton from "@/components/shared/ClipButton";
88
interface EcosystemFeaturesProps {
99
params: { lang: string };
File renamed without changes.

src/app/[lang]/whitepaper/components/FoundationGrants.tsx renamed to src/components/features/onepager/FoundationGrants.tsx

File renamed without changes.

src/app/[lang]/whitepaper/components/MetaFeatures.tsx renamed to src/components/features/onepager/MetaFeatures.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import ClipButton from "@/components/shared/ClipButton";
55
import { Hex, DropBox, Wings } from "@/components/svgs/SvgWhitepaper";
66
import { findByUniqueId } from "@/components/utils/findByUniqueId";
7-
import AnimatedReveal from "./AnimatedReveal";
7+
import AnimatedReveal from "../../ui/animations/AnimatedReveal";
88
interface MetaFeaturesProps {
99
params: { lang: string };
1010
mainData: { mainData: string };

src/app/[lang]/whitepaper/components/AvalancheNetwork.tsx renamed to src/components/features/onepager/MetarangNetwork.tsx

File renamed without changes.

src/app/[lang]/whitepaper/components/AvalancheSolutions.tsx renamed to src/components/features/onepager/MetarangSolutions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export default function AvalancheSolutions({ params, mainData }: AvalancheSoluti
236236

237237
{/* HEADER */}
238238
<header className="border-b border-solid border-x-0 border-t-0 dark:border-[#434343] border-[#D9D9D9] ">
239-
<div className='flex flex-col lg:flex-row items-center pb-10'>
239+
<div className='flex flex-col lg:flex-row items-center lg:items-start pb-10'>
240240
<div className='w-full lg:w-[300px] '>
241241

242242
<Reveal

src/app/[lang]/whitepaper/components/AvalancheStories.tsx renamed to src/components/features/onepager/MetarangStories.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function StoryCard({
130130
{item.username}
131131
</p>
132132

133-
<p className="text-xs uppercase tracking-[0.18em] text-[#1A1A18] dark:text-[#9A9A9A]">
133+
<p className="text-xs uppercase text-[#1A1A18] dark:text-[#9A9A9A]">
134134
{item.handle}
135135
</p>
136136
</div>
@@ -155,7 +155,7 @@ function StoryCard({
155155

156156
{/* IMAGE */}
157157
{item.image && (
158-
<div className="relative min-h-64 px-5 pb-5 w-full flex items-end">
158+
<div className="relative lg:min-h-64 px-5 pb-5 w-full flex items-end">
159159
<Image
160160
src={item.image}
161161
alt={item.content}
@@ -410,12 +410,12 @@ export default function AvalancheStories({ params, mainData }: AvalancheStoriesP
410410
className={`grid
411411
border-b border-solid border-x-0 border-t-0 dark:border-[#434343] border-[#D9D9D9] pb-10
412412
lg:grid-cols-[1fr_auto_auto]
413-
lg:items-center`}
413+
lg:items-start`}
414414

415415
>
416416

417417

418-
<div className='flex flex-col lg:flex-row lg:gap-10 lg:mt-5 items-start lg:items-center '>
418+
<div className='flex flex-col lg:flex-row lg:gap-10 lg:mt-5 items-start lg:items-start '>
419419
<div>
420420
<svg className='w-[100px] xl:w-auto' width="198" height="198" viewBox="0 0 198 198" fill="none" xmlns="http://www.w3.org/2000/svg">
421421
<path className='fill-black dark:fill-white' d="M45.0441 16.5H33.4113C25.7388 16.5 21.8614 25.8225 27.3064 31.2675L74.5787 78.54C88.1087 92.07 109.971 92.07 123.501 78.54L170.774 31.2675C176.219 25.8225 172.342 16.5 164.669 16.5H153.036C146.189 16.5 139.589 19.2225 134.722 24.09L105.186 53.625C101.804 57.0075 96.3591 57.0075 92.9766 53.625L63.4414 24.09C58.4914 19.2225 51.8916 16.5 45.0441 16.5Z" fill="white" />
@@ -431,7 +431,7 @@ export default function AvalancheStories({ params, mainData }: AvalancheStoriesP
431431
</div>
432432

433433
{/* LEFT */}
434-
<div className="max-w-[430px] lg:mt-[-5px]">
434+
<div className="max-w-[430px] lg:mt-5">
435435
<p
436436
className={`text-[16px] lg:text-xl
437437
leading-[1.35]
@@ -450,7 +450,7 @@ export default function AvalancheStories({ params, mainData }: AvalancheStoriesP
450450

451451
>
452452
{/* SOCIALS */}
453-
<div className="flex flex-wrap gap-4">
453+
<div className="flex flex-wrap gap-2 lg:gap-4">
454454
{socials.map((item, index) => (
455455
<SocialPill
456456
key={`${item}-${index}`}

0 commit comments

Comments
 (0)