From af0023788e0e9a14229feb449ab4c8ddf3743b4b Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:05:55 +0330 Subject: [PATCH] Import source: src/components/Writing Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/components/Writing.tsx | 215 +++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 src/components/Writing.tsx diff --git a/src/components/Writing.tsx b/src/components/Writing.tsx new file mode 100644 index 0000000..1cd7580 --- /dev/null +++ b/src/components/Writing.tsx @@ -0,0 +1,215 @@ +'use client'; + +import { motion } from 'framer-motion'; +import { useLocale, useTranslations } from 'next-intl'; +import { BookOpen, Eye, Heart, ArrowUpRight } from 'lucide-react'; + +type Article = { + id: string; + titleKey: string; + descKey: string; + dateKey: string; + viewsKey: string; + link: string; +}; + +export default function Writing() { + const t = useTranslations('Writing'); + const tStats = useTranslations('Stats'); + const locale = useLocale(); + + const articles: Article[] = [ + { + id: 'art1', + titleKey: 'articles.art1.title', + descKey: 'articles.art1.desc', + dateKey: 'articles.art1.date', + viewsKey: 'articles.art1.views', + link: 'https://teknav.ir/profile/@arsam-sabbagh', + }, + { + id: 'art2', + titleKey: 'articles.art2.title', + descKey: 'articles.art2.desc', + dateKey: 'articles.art2.date', + viewsKey: 'articles.art2.views', + link: 'https://teknav.ir/profile/@arsam-sabbagh', + }, + { + id: 'art3', + titleKey: 'articles.art3.title', + descKey: 'articles.art3.desc', + dateKey: 'articles.art3.date', + viewsKey: 'articles.art3.views', + link: 'https://teknav.ir/profile/@arsam-sabbagh', + }, + ]; + + return ( +
+
+ + {/* Header */} +
+

+ {t('title')} +

+

+ {t('subtitle')} +

+
+ + {/* Featured Article Hero Card */} + +
+
+
+ + {t('featured')} + + + {t('articles.art1.date')} + +
+ +

+ {t('articles.art1.title')} +

+ +

+ {t('articles.art1.desc')} +

+ +
+ + + {t('articles.art1.views')} + +
+
+ + +
+ +
+ + + {/* Profile Card & List Columns */} +
+ + {/* Teknav Profile Summary Card (Left) */} + +

+ + {t('stats')} +

+ +
+
+
+ {(28).toLocaleString(locale === 'fa' ? 'fa-IR' : 'en-US')} +
+
+ {tStats('articles')} +
+
+
+ +
+
+ {(118280).toLocaleString(locale === 'fa' ? 'fa-IR' : 'en-US')} +
+
+ {tStats('views')} +
+
+
+ +
+
+ {(4789).toLocaleString(locale === 'fa' ? 'fa-IR' : 'en-US')} +
+
+ {tStats('reactions')} +
+
+
+ + + {t('viewProfile')} + + +
+ + {/* Other Articles List (Right) */} + + {articles.map((art) => ( + +
+
+ + {t(`${art.dateKey}`)} + +
+ {t(`${art.titleKey}`)} +
+

+ {t(`${art.descKey}`)} +

+
+ + {t(`${art.viewsKey}`)} +
+
+
+ +
+
+
+ ))} +
+ +
+
+
+ ); +}