diff --git a/app/[locale]/blog/[slug]/page.tsx b/app/[locale]/blog/[slug]/page.tsx index 7bf8ad8..62393c5 100644 --- a/app/[locale]/blog/[slug]/page.tsx +++ b/app/[locale]/blog/[slug]/page.tsx @@ -5,6 +5,7 @@ import { getPosts } from "@/lib/getBlogs"; import { constructMetadata } from "@/lib/metadata"; import { BlogPost } from "@/types/blog"; import fs from "fs/promises"; +import matter from 'gray-matter'; import { Metadata } from "next"; import { MDXRemote } from "next-mdx-remote-client/rsc"; import { notFound } from "next/navigation"; @@ -31,7 +32,7 @@ async function getMDXContent(locale: string, section: string): Promise const content = await fs.readFile(filePath, "utf-8"); // 解析MDX文件的frontmatter和内容 - const { frontmatter, content: postContent } = parseMDXContent(content); + const { data: frontmatter, content: postContent } = matter(content); // 构建BlogPost对象 const blogPost: BlogPost = { @@ -123,8 +124,6 @@ export async function generateMetadata({ const { locale, slug } = await params; let post = await getMDXContent(locale, slug); - console.log(post, 'post'); - if (!post) { return constructMetadata({ title: "404", @@ -151,7 +150,6 @@ export default async function BlogPage({ params }: { params: Params }) { const { locale, slug } = await params; let post = await getMDXContent(locale, slug); - console.log(post); if (!post) { return notFound(); } diff --git a/app/[locale]/blog/page.tsx b/app/[locale]/blog/page.tsx index bdead21..12a566d 100644 --- a/app/[locale]/blog/page.tsx +++ b/app/[locale]/blog/page.tsx @@ -42,7 +42,7 @@ export default async function Page({ const resolvedSearchParams = await searchParams; const category = resolvedSearchParams.category as string || ""; - let { posts } = await getPosts(locale, category); + let { posts } = await getPosts(locale); const t = await getTranslations("Blog"); @@ -77,12 +77,6 @@ export default async function Page({ 新闻中心 - {/* {typeLabel && ( - <> - / - {typeLabel} - - )} */} diff --git a/app/[locale]/product/[slug]/page.tsx b/app/[locale]/product/[slug]/page.tsx index bbbb47f..7682746 100644 --- a/app/[locale]/product/[slug]/page.tsx +++ b/app/[locale]/product/[slug]/page.tsx @@ -1,103 +1,184 @@ -import { Callout } from "@/components/mdx/Callout"; -import MDXComponents from "@/components/mdx/MDXComponents"; +import ProductTabsClient from "@/components/ProductTabsClient"; import { Locale, LOCALES } from "@/i18n/routing"; -import { getPosts } from "@/lib/getBlogs"; +import { getProducts } from "@/lib/getProducts"; import { constructMetadata } from "@/lib/metadata"; -import { BlogPost } from "@/types/blog"; +import { Product } from "@/types/product"; import { Metadata } from "next"; -import { MDXRemote } from "next-mdx-remote-client/rsc"; +import { getTranslations } from "next-intl/server"; import { notFound } from "next/navigation"; -type Params = Promise<{ +type Params = { locale: string; slug: string; -}>; +}; type MetadataProps = { - params: Params; + params: Promise; }; export async function generateMetadata({ params, }: MetadataProps): Promise { const { locale, slug } = await params; - let { posts }: { posts: BlogPost[] } = await getPosts(locale); - const post = posts.find((post) => post.slug === "/" + slug); - if (!post) { + try { + const { products }: { products: Product[] } = await getProducts(locale); + const product = products.find((product) => product.slug === slug); + + if (!product) { + return constructMetadata({ + title: "404 - 产品不存在", + description: "请求的产品页面未找到", + noIndex: true, + locale: locale as Locale, + path: `/products/${slug}`, + canonicalUrl: `/products/${slug}`, + }); + } + return constructMetadata({ - title: "404", - description: "Page not found", - noIndex: true, + page: "products", + title: product.title, + description: `${product.title} - ${product.model} - ${product.place}`, + images: product.images.length ? [product.images[0]] : [], locale: locale as Locale, - path: `/blog/${slug}`, - canonicalUrl: `/blog/${slug}`, + path: `/products/${slug}`, + canonicalUrl: `/products/${slug}`, + }); + } catch (error) { + console.error("生成产品元数据失败:", error); + return constructMetadata({ + title: "产品详情", + description: "产品详情页面", + locale: (await params).locale as Locale, + path: `/products/${(await params).slug}`, }); } - - return constructMetadata({ - page: "blog", - title: post.title, - description: post.description, - images: post.image ? [post.image] : [], - locale: locale as Locale, - path: `/blog/${slug}`, - canonicalUrl: `/blog/${slug}`, - }); } -export default async function BlogPage({ params }: { params: Params }) { +export default async function ProductPage({ params }: { params: Promise }) { const { locale, slug } = await params; - let { posts }: { posts: BlogPost[] } = await getPosts(locale); + const { products }: { products: Product[] } = await getProducts(locale); + const product = products.find((item) => item.slug == slug); + if (!product) return notFound(); - const post = posts.find((item) => item.slug === "/" + slug); + const t = await getTranslations({ locale, namespace: "Product" }); - if (!post) { - return notFound(); - } + // 获取所有产品图片 + const allImages = product.images || []; + + const formattedPublishTime = (() => { + if (!product.publishedTime) return "暂无"; + const publishDate = typeof product.publishedTime === 'string' + ? new Date(product.publishedTime) + : product.publishedTime; + + return isNaN(publishDate.getTime()) + ? "暂无" + : publishDate.toLocaleDateString("zh-CN", { + year: "numeric", + month: "2-digit", + day: "2-digit", + }); + })(); return ( -
-

{post.title}

- {post.image && ( - {post.title} - )} - {post.tags && post.tags.split(",").length ? ( -
- {post.tags.split(",").map((tag) => { - return ( -
- {tag.trim()} -
- ); - })} +
+ +
+
+

{t("detailTitle")}

- ) : ( - <> - )} - {post.description && {post.description}} - + + {/* 调整后:左侧大图+下方缩略图 + 右侧信息 */} +
+
+ {/* 左侧图片区域(大图+缩略图) */} +
+ {/* 第一张大图 */} + {allImages.length > 0 ? ( +
+ {`${product.title +
+ ) : ( +
+ 暂无产品图片 +
+ )} +
+ + {/* 右侧产品信息区域 */} +
+

{product.title || "未命名产品"}

+
+
+ {t("productModel")}: + {product.model || "暂无"} +
+
+ {t("productPlace")}: + {product.place || "暂无"} +
+
+ {t("productPublishedTime")}: + {formattedPublishTime} +
+
+
+
+ + + {/* 所有图片缩略图(横向滚动) */} + {allImages.length > 0 && ( +
+ {allImages.map((img, index) => ( +
+ {`${product.title +
+ ))} +
+ )} +
+ + +
+ ); } export async function generateStaticParams() { - let posts = (await getPosts()).posts; + try { + const defaultLocale = LOCALES[0]; + const { products }: { products: Product[] } = await getProducts(defaultLocale); + const validProducts = products.filter((product) => product.slug && product.title); - // Filter out posts without a slug - posts = posts.filter((post) => post.slug); - - return LOCALES.flatMap((locale) => - posts.map((post) => { - const slugPart = post.slug.replace(/^\//, "").replace(/^blog\//, ""); - - return { + return LOCALES.flatMap((locale) => + validProducts.map((product) => ({ locale, - slug: slugPart, - }; - }) - ); -} + slug: product.slug, + })) + ); + } catch (error) { + console.error("生成产品静态参数失败:", error); + return []; + } +} \ No newline at end of file diff --git a/app/[locale]/product/page.tsx b/app/[locale]/product/page.tsx index f5c7f40..c45db66 100644 --- a/app/[locale]/product/page.tsx +++ b/app/[locale]/product/page.tsx @@ -1,5 +1,7 @@ import { Link as I18nLink, Locale, LOCALES } from "@/i18n/routing"; +import { getProducts } from "@/lib/getProducts"; import { constructMetadata } from "@/lib/metadata"; +import { Product } from "@/types/product"; import { Metadata } from "next"; import { getTranslations } from "next-intl/server"; @@ -25,66 +27,40 @@ export async function generateMetadata({ }); } -// 产品数据 -const productData = [ - { - id: 1, - name: "直线高频焊接圆管(含热浸镀锌)", - image: "/placeholder.svg", - url: "/product/114", - }, - { - id: 2, - name: "方矩形焊接钢管(含热浸镀锌)", - image: "/placeholder.svg", - url: "/product/115", - }, - { - id: 3, - name: "钢塑复合管", - image: "/placeholder.svg", - url: "/product/116", - }, - { - id: 4, - name: "管路连接件", - image: "/placeholder.svg", - url: "/product/117", - }, - { - id: 5, - name: "其他产品1", - image: "/placeholder.svg", - url: "/product/118", - }, - { - id: 6, - name: "其他产品2", - image: "/placeholder.svg", - url: "/product/119", - }, - { - id: 7, - name: "其他产品3", - image: "/placeholder.svg", - url: "/product/120", - }, - { - id: 8, - name: "其他产品4", - image: "/placeholder.svg", - url: "/product/121", - }, -]; +// 每页产品数量 +const PRODUCTS_PER_PAGE = 8; export default async function Page({ params, + searchParams, }: { params: Params; + searchParams: { page?: string }; }) { const { locale } = await params; const t = await getTranslations("Product"); + // 获取当前页码,默认第1页 + let currentPage = parseInt(searchParams.page || "1"); + if (isNaN(currentPage) || currentPage < 1) { + currentPage = 1; + } + + // 获取产品数据 + const { products }: { products: Product[] } = await getProducts(locale); + + // 计算总页数 + const totalProducts = products.length; + const totalPages = Math.ceil(totalProducts / PRODUCTS_PER_PAGE); + + // 确保当前页码不超过总页数 + const safeCurrentPage = Math.min(currentPage, totalPages); + + // 计算当前页的产品数据 + const startIndex = (safeCurrentPage - 1) * PRODUCTS_PER_PAGE; + const endIndex = startIndex + PRODUCTS_PER_PAGE; + const currentProducts = products.slice(startIndex, endIndex); + return (
{/* 面包屑导航 */} @@ -92,48 +68,90 @@ export default async function Page({
- 首页 + {t("breadcrumb.home")} / - 产品中心 + {t("breadcrumb.product")}
{/* 产品标题区域 */}
-

产品中心

- +

{t("title")}

+ {/* 产品网格 */}
- {productData.map((product) => ( + {currentProducts.map((product) => (
- {product.name}
-

{product.name}

+

{product.title}

- 了解更多 > + {t("learnMore")} >
))}
+ + {/* 分页组件 */} + {totalPages > 1 && ( +
+ +
+ )}
); } export async function generateStaticParams() { - return LOCALES.map((locale) => ({ locale })); + // 为每个语言生成首页 + return LOCALES.map((locale) => ({ + locale, + })); } diff --git a/blogs/en/1.mdx b/blogs/en/1.mdx index 74c8785..6199552 100644 --- a/blogs/en/1.mdx +++ b/blogs/en/1.mdx @@ -1,18 +1,45 @@ --- -title: demo -description: it is a description -slug: /demo -tags: nextjs,i18n,mdx,starter,robots,sitemap -date: 2025-02-16 +title: New Trends in the Development of the Steel Industry visible: published # visible: draft/invisible/published (published is default) pin: pin +slug: /1 --- -## Introduction +In recent years, as China's urbanization process has entered the middle and late stages, the demand for construction steel is undergoing a profound transformation from "total expansion" to "structural optimization". This change not only reshapes the steel consumption pattern, but also accelerates the overall transformation and upgrading of the steel industry. -demo +## I. Construction Steel: Peak Total Volume, Structural Differentiation -## How to use +Over the past 20 years, China's urbanization rate has rapidly increased from 30% in 1996 to 67% in 2024, with an average annual growth rate of 1.42% between 1996 and 2017. During this period, large-scale urban expansion drove explosive growth in demand for construction steel. However, since 2018, the average annual growth rate of urbanization has slowed to 0.97% and is expected to further slow down after breaking through 70%—referring to the experience of developed countries such as the United States, Japan, and South Korea, this means that the peak demand for construction steel dominated by new construction has passed. -demo \ No newline at end of file +Data shows that since the real estate cycle peaked in 2021, the apparent consumption of rebar has declined simultaneously, with an average annual decrease of 5.88% from 2021 to 2024, and it is difficult to reverse in the short term. The pulling effect of traditional residential and commercial real estate on steel continues to weaken. + +But structural opportunities are emerging. The Central Urban Work Conference clearly states that in the future, it will steadily promote the transformation of urban villages and dilapidated houses, accelerate the construction of urban infrastructure "lifeline" safety projects, and focus on promoting the renewal of old pipelines such as gas, water supply and drainage, and heating. According to estimates by the National Development and Reform Commission, the country needs to renovate about 600,000 kilometers of various municipal pipelines in the next five years, with a total investment of about 4 trillion yuan. This round of "urban renewal" will drive the phased demand for rebar, medium plate and welded steel pipes, although its steel intensity per unit investment is significantly lower than that of new projects. + +At the same time, the green and low-carbon transformation has opened up a new track for construction steel. The Ministry of Housing and Urban-Rural Development requires that by 2025, all newly built urban buildings will fully implement green building standards, and the promotion of ultra-low energy consumption buildings will be accelerated. Due to its advantages of fast construction, strong earthquake resistance, recyclability, and low carbon emissions, steel structure is becoming an important carrier of green construction. From 2020 to 2024, China's steel structure processing volume increased from 89 million tons to 109 million tons, with an average annual growth of 4.5%; China Steel Structure Association expects it to reach 140 million tons in 2025 and is expected to exceed 200 million tons by 2035. + +## II. Shift in Demand Focus: From All-round Expansion to Urban Agglomeration Focus + +Against the backdrop of total volume decline, the regional distribution of construction steel demand has also undergone significant changes. The past "blooming everywhere" construction model is being replaced by "key agglomeration". The meeting emphasized the need to develop modern urban agglomerations and metropolitan areas with a clustered and networked pattern, which means that future infrastructure investment will be highly concentrated in core regions such as the Beijing-Tianjin-Hebei region, the Yangtze River Delta, and the Guangdong-Hong Kong-Macao Greater Bay Area. + +Intercity railways, comprehensive transportation hubs, cross-river and cross-sea bridges, long tunnels and other major projects will become the main scenes of steel use. However, in third and fourth-tier cities and county areas with continuous population outflow, the growth space for construction steel demand is limited, and it may even face long-term shrinkage. + +A more far-reaching change is that the manufacturing industry is replacing the construction industry as the largest steel consumption sector. It is estimated that the proportion of construction steel in total steel consumption has decreased from 63.74% in 2020 to 56.99% in 2024, and the proportion of real estate steel consumption has even dropped sharply from 39.79% to 23.67%; during the same period, the proportion of steel consumption in the manufacturing industry has increased from 36.26% to 43.01% . + +This structural transformation has been confirmed at the steel mill production end: in 2024, the output of rebar and wire rod of key steel enterprises decreased by 13.84% and 1.73% year-on-year respectively; while the output of hot-rolled thin wide strip and cold-rolled thin wide strip increased by 3.14% and 1.95% respectively, and the growth rate of electrical steel plate (strip) and its cold-rolled varieties was as high as 7.75% and 5.41% respectively. The product structure is accelerating its tilt towards high value-added plates. + +## III. Industrial Upgrading: Coordinated Promotion of Technology, Green and Capacity Optimization + +The profound changes on the demand side are forcing the steel industry to accelerate upgrading in multiple dimensions. + +First, high-end products. Facing the transformation and upgrading of the manufacturing industry, steel mills are increasing the supply of new energy vehicle materials such as high-strength steel, silicon steel, and galvanized sheets; in response to the surge in renewable energy installation such as wind power and photovoltaics, the production capacity of special varieties such as medium plates, pressure vessel steel, and corrosion-resistant alloy steel continues to expand; at the same time, in line with the trend of lightweight and intelligent, functional products such as high-precision ship plates and stainless steel for home appliances are developed. In the construction field, green building materials such as high-strength seismic reinforcement and corrosion-resistant structural steel have also become research and development priorities. + +Second, the acceleration of green and low-carbon transformation. As of the end of July 2025, 147 steel enterprises in the country, with a crude steel production capacity of about 600 million tons, have completed the whole-process ultra-low emission transformation, accounting for a continuously increasing proportion of total production capacity. The industry goal is to achieve more than 80% of production capacity compliance by the end of 2025, and the internalization of environmental protection costs has become an important part of enterprise competitiveness. + +Third, the orderly withdrawal of backward production capacity. Facing the reality that real estate investment is still in double-digit negative growth, the policy level continues to strengthen the "anti-involution" orientation. The Central Financial and Economic Commission once again emphasized promoting the withdrawal of inefficient production capacity at the beginning of July, and in the future, traditional production capacity index transactions may be replaced by joint restructuring, and the sale of production capacity will be strictly prohibited, fundamentally improving the supply and demand relationship of the industry and enhancing resource allocation efficiency. + +## Conclusion + +The signals released by the Central Urban Work Conference clearly indicate that China's steel industry has officially entered a new development stage of "stock optimization and quality upgrading". The total demand for construction steel is irreversible, but structural opportunities such as urban renewal, green buildings, and urban agglomeration infrastructure are still considerable; while the rise of steel consumption in the manufacturing industry provides a more sustainable growth engine for the industry. + +Against this background, only enterprises that actively adjust their product structure, accelerate green and intelligent transformation, and resolutely eliminate backward production capacity can gain an advantage in the new round of reshuffle. The future of the steel industry no longer depends on "how much is produced", but on "what is produced" and "how it is produced". This industrial upgrading driven by demand changes is writing a new chapter in the high-quality development of China's steel industry. \ No newline at end of file diff --git a/blogs/en/2.mdx b/blogs/en/2.mdx index e69de29..f156e5c 100644 --- a/blogs/en/2.mdx +++ b/blogs/en/2.mdx @@ -0,0 +1,84 @@ +--- +title: The Great Significance of the Yarlung Zangbo River Project to the Steel Industry +visible: published +# visible: draft/invisible/published (published is default) +pin: pin +slug: /2 +--- + +At the hinterland of the Qinghai-Tibet Plateau, at the great bend of the Yarlung Zangbo River, a super hydropower project called the "Century Project" is拉开帷幕——this is the Yarlung Zangbo River downstream hydropower project (referred to as "Yarlung Project" or "Yaxi Project") with a total investment of 1.2 trillion yuan and a total installed capacity of 55 million to 60 million kilowatts. As the largest hydropower infrastructure project in human history, its annual power generation is expected to reach 200 billion to 300 billion kilowatt-hours, about 3 times that of the Three Gorges Project. This project will not only reshape the national energy pattern and support the "dual carbon" strategy, but also profoundly affect the development trajectory of China's steel industry. + +On August 27, 2025, at the 7th China High-Speed Steel Application Technology Forum, Zhao Fazhong, Deputy Secretary-General of China Special Steel Enterprise Association, delivered a report entitled "Yarlung Project and New Opportunities for the Development of the Steel Industry——Analysis of Steel and Special Steel Demand", systematically explaining the historical opportunities and structural challenges that the project brings to the steel industry. + +## I. Unprecedented Scale: The Largest Steel Demand in History + +It is estimated that the steel consumption for the main construction of the Yarlung Project is expected to reach 4 million to 6 million tons; if supporting power transmission, transportation, resettlement and other projects are included, the total steel consumption may exceed 8 million tons——10 to 13 times that of the Three Gorges Project (590,000 tons). More importantly, this demand is not released in a short period of time, but runs through a construction period of about 15 years, with a stable annual average of 500,000 to 800,000 tons, providing long-term, predictable market support for the steel industry. + +From the perspective of product structure, steel demand presents a dual-drive pattern of "conventional-based, special steel-essential": + +- Conventional building materials for core projects (2.8 million–3.3 million tons): including rebar, H-beams, I-beams, medium plates, etc., used for dam skeletons, diversion tunnels, construction roads and other infrastructure; +- Special steel for transmission facilities (281,000 tons): such as weather-resistant angle steel, galvanized steel plates, used for UHV towers and substation steel structures; +- Special steel for hydropower units (270,000 tons): covering corrosion-resistant stainless steel such as 06Cr13Ni4Mo, high magnetic induction oriented silicon steel sheets, high-strength structural steel, used for turbine runners, generator stators and rotors and other core components. + +It is worth noting that western steel enterprises are expected to become the main suppliers of conventional steel due to their geographical advantages. For example, Baowu Group Bayi Iron and Steel Co., Ltd. has a market share of 85% in the steel market for key projects in Tibet, relying on the Lanxin and Qinghai-Tibet Railways, its transportation costs are 30% lower than that of eastern enterprises, and its "local supply" advantage is significant. + +## II. Phased Release: Demand Rhythm Requires Flexible Response + +Zhao Fazhong pointed out that the steel demand of the Yarlung Project has distinct phased characteristics, putting forward new requirements for "flexibility" in the production organization and supply chain coordination of steel enterprises: + +- Early stage (2025–2027): mainly civil construction, with conventional building materials such as rebar and I-beams accounting for more than 60%; at the same time, it will drive an increase of 12% in steel demand for construction machinery, and orders for plateau tunnel boring equipment will surge. +- Mid-term (2028–2030): entering the peak period of dam pouring and unit manufacturing, the annual demand for medium plates may exceed 5 million tons, silicon steel sheets increase by 150,000 tons per year, and Q500E and other high-strength bridge steel have expanded premium space——this is the "golden window period" for special steel enterprises. +- Later stage (from 2031): focusing on the construction of UHV transmission lines, weather-resistant angle steel, galvanized steel and oriented silicon steel sheets (80,000 tons newly added annually) become the main force, emphasizing "precise docking" and "immediate response". + +This "front-heavy, rear-precise, from general to special" demand curve forces steel enterprises to shift from "batch production" to "customization on demand", and upgrade from "product delivery" to "solution provision". + +## III. Extreme Environment: Forcing Comprehensive Improvement of Material Performance + +The Yarlung Project is located on the Qinghai-Tibet Plateau at an altitude of more than 4,000 meters, facing multiple challenges such as extreme low temperature, strong ultraviolet rays, high-corrosion water quality, active earthquake zones, and limited transportation, putting almost harsh requirements on steel performance: + +- Low-temperature toughness: need to meet -40℃ impact energy ≥27J, promoting the application of Ni-Cr-Mo-V microalloying technology; +- UV aging resistance: galvanized layer thickness ≥85μm, supporting new UV-resistant coating system; +- Corrosion resistance: facing high chloride ion, high dissolved oxygen water body, nitrogen-containing duplex stainless steel becomes the key material; +- Seismic and tear resistance: Z-direction steel is needed in geological fault zones, using online quenching + tempering process to improve lamellar tear resistance; +- Lightweight and weldability: limited by plateau transport capacity (only 500 tons per day), requiring higher strength, lighter weight (30% weight reduction), and welding crack sensitivity index Pcm ≤0.30. + +Against this background, special steel accounts for as high as 40%, far exceeding conventional large-scale projects. This is not only a test of materials, but also a "pressure test" of China's steel industry's technical capabilities. + +## IV. Technological Leadership: From "Following" to "Running Side by Side" or Even "Leading" + +The Yarlung Project is becoming a "touchstone" and "accelerator" for domestic high-end steel. A number of landmark achievements have emerged: + +- Hunan Iron and Steel Group's HY950CF hydropower steel, with yield strength ≥960MPa, -40℃ impact energy >50J, successfully won 70% of the pressure steel pipe share (about 150,000 tons), achieving a 30% weight reduction; +- Taiyuan Iron and Steel Co., Ltd. overcame the high-altitude welding deposition rate problem, exclusively supplying all 93 turbine runner steels (37,000 tons); +- Baosteel will supply 140,000 tons of high-performance silicon steel, supporting the 233,000-ton generator core demand. + +These breakthroughs mark that China's special steel technology has reached the international advanced level and has the ability to independently guarantee national major projects. + +## V. Industrial Collaboration: Promoting Green and Intelligent Upgrading of the Whole Chain + +Zhao Fazhong emphasized that the Yarlung Project should not only be regarded as a "steel procurement project", but also as a strategic fulcrum to promote the high-quality development of the steel industry. He suggested: + +- Western steel enterprises can rely on geographical advantages to expand production capacity of plateau-adapted steel grades and layout electric furnace short-process projects; +- Eastern enterprises can participate in the western supply chain through joint ventures; +- Establish a "Yarlung Project special scrap steel" recycling system, combined with project green power resources, to create a low-carbon cycle demonstration; +- Industry associations take the lead in integrating R&D, production, testing, logistics and other whole-chain resources to provide precise services. + +China Special Steel Enterprise Association has listed the Yarlung Project as a top priority, personally deployed by the association's leaders, aiming to gather industry synergy and escort the implementation of national strategies with special steel strength. + +## VI. Action Initiative: Steel Enterprises Must Take the Initiative + +Facing this once-in-a-lifetime opportunity, Zhao Fazhong issued a call to the entire industry: + +- Establish a special working group: set up a "Yarlung Project Steel Leading Group" to systematically plan technology, production capacity and market strategies; +- Deeply connect with owners and contractors: actively contact key units such as China Yarlung Group, China Power Construction, Dongfang Electric, Datang Group, Tibet Tianlu, etc.; +- Strengthen technology R&D: accelerate the development of high-strength, corrosion-resistant, lightweight steel for special working conditions such as plateau, cold, and high corrosion; +- Build an exclusive supply chain: realize the whole process quality traceability and guarantee from iron ore to finished steel; +- Build a brand highland: take the Yarlung Project as a core platform to showcase technical strength, cultivate high-end talents, and establish industry benchmarks. + +## Conclusion: Casting the "Steel Backbone", Writing a Hardcore Answer Sheet + +"The steel skeleton of the Yarlung Project is waiting for us to improve with more sophisticated technology and protect with a more rigorous attitude." Zhao Fazhong sincerely sent a message at the end of the report. + +For the steel industry, the Yarlung Project is not only a huge order list, but also a historic battle related to transformation and upgrading, technological leap and global competitiveness reshaping. Every improvement of steel standards is to build a safe bottom line for the century project; every breakthrough of technical bottlenecks is to inject new kinetic energy into made in China. + +On this roof of the world, Chinese steel people will work together to cast the steel backbone of this "super project" with solid products, tough technology and steady action, and write a hardcore answer sheet belonging to China's industry in the new era. \ No newline at end of file diff --git a/blogs/en/3.mdx b/blogs/en/3.mdx index e69de29..dd53c2f 100644 --- a/blogs/en/3.mdx +++ b/blogs/en/3.mdx @@ -0,0 +1,53 @@ +--- +title: The Development of China's Steel Industry Urgently Needs High-end Transformation +visible: published +# visible: draft/invisible/published (published is default) +pin: pin +slug: /3 +--- + +As the end of the year approaches, the steel industry is experiencing a critical stage of structural adjustment and transformation. Although the overall output remains relatively stable, demand continues to be under pressure, inventory levels have risen significantly, and the industry's profit foundation is still fragile. However, amid challenges, some enterprises have achieved counter-trend growth through measures such as focusing on high-end products, optimizing structure, reducing costs and increasing efficiency, providing a new path for high-quality development of the industry. + +## (I) Demand Declines, Inventory Pressure Emerges + +According to the latest data from the China Iron and Steel Association (CISA), the apparent consumption of steel in China in the first three quarters of 2025 was 649 million tons, a year-on-year decrease of 5.7%. This trend is not a short-term fluctuation, but a continuous change since the "14th Five-Year Plan"—since the peak consumption of 1.04 billion tons in 2020, China's apparent steel consumption has declined for five consecutive years, falling to 890 million tons in 2024, a cumulative decrease of 150 million tons, with an average annual decline of 3.8%. + +At the same time, inventory pressure is gradually accumulating. Research reports from Cinda Securities show that as of November 28, 2025, the social inventory of the five major steel varieties reached 10.073 million tons, a significant year-on-year increase of 27.82%; factory inventory was 3.935 million tons, a year-on-year increase of 2.11%. Data from CISA shows that in mid-November, the steel inventory of key statistical steel enterprises was 15.61 million tons, an increase of 3.24 million tons compared with the beginning of the year, an increase of 26.3%, reflecting the phased mismatch between weak end demand and production rhythm. + +## (II) Output is Stable with Adjustments, Structural Differentiation Intensifies + +From the production side, the steel industry as a whole is operating smoothly. In mid-November 2025, the average daily output of crude steel of key statistical steel enterprises was 1.943 million tons, a slight increase of 0.9% month-on-month; the average daily output of steel was 1.924 million tons, an increase of 2.1% month-on-month. But looking back to October, the country's crude steel output was 72 million tons, a year-on-year decrease of 12.1%, and the cumulative output from January to October was 818 million tons, a year-on-year decrease of 3.9%. This indicates that under policy guidance and market regulation, the trend of the industry actively reducing production continues. + +It is worth noting that although the total output has declined, the production and sales ratio of high-end steel products is increasing. A number of listed companies disclosed in their announcements that by increasing the proportion of special steel and high value-added products, they effectively hedged the impact of falling prices of ordinary steel, and some enterprises even turned losses into profits. According to the third quarterly report data, among the 46 steel listed companies that have disclosed their performance, 31 have achieved year-on-year growth in net profit, accounting for 67.39%. + +## (III) Profit Improvement but Fragile Foundation, Industry Still in Transformation Pain Period + +Xia Nong, vice president of CISA, pointed out at the 21st China Steel Industry Chain Summit that since 2025, the industry has been operating well overall, with significantly improved benefits compared with the same period last year, and achieved a turn from loss to profit in September. However, from a month-on-month perspective, the profit level in September fell sharply compared with August, indicating that the current profit foundation is still not stable, and the industry is still in a stage of "weak recovery and strong differentiation". + +This judgment is highly consistent with the current supply and demand pattern: on the one hand, traditional steel-consuming fields such as construction and real estate continue to shrink; on the other hand, emerging application scenarios such as new energy, high-end manufacturing, and steel structure buildings have not yet formed sufficient incremental support. + +## (IV) Transformation and Upgrading are the Key to Breaking the Situation, Green and Intelligence Lead the Future + +Facing the new development stage of "stock optimization and quality upgrading", CISA emphasizes that steel enterprises must firmly implement the "three determinations and three don'ts" business principles (i.e., determine production based on sales, determine production based on efficiency, determine production based on cash, do not blindly expand production, do not engage in vicious competition, do not sacrifice long-term interests), strengthen industry self-discipline, and curb "involution-style" competition. + +Xia Nong put forward five suggestions for high-quality development: + +1. Deepen supply-side structural reform, control increments, optimize stocks, and promote merger and restructuring; + +2. Promote high-end, intelligent, green, and integrated development, and enhance the competitiveness of the entire industry chain; + +3. Strengthen iron ore resource development and scrap steel utilization to ensure industrial chain security; + +4. Expand new application scenarios such as steel structure buildings to activate potential demand; + +5. Enhance internationalization level and integrate into the global industrial chain. + +In terms of green transformation, the industry has made solid progress. As of the end of October 2025, 219 steel enterprises across the country have completed or partially completed ultra-low emission transformation, of which 165 have achieved full-process transformation, covering about 663 million tons of crude steel production capacity, with a total investment of over 310 billion yuan. The average environmental protection operation cost per ton of steel has reached 212.44 yuan, and green has become a hard constraint and new advantage for industry development. + +In addition, the construction of extreme energy efficiency is also accelerating. As of mid-November, 21 enterprises have completed extreme energy efficiency acceptance, 10 have been recognized as "double carbon best practice energy efficiency benchmark demonstration enterprises", and 11 others have established energy efficiency benchmarks in key processes or equipment. + +## (V) Outlook: Innovation-driven, Boundary Expansion + +Li Daokui, Dean of the Institute of Chinese Economic Thought and Practice at Tsinghua University, suggests that steel enterprises should accelerate technological innovation, actively lay out new energy-related material fields, and vigorously promote the application of steel structure buildings. He also calls for strengthening government-enterprise collaboration, promoting internationalization at a more steady pace, and forcing internal reform and capacity improvement through high-level opening up. + +It can be predicted that driven by the dual drivers of the "dual carbon" goal and high-quality development, the steel industry is shifting from scale expansion to value creation. Those enterprises that take the lead in completing product upgrading, green transformation, and market expansion will win opportunities in the new round of reshuffle. And the entire industry will reshape its competitiveness in the pain and move towards a more sustainable future. \ No newline at end of file diff --git a/blogs/vi/1.mdx b/blogs/vi/1.mdx new file mode 100644 index 0000000..fc8adc2 --- /dev/null +++ b/blogs/vi/1.mdx @@ -0,0 +1,45 @@ +--- +title: Xu hướng mới phát triển ngành thép +visible: published +# visible: draft/invisible/published (published is default) +pin: pin +slug: /1 +--- + +Trong những năm gần đây, cùng với quá trình đô thị hóa của Trung Quốc bước vào giai đoạn trung muộn, nhu cầu thép xây dựng đang trải qua sự chuyển đổi sâu sắc từ "mở rộng tổng lượng" sang "tối ưu hóa cấu trúc". Thay đổi này không chỉ tái cấu trúc mẫu tiêu thụ thép mà còn đang đẩy nhanh quá trình nâng cấp toàn diện ngành thép. + +## I. Thép xây dựng: Tổng lượng đạt đỉnh, cấu trúc phân hóa + +Trong hơn 20 năm qua, tỷ lệ đô thị hóa của Trung Quốc đã tăng nhanh từ 30% vào năm 1996 lên 67% vào năm 2024, với tốc độ tăng trung bình lên đến 1,42% trong giai đoạn 1996–2017. Trong thời kỳ này, mở rộng quy mô đô thị trên quy mô lớn đã thúc đẩy nhu cầu thép xây dựng tăng mạnh. Tuy nhiên, kể từ năm 2018, tốc độ tăng trung bình của đô thị hóa đã giảm xuống 0,97% và dự kiến sẽ tiếp tục giảm sau khi vượt qua 70%—theo kinh nghiệm của các nước phát triển như Mỹ, Nhật, Hàn Quốc, điều này có nghĩa là đỉnh cao nhu cầu thép xây dựng chủ yếu dựa trên xây dựng mới đã qua. + +Dữ liệu cho thấy, kể từ khi chu kỳ bất động sản đạt đỉnh vào năm 2021, lượng tiêu thụ表观 của thép螺纹钢 đã giảm đồng thời, với mức giảm trung bình hàng năm đạt 5,88% từ năm 2021 đến 2024, và khó đảo ngược trong ngắn hạn. Hiệu ứng kéo của bất động sản dân cư và thương mại truyền thống đối với thép tiếp tục yếu đi. + +Nhưng cơ hội cấu trúc đang nổi lên. Hội nghị Công tác Thành phố Trung ương đã nêu rõ rằng trong tương lai sẽ tiến hành ổn định việc cải tạo khu làng thành thị và nhà cũ hư hỏng, tăng tốc xây dựng dự án an ninh "dây sống" cơ sở hạ tầng đô thị, tập trung thúc đẩy việc cập nhật đường ống cũ như khí đốt, nước cấp thoát, sưởi ấm. Theo ước tính của Ủy ban Phát triển và Cải cách Quốc gia, trong năm năm tới toàn quốc cần cải tạo khoảng 600.000 km các loại đường ống đô thị, tổng đầu tư khoảng 4 nghìn tỷ yuan. Vòng "cập nhật đô thị" này sẽ thúc đẩy nhu cầu theo giai đoạn của thép螺纹钢, tấm dày trung bình và ống thép hàn, mặc dù cường độ sử dụng thép trên đầu tư đơn vị của nó thấp hơn đáng kể so với các dự án mới. + +Đồng thời, chuyển đổi xanh và thấp cacbon đã mở ra một con đường mới cho thép xây dựng. Bộ Xây dựng và Phát triển đô thị yêu cầu rằng đến năm 2025, tất cả các công trình xây dựng mới trong đô thị sẽ hoàn toàn thực hiện tiêu chuẩn xây dựng xanh, và thúc đẩy sử dụng các công trình năng lượng cực thấp. Do có lợi thế xây dựng nhanh, chống động đất mạnh, có thể tái sử dụng, phát thải cacbon thấp, cấu trúc thép đang trở thành载体 quan trọng của xây dựng xanh. Từ năm 2020 đến 2024, lượng xử lý cấu trúc thép của Trung Quốc đã tăng từ 89 triệu tấn lên 109 triệu tấn, tăng trung bình hàng năm 4,5%; Hiệp hội Cấu trúc Thép Trung Quốc dự đoán nó sẽ đạt 140 triệu tấn vào năm 2025 và dự kiến sẽ vượt quá 200 triệu tấn vào năm 2035. + +## II. Đổi hướng trọng tâm nhu cầu: Từ mở rộng toàn diện sang tập trung cụm đô thị + +Trong bối cảnh tổng lượng giảm, phân bố khu vực của nhu cầu thép xây dựng cũng đã có những thay đổi đáng kể. Mô hình xây dựng "nở hoa khắp nơi" trong quá khứ đang được thay thế bằng "tập trung trọng điểm". Hội nghị nhấn mạnh cần phát triển cụm đô thị hiện đại và khu đô thị với mẫu hình tập trung và mạng lưới, có nghĩa là đầu tư cơ sở hạ tầng trong tương lai sẽ tập trung cao độ vào các khu vực lõi như khu vực Bắc Kinh-Tiên Tân-Hà Bắc, châu Động sông Yangtze, Vùng vịnh Quảng Đông-Hồng Kông-Macao. + +Đường sắt liên đô thị, trung tâm giao thông综 hợp, cầu bắc sông bắc biển, đường hầm dài và các dự án lớn khác sẽ trở thành các场景主力 sử dụng thép. Tuy nhiên, ở các thành phố cấp ba, bốn và khu vực quận huyện có sự rời bỏ dân số liên tục, không gian tăng trưởng nhu cầu thép xây dựng bị hạn chế, thậm chí có thể đối mặt với thu hẹp lâu dài. + +Thay đổi sâu sắc hơn là ngành chế biến đang thay thế ngành xây dựng, trở thành lĩnh vực tiêu thụ thép lớn nhất. Theo ước tính, tỷ lệ thép xây dựng trong tổng lượng tiêu thụ thép đã giảm từ 63,74% vào năm 2020 xuống 56,99% vào năm 2024, và tỷ lệ thép sử dụng cho bất động sản thậm chí giảm mạnh từ 39,79% xuống 23,67%; trong cùng thời kỳ, tỷ lệ thép sử dụng cho ngành chế biến đã tăng từ 36,26% lên 43,01%. + +Sự chuyển đổi cấu trúc này đã được xác nhận ở đầu sản xuất nhà máy thép: năm 2024, sản lượng thép螺纹钢 và dây thép của các doanh nghiệp thép chính đã giảm lần lượt 13,84% và 1,73% so với cùng kỳ; trong khi sản lượng tấm rộng mỏng热轧 và tấm rộng mỏng冷轧 tăng lần lượt 3,14% và 1,95%, và tốc độ tăng của tấm thép điện (dải) và các loại冷轧 của nó lên tới 7,75% và 5,41% lần lượt. Cấu trúc sản phẩm đang đẩy nhanh thiên vị về tấm có giá trị gia tăng cao. + +## III. Nâng cấp ngành: Hợp tác thúc đẩy công nghệ, xanh và tối ưu hóa sản lượng + +Những thay đổi sâu sắc ở phía nhu cầu đang ép ngành thép tăng tốc nâng cấp ở nhiều chiều. + +Thứ nhất, sản phẩm cao cấp. Đối diện với chuyển đổi nâng cấp ngành chế biến, các nhà máy thép đang tăng cung cấp vật liệu xe ô tô năng lượng tái tạo như thép chịu lực cao, thép silic, tấm mạ kẽm; để đáp ứng cú sóng lắp đặt năng lượng tái tạo như风电,光伏, năng suất các loại đặc biệt như tấm dày trung bình, thép压力容器, thép hợp kim chống ăn mòn tiếp tục mở rộng; đồng thời, phù hợp với xu hướng nhẹ và thông minh, phát triển các sản phẩm chức năng như tấm tàu chính xác cao, thép không gỉ dùng cho gia dụng. Trong lĩnh vực xây dựng, vật liệu xây dựng xanh như thép chịu lực cao chống động đất, thép cấu trúc chống ăn mòn cũng trở thành trọng tâm nghiên cứu phát triển. + +Thứ hai, tăng tốc chuyển đổi xanh và thấp cacbon. Đến cuối tháng 7 năm 2025, toàn quốc đã có 147 doanh nghiệp thép, khoảng 600 triệu tấn năng suất thép thô hoàn thành cải tạo phát thải siêu thấp toàn quy trình, chiếm tỷ lệ năng suất tổng tiếp tục tăng. Mục tiêu ngành là đạt được hơn 80% năng suất tuân thủ vào cuối năm 2025, và nội bộ hóa chi phí bảo vệ môi trường đã trở thành một phần quan trọng của năng lực cạnh tranh của doanh nghiệp. + +Thứ ba, rút lui có thứ tự năng suất lạc hậu. Đối mặt với thực tế đầu tư bất động sản vẫn ở mức giảm âm hai chữ số, cấp chính sách tiếp tục tăng cường định hướng "phản内卷". Ủy ban Tài chính và Kinh tế Trung ương một lần nữa nhấn mạnh thúc đẩy rút lui năng suất kém hiệu quả vào đầu tháng 7, và trong tương lai có thể thay thế các giao dịch chỉ số năng suất truyền thống bằng cấu trúc lại liên合, nghiêm cấm mua bán năng suất, từ根本 cải thiện mối quan hệ cung cầu của ngành, nâng cao hiệu quả phân bổ nguồn lực. + +## Kết luận + +Các tín hiệu phát ra từ Hội nghị Công tác Thành phố Trung ương cho thấy rõ ràng: Ngành thép Trung Quốc đã chính thức bước vào giai đoạn phát triển mới "tối ưu hóa tồn kho, nâng cao chất lượng". Tổng lượng nhu cầu thép xây dựng giảm không thể đảo ngược, nhưng các cơ hội cấu trúc như cập nhật đô thị, xây dựng xanh, cơ sở hạ tầng cụm đô thị vẫn đáng kể; trong khi sự nổi lên của tiêu thụ thép trong ngành chế biến cung cấp động cơ tăng trưởng bền vững hơn cho ngành. + +Trong bối cảnh này, chỉ có các doanh nghiệp chủ động điều chỉnh cấu trúc sản phẩm, tăng tốc chuyển đổi xanh và thông minh, quyết tâm loại bỏ năng suất lạc hậu mới có thể giành được lợi thế trong vòng sắp xếp lại mới. Tương lai của ngành thép không còn phụ thuộc vào "sản xuất bao nhiêu" mà là vào "sản xuất gì" và "làm thế nào để sản xuất". Việc nâng cấp ngành được thúc đẩy bởi thay đổi nhu cầu này đang viết nên chương mới phát triển chất lượng cao của thép Trung Quốc. \ No newline at end of file diff --git a/blogs/vi/2.mdx b/blogs/vi/2.mdx new file mode 100644 index 0000000..3c2d12a --- /dev/null +++ b/blogs/vi/2.mdx @@ -0,0 +1,84 @@ +--- +title: Ý nghĩa lớn lao của Dự án sông Yarlung Zangbo đối với ngành thép +visible: published +# visible: draft/invisible/published (published is default) +pin: pin +slug: /2 +--- + +Tại vùng nội địa cao nguyên Qinghai-Tibet, tại khu uốn cong lớn của sông Yarlung Zangbo, một dự án thủy điện siêu lớn được gọi là "Dự án Thế kỷ"正拉开帷幕——đây là dự án thủy điện hạ lưu sông Yarlung Zangbo (gọi tắt là "Dự án Yarlung" hoặc "Dự án Yaxi") với tổng đầu tư lên đến 1,2 nghìn tỷ yuan và tổng công suất lắp đặt từ 55 triệu đến 60 triệu kilowatt. Là dự án cơ sở hạ tầng thủy điện lớn nhất trong lịch sử loài người, sản lượng điện hàng năm của nó dự kiến đạt 200 tỷ đến 300 tỷ kilowatt-giờ, khoảng 3 lần dự án Tam Hiệp. Dự án này sẽ không chỉ tái cấu trúc mô hình năng lượng quốc gia và hỗ trợ chiến lược "hai carbon" mà còn深刻影响轨迹 phát triển ngành thép Trung Quốc. + +Ngày 27 tháng 8 năm 2025, tại Lễ hội Kỹ thuật Ứng dụng Thép Siêu Tốc Trung Quốc lần thứ 7, Ông Triệu Phát Trung, Phó Thư ký Tổng hội Doanh nghiệp Thép Đặc biệt Trung Quốc, đã phát biểu bài báo với chủ đề "Dự án Yarlung và Cơ hội Mới Phát triển Ngành Thép——Phân tích Nhu cầu Thép và Thép Đặc biệt", giải thích hệ thống các cơ hội lịch sử và thách thức cấu trúc mà dự án mang lại cho ngành thép. + +## I. Quy mô không tiền lệ: Nhu cầu thép lớn nhất trong lịch sử + +Theo ước tính, lượng thép sử dụng cho xây dựng chính của Dự án Yarlung dự kiến đạt 4 triệu đến 6 triệu tấn; nếu bao gồm các dự án phụ trợ như truyền điện, giao thông, giải quyết định cư người dân, tổng lượng thép sử dụng có thể vượt quá 8 triệu tấn——10 đến 13 lần dự án Tam Hiệp (590.000 tấn). Quan trọng hơn, nhu cầu này không được phóng thích trong một thời gian ngắn mà xuyên suốt khoảng 15 năm建设期, trung bình ổn định hàng năm từ 500.000 đến 800.000 tấn, cung cấp hỗ trợ thị trường lâu dài, có thể dự đoán cho ngành thép. + +Từ góc độ cấu trúc sản phẩm, nhu cầu thép thể hiện mô hình double-drive "dựa trên thông thường, thép đặc biệt là yếu tố thiết yếu": + +- Vật liệu xây dựng thông thường cho các dự án cốt lõi (2,8 triệu–3,3 triệu tấn): bao gồm thép螺纹钢, thép H, thép I, tấm dày trung bình, v.v., dùng cho khung xương đập, đường hầm dẫn nước, đường xây dựng và các cơ sở hạ tầng khác; +- Thép đặc biệt cho các cơ sở truyền điện (281.000 tấn): như thép góc chịu thời tiết, tấm thép mạ kẽm, dùng cho tháp UHV và cấu trúc thép nhà máy biến áp; +- Thép đặc biệt cho机组 thủy điện (270.000 tấn): bao gồm thép không gỉ chống ăn mòn như 06Cr13Ni4Mo, tấm thép silic có hướng cảm từ cao, thép cấu trúc chịu lực cao, dùng cho bánh van thủy轮机,定子 và rotor máy phát điện và các thành phần cốt lõi khác. + +Điều đáng lưu ý là các doanh nghiệp thép miền Tây dự kiến sẽ trở thành nhà cung cấp chính thép thông thường nhờ lợi thế địa lý. Ví dụ, Công ty TNHH Thép Bayi Tập đoàn Baowu chiếm thị phần 85% trên thị trường thép cho các dự án trọng điểm ở Tây Tạng, dựa trên đường sắt Lanxin và Tây Tạng, chi phí vận chuyển của nó thấp hơn 30% so với các doanh nghiệp miền Đông, lợi thế "cung cấp địa phương" rõ ràng. + +## II. Phát hành theo giai đoạn: Nhịp nhu cầu yêu cầu phản hồi linh hoạt + +Ông Triệu Phát Trung chỉ ra rằng nhu cầu thép của Dự án Yarlung có các đặc điểm rõ ràng theo giai đoạn, đặt ra yêu cầu mới về "linh hoạt" trong tổ chức sản xuất và phối hợp chuỗi cung ứng của các doanh nghiệp thép: + +- Giai đoạn đầu (2025–2027): chủ yếu là xây dựng dân dụng, với vật liệu xây dựng thông thường như thép螺纹钢 và thép I chiếm hơn 60%; đồng thời thúc đẩy tăng 12% nhu cầu thép cho máy móc xây dựng, và đơn đặt hàng thiết bị khoan đường hầm cao nguyên bùng nổ. +- Giai đoạn giữa (2028–2030): bước vào giai đoạn đỉnh cao của đổ đập và sản xuất机组, nhu cầu tấm dày trung bình hàng năm có thể vượt quá 5 triệu tấn, tấm thép silic tăng 150.000 tấn mỗi năm, và thép cầu chịu lực cao như Q500E có không gian giá cao mở rộng——đây là "kỳ 창 golden" cho các doanh nghiệp thép đặc biệt. +- Giai đoạn sau (từ năm 2031): tập trung vào xây dựng đường dây truyền điện UHV, thép góc chịu thời tiết, thép mạ kẽm và tấm thép silic có hướng (80.000 tấn mới thêm mỗi năm) trở thành lực chính, nhấn mạnh "kết nối chính xác" và "phản hồi tức thời". + +Đường cong nhu cầu "trước nặng, sau chính xác, từ phổ thông đến đặc biệt" này ép các doanh nghiệp thép chuyển từ "sản xuất theo lô" sang "sản xuất tùy chỉnh theo nhu cầu", và nâng cấp từ "giao sản phẩm" lên "cung cấp giải pháp". + +## III. Môi trường cực đoan: Ép buộc cải thiện toàn diện hiệu suất vật liệu + +Dự án Yarlung nằm trên Cao nguyên Qinghai-Tibet với độ cao hơn 4.000 mét, đối mặt với nhiều thách thức như nhiệt độ thấp cực đoan, tia cực tím mạnh, nước có độ ăn mòn cao, khu vực động đất hoạt động, và vận chuyển bị giới hạn, đặt ra các yêu cầu gần như khắc nghiệt về hiệu suất thép: + +- Độ bền nhiệt độ thấp: cần đáp ứng năng lượng va chạm -40℃ ≥27J, thúc đẩy ứng dụng công nghệ microalloy hóa Ni-Cr-Mo-V; +- Khả năng chống lão hóa tia cực tím: độ dày lớp mạ kẽm ≥85μm, hỗ trợ hệ thống lớp phủ chống tia cực tím mới; +- Khả năng chống ăn mòn: đối diện với nước có ion clorua cao, oxy hòa tan cao, thép không gỉ kép chứa nitơ trở thành vật liệu khóa; +- Khả năng chống động đất và chống rách: cần thép hướng Z ở các khu vực đứt gãy địa chất, sử dụng quy trình quen trực tuyến + tái nhiệt để cải thiện khả năng chống rách lớp; +- Nhẹ nhẹ và khả năng hàn: bị giới hạn bởi khả năng vận chuyển cao nguyên (chỉ 500 tấn mỗi ngày), yêu cầu độ bền cao hơn, trọng lượng nhẹ hơn (giảm trọng lượng 30%), và chỉ số nhạy cảm rạn hàn Pcm ≤0.30. + +Trong bối cảnh này, thép đặc biệt chiếm tỷ lệ cao đến 40%, vượt xa các dự án lớn thông thường. Đây không chỉ là thử thách về vật liệu mà còn là "kiểm tra áp lực" về năng lực kỹ thuật của ngành thép Trung Quốc. + +## IV. Lãnh đạo công nghệ: Từ "theo kịp" đến "đua kịp" thậm chí "đầu tư"" + +Dự án Yarlung正成为 "phiên bản thử" và "máy tăng tốc" cho thép cao cấp trong nước. Một số thành tựu mang tính cột mốc đã nổi bật: + +- Thép thủy điện HY950CF do Tập đoàn Thép Hunan phát triển, độ bền ch屈服 ≥960MPa, năng lượng va chạm -40℃ >50J, thành công giành được 70% thị phần ống thép áp lực (khoảng 150.000 tấn), đạt được giảm trọng lượng 30%; +- Thép Thái克服 được khó khăn về tỷ lệ熔敷 hàn trên cao nguyên, độc quyền cung cấp tất cả 93 tấn thép van thủy轮 (37.000 tấn); +- Thép Bảo sẽ cung cấp 140.000 tấn thép silic hiệu suất cao, hỗ trợ nhu cầu lõi máy phát điện 233.000 tấn. + +Những bước đột phá này đánh dấu rằng công nghệ thép đặc biệt của Trung Quốc đã đạt mức độ tiên tiến quốc tế, và có khả năng tự chủ bảo đảm các dự án lớn quốc gia. + +## V. Hợp tác ngành: Đẩy nhanh nâng cấp xanh và thông minh toàn chuỗi + +Ông Triệu Phát Trung nhấn mạnh rằng Dự án Yarlung không chỉ nên được coi là "dự án mua thép", mà còn là điểm tựa chiến lược để đẩy mạnh phát triển chất lượng cao ngành thép. Ông đề xuất: + +- Các doanh nghiệp thép miền Tây có thể dựa trên lợi thế địa lý, mở rộng năng suất các loại thép phù hợp với cao nguyên, bố trí dự án quy trình ngắn lò điện; +- Các doanh nghiệp miền Đông có thể tham gia chuỗi cung ứng miền Tây thông qua hình thức hợp doanh xây nhà máy; +- Xây dựng hệ thống thu hồi "thép phế liệu đặc biệt cho Dự án Yarlung", kết hợp với nguồn năng lượng xanh của dự án, xây dựng mô hình循環低碳; +- Tổng hội ngành lãnh đạo tổng hợp các nguồn lực toàn chuỗi như nghiên cứu phát triển, sản xuất, kiểm tra, logistics, v.v., cung cấp dịch vụ chính xác. + +Tổng hội Doanh nghiệp Thép Đặc biệt Trung Quốc đã xếp Dự án Yarlung vào hàng đầu, do lãnh đạo tổng hội trực tiếp triển khai, nhằm凝tụ lực lượng ngành, bảo vệ thực hiện chiến lược quốc gia với sức mạnh thép đặc biệt. + +## VI. Lời kêu gọi hành động: Các doanh nghiệp thép phải chủ động hành động + +Đối mặt với cơ hội một đời một lần này, Ông Triệu Phát Trung đã phát ra lời kêu gọi đến toàn ngành: + +- Thành lập nhóm làm việc đặc biệt: thiết lập "Nhóm Hướng dẫn Thép Dự án Yarlung" để lập kế hoạch hệ thống về công nghệ, năng suất và chiến lược thị trường; +- Kết nối sâu với chủ đầu tư và nhà thầu: chủ động liên hệ với các đơn vị chính như Tập đoàn Yarlung Trung Quốc, Điện Lực Xây dựng Trung Quốc, Đông Phương Điện Lực, Tập đoàn Đatang, Tây Tạng Thiên Lộ, v.v.; +- Củng cố nghiên cứu phát triển công nghệ: tăng tốc phát triển thép chịu lực cao, chống ăn mòn, nhẹ nhẹ cho các điều kiện làm việc đặc biệt như cao nguyên, lạnh, ăn mòn cao; +- Xây dựng chuỗi cung ứng độc quyền: thực hiện theo dõi và bảo đảm chất lượng toàn quy trình từ quặng sắt đến thép hoàn thiện; +- Xây dựng vùng cao cấp thương hiệu: lấy Dự án Yarlung làm nền tảng cốt lõi để trình diễn sức mạnh kỹ thuật, nuôi dưỡng nhân tài cao cấp, và thiết lập tiêu chuẩn ngành. + +## Kết luận: Đúc nên "xương sống thép", viết bài trả lời thực thụ + +"Khung xương thép của Dự án Yarlung đang chờ chúng ta hoàn thiện với công nghệ tinh vi hơn và bảo vệ với thái độ nghiêm ngặt hơn." Ông Triệu Phát Trung đã gửi lời nhắn chân thành ở cuối bài báo. + +Đối với ngành thép, Dự án Yarlung không chỉ là một danh sách đơn đặt hàng khổng lồ mà còn là một trận chiến lịch sử liên quan đến chuyển đổi nâng cấp, bước nhảy công nghệ và tái cấu trúc năng lực cạnh tranh toàn cầu. Mỗi lần hoàn thiện tiêu chuẩn thép là để xây dựng hàng đáy an toàn cho dự án thế kỷ; mỗi lần đột phá khối lượng kỹ thuật là để注入 động lực mới vào sản phẩm Trung Quốc. + +Trên b平顶 giới của thế giới này, người thép Trung Quốc sẽ cùng nhau đúc nên xương sống thép của "dự án siêu lớn" này với sản phẩm vững chắc, công nghệ mạnh mẽ và hành động ổn định, và viết bài trả lời thực thụ thuộc về ngành công nghiệp Trung Quốc trong thời đại mới. \ No newline at end of file diff --git a/blogs/vi/3.mdx b/blogs/vi/3.mdx new file mode 100644 index 0000000..6aa1b5f --- /dev/null +++ b/blogs/vi/3.mdx @@ -0,0 +1,53 @@ +--- +title: Phát triển ngành thép Trung Quốc cần cấp thiết chuyển đổi cao cấp +visible: published +# visible: draft/invisible/published (published is default) +pin: pin +slug: /3 +--- + +Khi năm kết thúc đến gần, ngành thép正经历 một giai đoạn quan trọng của điều chỉnh cấu trúc và chuyển đổi. Mặc dù sản lượng tổng thể duy trì ổn định tương đối, nhưng nhu cầu tiếp tục chịu áp lực, mức tồn kho tăng đáng kể, và nền tảng lợi nhuận của ngành vẫn còn mong manh. Tuy nhiên, giữa những thách thức, một số doanh nghiệp đã đạt được tăng trưởng ngược xu hướng thông qua các biện pháp như tập trung vào sản phẩm cao cấp, tối ưu hóa cấu trúc, giảm chi phí và tăng hiệu quả, cung cấp một con đường mới cho phát triển chất lượng cao của ngành. + +## (I) Nhu cầu giảm, áp lực tồn kho xuất hiện + +Theo dữ liệu mới nhất từ Hội nghị Thép và Sắt Trung Quốc (CISA), lượng tiêu thụ表观 của thép trong ba quý đầu năm 2025 ở Trung Quốc là 649 triệu tấn, giảm 5,7% so với cùng kỳ năm ngoái. Xu hướng này không phải là biến động ngắn hạn mà là sự thay đổi liên tục kể từ "Kế hoạch năm thứ 14"—kể từ đỉnh tiêu thụ 1,04 tỷ tấn vào năm 2020, lượng tiêu thụ表观 thép Trung Quốc đã giảm liên tục trong năm năm, xuống còn 890 triệu tấn vào năm 2024, giảm tích lũy 150 triệu tấn, với mức giảm trung bình hàng năm 3,8%. + +Đồng thời, áp lực tồn kho đang dần tích tụ. Báo cáo nghiên cứu của Công ty Chứng khoán Cinda cho thấy, tính đến ngày 28 tháng 11 năm 2025, tồn kho xã hội của năm loại thép chính đạt 10,073 triệu tấn, tăng đáng kể 27,82% so với cùng kỳ; tồn kho nhà máy là 3,935 triệu tấn, tăng 2,11% so với cùng kỳ. Dữ liệu từ CISA cho thấy, vào giữa tháng 11, tồn kho thép của các doanh nghiệp thép được thống kê trọng điểm là 15,61 triệu tấn, tăng 3,24 triệu tấn so với đầu năm, tăng 26,3%, phản ánh sự không khớp giai đoạn giữa nhu cầu cuối yếu và nhịp sản xuất. + +## (II) Sản lượng ổn định với điều chỉnh, phân hóa cấu trúc gia tăng + +Từ phía sản xuất, ngành thép nói chung đang hoạt động ổn định. Vào giữa tháng 11 năm 2025, sản lượng trung bình hàng ngày của thép thô của các doanh nghiệp thép được thống kê trọng điểm là 1,943 triệu tấn, tăng nhẹ 0,9% so với tháng trước; sản lượng trung bình hàng ngày của thép là 1,924 triệu tấn, tăng 2,1% so với tháng trước. Nhưng nhìn ngược lại tháng 10, sản lượng thép thô toàn quốc là 72 triệu tấn, giảm 12,1% so với cùng kỳ, và sản lượng tích lũy từ tháng 1 đến tháng 10 là 818 triệu tấn, giảm 3,9% so với cùng kỳ. Điều này chỉ ra rằng dưới sự dẫn dắt của chính sách và quy định thị trường, xu hướng ngành chủ động giảm sản lượng vẫn còn tiếp tục. + +Điều đáng lưu ý là mặc dù sản lượng tổng thể đã giảm, nhưng tỷ lệ sản xuất và tiêu thụ của sản phẩm thép cao cấp đang tăng. Một số công ty niêm yết tiết lộ trong thông báo của họ rằng bằng cách tăng tỷ lệ thép đặc biệt và sản phẩm có giá trị gia tăng cao, họ đã hiệu quả chống đỡ tác động của sự giảm giá thép thông thường, và một số doanh nghiệp thậm chí đã chuyển từ thua lỗ sang lời. Theo dữ liệu báo cáo quý ba, trong số 46 công ty niêm yết thép đã tiết lộ业績, 31 công ty đạt được tăng trưởng lợi nhuận ròng so với cùng kỳ, chiếm tỷ lệ 67,39%. + +## (III) Lợi nhuận cải thiện nhưng nền tảng mong manh, ngành vẫn còn trong giai đoạn đau khổ chuyển đổi + +Ông Hạ Nông, Phó Chủ tịch CISA, chỉ ra tại Hội nghị Chuỗi Ngành Thép Trung Quốc lần thứ 21 rằng kể từ năm 2025, ngành nói chung đang hoạt động tốt, lợi nhuận cải thiện đáng kể so với cùng kỳ năm ngoái, và đạt được chuyển từ thua lỗ sang lời trong tháng 9. Tuy nhiên, xét theo xu hướng tháng so với tháng, mức lợi nhuận trong tháng 9 đã giảm mạnh so với tháng 8, chỉ ra rằng nền tảng lợi nhuận hiện tại vẫn chưa ổn định, và ngành vẫn còn trong giai đoạn "khôi phục yếu và phân hóa mạnh". + +Phán định này phù hợp cao với mô hình cung cầu hiện tại: một mặt, các lĩnh vực tiêu thụ thép truyền thống như xây dựng và bất động sản tiếp tục thu hẹp; mặt khác, các场境 ứng dụng mới như năng lượng tái tạo, chế biến cao cấp, và tòa nhà cấu trúc thép vẫn chưa hình thành hỗ trợ tăng lượng đủ. + +## (IV) Chuyển đổi nâng cấp là chìa khóa phá僵局, xanh và thông minh dẫn đầu tương lai + +Đối diện với giai đoạn phát triển mới "tối ưu hóa tồn kho, nâng cấp chất lượng", CISA nhấn mạnh rằng các doanh nghiệp thép phải kiên quyết thực hiện nguyên tắc kinh doanh "ba quyết định ba không" (tức là quyết định sản lượng dựa trên tiêu thụ, quyết định sản lượng dựa trên lợi nhuận, quyết định sản lượng dựa trên tiền mặt, không tự phát mở rộng sản lượng, không cạnh tranh ác tính, không hy sinh lợi ích dài hạn), củng cố tự kỷ luật ngành, và kiềm chế cạnh tranh "kiểu involution". + +Ông Hạ Nông đưa ra năm đề xuất cho phát triển chất lượng cao: + +1. Sâu rộng cải cách cấu trúc phía cung, kiểm soát tăng lượng, tối ưu hóa tồn kho, và thúc đẩy hợp nhất và sáp nhập; + +2. Thúc đẩy phát triển cao cấp, thông minh, xanh, và hội nhập, nâng cao năng lực cạnh tranh của toàn chuỗi ngành; + +3. Củng cố phát triển nguồn quặng sắt và sử dụng thép phế liệu để đảm bảo an ninh chuỗi ngành; + +4. Mở rộng các场境 ứng dụng mới như tòa nhà cấu trúc thép để kích hoạt nhu cầu tiềm năng; + +5. Nâng cao mức độ quốc tế hóa và tích hợp vào chuỗi ngành toàn cầu. + +Về chuyển đổi xanh, ngành đã đạt được tiến triển vững chắc. Đến cuối tháng 10 năm 2025, 219 doanh nghiệp thép trên toàn quốc đã hoàn thành hoặc một phần hoàn thành cải tạo phát thải siêu thấp, trong đó 165 doanh nghiệp đã đạt được cải tạo toàn quy trình, bao phủ khoảng 663 triệu tấn năng suất thép thô, với tổng đầu tư trên 310 tỷ yuan. Chi phí hoạt động bảo vệ môi trường trung bình mỗi tấn thép đã đạt 212,44 yuan, và xanh đã trở thành ràng buộc cứng và lợi thế mới cho phát triển ngành. + +Ngoài ra, xây dựng năng suất cực đỉnh cũng đang tăng tốc. Đến giữa tháng 11, 21 doanh nghiệp đã hoàn thành nghiệm thu năng suất cực đỉnh, 10 doanh nghiệp được công nhận là "doanh nghiệp minh họa chuẩn mực năng suất thực hành tốt nhất về hai carbon", và 11 doanh nghiệp khác đã thiết lập chuẩn mực năng suất trong các quy trình hoặc thiết bị chính. + +## (V) Tầm nhìn: Dữ liệu đẩy, mở rộng biên giới + +Ông Lý Đào Khôi, Hiệu trưởng Viện Tư tưởng Kinh tế Trung Quốc và Thực hành tại Đại học Thanh Hoa, đề nghị rằng các doanh nghiệp thép nên tăng tốc đổi mới kỹ thuật, chủ động bố trí lĩnh vực vật liệu liên quan đến năng lượng tái tạo, và mạnh mẽ thúc đẩy ứng dụng của tòa nhà cấu trúc thép. Ông cũng kêu gọi củng cố hợp tác chính doanh, thúc đẩy quốc tế hóa với nhịp độ ổn định hơn, và ép buộc cải cách nội bộ và nâng cao năng lực thông qua mở cửa cao cấp. + +Có thể dự đoán rằng dưới sự thúc đẩy của hai động lực là mục tiêu "hai carbon" và phát triển chất lượng cao, ngành thép正从 mở rộng quy mô转向 tạo giá trị. Những doanh nghiệp率先完成 nâng cấp sản phẩm, chuyển đổi xanh, và mở rộng thị trường sẽ giành được cơ hội trong vòng sắp xếp lại mới. Và toàn ngành sẽ tái cấu trúc năng lực cạnh tranh trong đau khổ và hướng tới một tương lai bền vững hơn. \ No newline at end of file diff --git a/blogs/zh/1.mdx b/blogs/zh/1.mdx index b7791aa..c748bf3 100644 --- a/blogs/zh/1.mdx +++ b/blogs/zh/1.mdx @@ -3,6 +3,7 @@ title: 钢铁行业发展新趋势 visible: published # visible: draft/invisible/published (published is default) pin: pin +slug: /1 --- 近年来,伴随我国城镇化进程进入中后期,建筑钢材需求正经历由“总量扩张”向“结构优化”的深刻转变。这一变化不仅重塑了钢材消费格局,也正在加速推动钢铁行业整体转型升级。 diff --git a/blogs/zh/2.mdx b/blogs/zh/2.mdx index 1b4a1c5..7d711e5 100644 --- a/blogs/zh/2.mdx +++ b/blogs/zh/2.mdx @@ -3,6 +3,7 @@ title: 雅江工程对钢铁行业的重大意义 visible: published # visible: draft/invisible/published (published is default) pin: pin +slug: /2 --- 在青藏高原腹地、雅鲁藏布江大拐弯处,一项被称作“世纪工程”的超级水电项目正拉开建设帷幕——这就是总投资达1.2万亿元、总装机容量5500万至6000万千瓦的雅鲁藏布江下游水电工程(简称“雅江工程”或“雅下工程”)。作为人类历史上规模最大的水电基建项目,其年均发电量预计达2000亿至3000亿千瓦时,约为三峡工程的3倍。这一工程不仅将重塑国家能源格局、支撑“双碳”战略,更将深刻影响中国钢铁工业的发展轨迹。 diff --git a/blogs/zh/3.mdx b/blogs/zh/3.mdx index 349aafd..75bd032 100644 --- a/blogs/zh/3.mdx +++ b/blogs/zh/3.mdx @@ -3,6 +3,7 @@ title: 中国钢铁行业发展亟需高端化 visible: published # visible: draft/invisible/published (published is default) pin: pin +slug: /3 --- 随着年末临近,钢铁行业正经历一场结构性调整与转型的关键阶段。尽管整体产量保持相对稳定,但需求端持续承压,库存水平明显攀升,行业盈利基础仍显脆弱。然而,在挑战之中,部分企业通过聚焦高端产品、优化结构、降本增效等举措,实现了业绩的逆势增长,为行业高质量发展提供了新路径。 diff --git a/components/ProductTabsClient.tsx b/components/ProductTabsClient.tsx new file mode 100644 index 0000000..93c740d --- /dev/null +++ b/components/ProductTabsClient.tsx @@ -0,0 +1,57 @@ +// @/components/ProductTabsClient.tsx (客户端组件) +'use client'; +import { useTranslations } from 'next-intl'; +import { useState } from 'react'; + +type ProductTabsClientProps = { + detail: string; + spec: string[]; + packaging: string; + locale: string; +}; + +// 纯客户端交互组件(仅处理标签页切换) +export default function ProductTabsClient({ detail, spec, packaging, locale }: ProductTabsClientProps) { + const [activeTab, setActiveTab] = useState('spec'); // 仅客户端使用状态 + const t = useTranslations("Product"); + + return ( +
+ {/* 标签栏 */} +
+ + + +
+ {/* 内容区 */} +
+ {activeTab === 'detail' &&
{detail || t('productNoDetail')}
} + {activeTab === 'spec' && ( + spec.length > 0 ? ( +
+ {spec.map((item, idx) =>
{item}
)} +
+ ) : ( +

{t('productNoSpec')}

+ ) + )} + {activeTab === 'packaging' &&
{packaging || t('productNoPacking')}
} +
+
+ ); +} \ No newline at end of file diff --git a/components/WebsiteLogo.tsx b/components/WebsiteLogo.tsx index d8319fe..7a87d82 100644 --- a/components/WebsiteLogo.tsx +++ b/components/WebsiteLogo.tsx @@ -28,7 +28,7 @@ const WebsiteLogo = ({ `https://${domain}/apple-touch-icon-precomposed.png`, `https://www.google.com/s2/favicons?domain=${domain}&sz=64`, `https://icons.duckduckgo.com/ip3/${domain}.ico`, - `https://${domain}/favicon.ico`, + `https://${domain}/favicon.png`, ]; useEffect(() => { diff --git a/components/home/index.tsx b/components/home/index.tsx index 7292f1d..ac73d29 100644 --- a/components/home/index.tsx +++ b/components/home/index.tsx @@ -41,9 +41,11 @@ export default function HomeComponent() { {/* 第三部分:按钮 */}
- + + +
@@ -163,9 +165,11 @@ export default function HomeComponent() { {/* 了解更多按钮 */}
- + + +
{/* 产品中心 */} @@ -314,7 +318,7 @@ export default function HomeComponent() { {/* 电梯井道 */}
{t("applications.groups.group1.items.app1.alt")} @@ -326,7 +330,7 @@ export default function HomeComponent() { {/* 塔机制造 - 宽度为其他卡片的两倍 */}
{t("applications.groups.group1.items.app2.alt")} @@ -338,7 +342,7 @@ export default function HomeComponent() { {/* 工程机械 */}
{t("applications.groups.group1.items.app3.alt")} @@ -353,7 +357,7 @@ export default function HomeComponent() { {/* 高速护栏 - 宽度为其他卡片的两倍 */}
{t("applications.groups.group1.items.app4.alt")} @@ -365,7 +369,7 @@ export default function HomeComponent() { {/* 桥梁 */}
{t("applications.groups.group1.items.app5.alt")} @@ -377,7 +381,7 @@ export default function HomeComponent() { {/* 钢结构 */}
{t("applications.groups.group1.items.app6.alt")} @@ -395,7 +399,7 @@ export default function HomeComponent() { {/* 建筑工程 */}
{t("applications.groups.group2.items.app7.alt")} @@ -407,7 +411,7 @@ export default function HomeComponent() { {/* 水利水电 */}
{t("applications.groups.group2.items.app8.alt")} @@ -419,7 +423,7 @@ export default function HomeComponent() { {/* 轨道交通 */}
{t("applications.groups.group2.items.app9.alt")} @@ -434,7 +438,7 @@ export default function HomeComponent() { {/* 市政工程 */}
{t("applications.groups.group2.items.app10.alt")} @@ -446,7 +450,7 @@ export default function HomeComponent() { {/* 农业设施 */}
{t("applications.groups.group2.items.app11.alt")} @@ -458,7 +462,7 @@ export default function HomeComponent() { {/* 能源化工 */}
{t("applications.groups.group2.items.app12.alt")} diff --git a/config/site.ts b/config/site.ts index 6df675d..5493b3c 100644 --- a/config/site.ts +++ b/config/site.ts @@ -37,7 +37,7 @@ export const siteConfig: SiteConfig = { ], defaultNextTheme: 'system', // next-theme option: system | dark | light icons: { - icon: "/favicon.ico", + icon: "/favicon.png", shortcut: "/logo.png", apple: "/logo.png", // apple-touch-icon.png }, diff --git a/content/product/en/1.mdx b/content/product/en/1.mdx new file mode 100644 index 0000000..a7bafa6 --- /dev/null +++ b/content/product/en/1.mdx @@ -0,0 +1,15 @@ +--- +title: Hot-dip Galvanized Steel +model: DX51D/DX52D/DX53D/S220GD/S250GD/S280GD/S320GD/S320GD/S350GD +place: Jiaxiang Kelunpu Heavy Industry Co., Ltd. +publishedTime: 2023-08-01 +images: + - http://kelunpuzhonggong.com/upload/20251102082125.jpg +detail: Textured/Non-textured +spec: + - Nominal thickness: 0.6-6.0 + - Nominal width: 800-1250 + - Inner diameter of steel coil: 610 +packaging: Single coil +slug: 1 +--- \ No newline at end of file diff --git a/content/product/en/2.mdx b/content/product/en/2.mdx new file mode 100644 index 0000000..832a13c --- /dev/null +++ b/content/product/en/2.mdx @@ -0,0 +1,15 @@ +--- +title: Cold Rolled Steel +model: DC01/DC03/DC04 +place: Jiaxiang Kelunpu Heavy Industry Co., Ltd. +publishedTime: 2025-10-21 +images: + - http://kelunpuzhonggong.com/upload/20251021161717.jpg +detail: +spec: + - Nominal thickness: 0.16-3.0 + - Nominal width: 800-1250 + - Inner diameter of steel coil: 610 +packaging: +slug: 2 +--- \ No newline at end of file diff --git a/content/product/en/3.mdx b/content/product/en/3.mdx new file mode 100644 index 0000000..5a573f2 --- /dev/null +++ b/content/product/en/3.mdx @@ -0,0 +1,15 @@ +--- +title: Hot Rolled Steel +model: DC01/DC03/DC04 +place: Jiaxiang Kelunpu Heavy Industry Co., Ltd. +publishedTime: 2025-10-21 +images: + - http://kelunpuzhonggong.com/upload/20251021161717.jpg +detail: +spec: + - Nominal thickness: 0.16-3.0 + - Nominal width: 800-1250 + - Inner diameter of steel coil: 610 +packaging: +slug: 3 +--- \ No newline at end of file diff --git a/content/product/vi/1.mdx b/content/product/vi/1.mdx new file mode 100644 index 0000000..0cd891e --- /dev/null +++ b/content/product/vi/1.mdx @@ -0,0 +1,15 @@ +--- +title: Thép mạ kẽm nóng +model: DX51D/DX52D/DX53D/S220GD/S250GD/S280GD/S320GD/S320GD/S350GD +place: Công ty TNHH Công nghiệp Trọng Kelunpu Jiaxiang +publishedTime: 2023-08-01 +images: + - http://kelunpuzhonggong.com/upload/20251102082125.jpg +detail: Có kết cấu/Không kết cấu +spec: + - Độ dày danh nghĩa: 0.6-6.0 + - Chiều rộng danh nghĩa: 800-1250 + - Đường kính trong cuộn thép: 610 +packaging: Cuộn đơn +slug: 1 +--- \ No newline at end of file diff --git a/content/product/vi/2.mdx b/content/product/vi/2.mdx new file mode 100644 index 0000000..7e42a08 --- /dev/null +++ b/content/product/vi/2.mdx @@ -0,0 +1,15 @@ +--- +title: Thép lăn lạnh +model: DC01/DC03/DC04 +place: Công ty TNHH Công nghiệp Trọng Kelunpu Jiaxiang +publishedTime: 2025-10-21 +images: + - http://kelunpuzhonggong.com/upload/20251021161717.jpg +detail: +spec: + - Độ dày danh nghĩa: 0.16-3.0 + - Chiều rộng danh nghĩa: 800-1250 + - Đường kính trong cuộn thép: 610 +packaging: +slug: 2 +--- \ No newline at end of file diff --git a/content/product/vi/3.mdx b/content/product/vi/3.mdx new file mode 100644 index 0000000..08c11c5 --- /dev/null +++ b/content/product/vi/3.mdx @@ -0,0 +1,15 @@ +--- +title: Thép lăn nóng +model: DC01/DC03/DC04 +place: Công ty TNHH Công nghiệp Trọng Kelunpu Jiaxiang +publishedTime: 2025-10-21 +images: + - http://kelunpuzhonggong.com/upload/20251021161717.jpg +detail: +spec: + - Độ dày danh nghĩa: 0.16-3.0 + - Chiều rộng danh nghĩa: 800-1250 + - Đường kính trong cuộn thép: 610 +packaging: +slug: 3 +--- \ No newline at end of file diff --git a/content/product/zh/1.mdx b/content/product/zh/1.mdx new file mode 100644 index 0000000..9b3021b --- /dev/null +++ b/content/product/zh/1.mdx @@ -0,0 +1,15 @@ +--- +title: 无花镀锌 +model: DX51D/DX52D/DX53D/S220GD/S250GD/S280GD/S320GD/S320GD/S350GD +place: 嘉祥科伦普重工有限公司 +publishedTime: 2023-08-01 +images: + - http://kelunpuzhonggong.com/upload/20251102082125.jpg +detail: 毛化/无毛化 +spec: + - 公称厚度:0.6-6.0 + - 公称宽度:800-1250 + - 钢卷内径:610 +packaging: 单卷 +slug: 1 +--- \ No newline at end of file diff --git a/content/product/zh/2.mdx b/content/product/zh/2.mdx new file mode 100644 index 0000000..3014ae8 --- /dev/null +++ b/content/product/zh/2.mdx @@ -0,0 +1,15 @@ +--- +title: 冷轧 +model: DC01/DC03/DC04 +place: 嘉祥科伦普重工有限公司 +publishedTime: 2025-10-21 +images: + - http://kelunpuzhonggong.com/upload/20251021161717.jpg +detail: +spec: + - 公称厚度:0.16-3.0 + - 公称宽度:800-1250 + - 钢卷内径:610 +packaging: +slug: 2 +--- \ No newline at end of file diff --git a/content/product/zh/3.mdx b/content/product/zh/3.mdx new file mode 100644 index 0000000..ec0ca55 --- /dev/null +++ b/content/product/zh/3.mdx @@ -0,0 +1,15 @@ +--- +title: 热轧 +model: DC01/DC03/DC04 +place: 嘉祥科伦普重工有限公司 +publishedTime: 2025-10-21 +images: + - http://kelunpuzhonggong.com/upload/20251021161717.jpg +detail: +spec: + - 公称厚度:0.16-3.0 + - 公称宽度:800-1250 + - 钢卷内径:610 +packaging: +slug: 3 +--- \ No newline at end of file diff --git a/content/product/zh/4.mdx b/content/product/zh/4.mdx new file mode 100644 index 0000000..ec0ca55 --- /dev/null +++ b/content/product/zh/4.mdx @@ -0,0 +1,15 @@ +--- +title: 热轧 +model: DC01/DC03/DC04 +place: 嘉祥科伦普重工有限公司 +publishedTime: 2025-10-21 +images: + - http://kelunpuzhonggong.com/upload/20251021161717.jpg +detail: +spec: + - 公称厚度:0.16-3.0 + - 公称宽度:800-1250 + - 钢卷内径:610 +packaging: +slug: 3 +--- \ No newline at end of file diff --git a/i18n/messages/en.json b/i18n/messages/en.json index 117f676..58ad484 100644 --- a/i18n/messages/en.json +++ b/i18n/messages/en.json @@ -8,11 +8,11 @@ "Header": { "links": [ { - "name": "Home", + "name": "Homepage", "href": "/" }, { - "name": "About Fuan De", + "name": "About Jufeng Steel", "href": "/about", "children": [ { @@ -24,7 +24,7 @@ "href": "/about?section=culture" }, { - "name": "Production Bases", + "name": "Production Base", "href": "/about?section=base" }, { @@ -32,7 +32,7 @@ "href": "/about?section=organization" }, { - "name": "Awards & Certifications", + "name": "Honors and Qualifications", "href": "/about?section=awards" }, { @@ -42,7 +42,7 @@ ] }, { - "name": "Products", + "name": "Product Center", "href": "/product" }, { @@ -66,7 +66,7 @@ ] }, "Footer": { - "Copyright": "All Rights Reserved © {year} {name}.", + "Copyright": "Copyright © {year} {name} All Rights Reserved.", "PrivacyPolicy": "Privacy Policy", "TermsOfService": "Terms of Service", "Links": { @@ -75,57 +75,54 @@ "title": "About Us", "links": [ { - "href": "/about?section=company", + "href": "/en/about?section=company", "name": "Company Profile", "useA": true }, { - "href": "/about?section=culture", + "href": "/en/about?section=culture", "name": "Corporate Culture", "useA": true }, { - "href": "/about?section=base", - "name": "Production Bases", + "href": "/en/about?section=base", + "name": "Production Base", "useA": true }, { - "href": "/about?section=organization", + "href": "/en/about?section=organization", "name": "Organizational Structure", "useA": true }, { - "href": "/about?section=awards", - "name": "Awards & Certifications", + "href": "/en/about?section=awards", + "name": "Honors and Qualifications", "useA": true }, { - "href": "/about?section=history", + "href": "/en/about?section=history", "name": "Development History", "useA": true } ] }, { - "title": "Open Source Projects", + "title": "News Center", "links": [ { - "href": "https://github.com/weijunext/nextjs-starter", - "name": "FUANDE TRADE", - "rel": "noopener noreferrer nofollow", - "target": "_blank" + "href": "/en/blog?category=announce", + "name": "Announcements", + "useA": true }, { - "href": "https://github.com/weijunext/landing-page-boilerplate", - "name": "Landing Page Boilerplate", - "rel": "noopener noreferrer nofollow", - "target": "_blank" + "href": "/en/blog?category=news", + "name": "News", + "useA": true }, { - "href": "https://github.com/weijunext/weekly-boilerplate", - "name": "Blog Boilerplate", - "rel": "noopener noreferrer nofollow", - "target": "_blank" + "href": "/en/blog?category=event", + "name": "Events", + "useA": true } ] }, @@ -158,33 +155,33 @@ "title": "Subscribe to Our Newsletter", "description": "Get the latest Next.js news and tutorials", "defaultErrorMessage": "Please enter a valid email address", - "successMessage": "Subscription Successful", - "errorMessage": "Subscription Failed", + "successMessage": "Subscription successful", + "errorMessage": "Subscription failed", "errorMessage2": "Subscription failed, please try again later", "subscribe": "Subscribe", - "subscribing": "Subscribing...", - "subscribed": "Subscription successful! Thank you for your interest." + "subscribing": "Subscribing", + "subscribed": "Subscribed successfully! Thank you for your attention." } }, "Home": { - "title": "FUANDE TRADE", - "tagLine": "Next.js Multilingual Starter Template", - "description": "Next.js 16 starter template with built-in multilingual support to help you quickly build global websites. Clean, efficient, ready-to-use, with a fully optimized SEO infrastructure.", + "title": "Jufeng Steel", + "tagLine": "Jufeng Steel Official Website", + "description": "Jufeng Steel Official Website", "carousel": "Carousel", - "company_video": "Company Video", + "company_video": "Corporate Video", "company": { - "title": "Tianjin Youfa Steel Pipe Group Co., Ltd.", - "description": "Youfa Group is a large enterprise group integrating the production and sales of various products such as straight seam welded round pipes (including hot-dip galvanizing), straight seam welded square and rectangular pipes (including hot-dip galvanizing), steel-plastic composite pipes, stainless steel pipes and fittings, spiral welded pipes (including socket and anti-corrosion processing), hot-dip galvanized seamless pipes, oil pipelines, pipe fittings, insulated pipelines, plastic pipes and fittings, disc buckle scaffolding, photovoltaic brackets and ground piles, etc., with two brands of 'Youfa' and 'Zhengjin'. It has formed 10 production bases in Tianjin, Tangshan, Hebei, Handan, Hebei, Cangzhou, Hebei, Hancheng, Shaanxi, Liyang, Jiangsu, Huludao, Liaoning, Yuxi, Yunnan, Linquan, Anhui, and Panshi, Jilin, and is currently building a production base in Chengdu, Sichuan.", + "title": "Jufeng Iron and Steel Co., Ltd.", + "description": "Jufeng Iron and Steel Co., Ltd. is a key project in Shandong Province, one of the key projects in Jining City, and also an important project for the product structure adjustment of Kelunpu. The project adopted various construction schemes such as foreign technical general responsibility, overall introduction of key equipment, a la carte integration, domestic technical assembly, independent innovation, and introduction of single equipment, ensuring advanced technology and talent training, and ensuring the project reaches production capacity and efficiency after commissioning. Kelunpu Cold Rolling Heavy Industry Co., Ltd. has a designed annual output of 1.5 million tons, and can provide customers with various products such as hot-rolled pickling, hot-rolled galvanizing, cold-hardened, batch annealing, cold-rolled galvanizing, aluminum-zinc alloy, zinc-aluminum alloy, zinc-aluminum-magnesium, chromium plating, etc. Products cover Northeast, North China, East China, South China and other regions.", "button": "Learn More" }, "stats": { "card1": { "number": "5", - "title": "National Green Products" + "title": "National-Level Green Products" }, "card2": { "number": "3+", - "title": "National Green Factories" + "title": "National-Level Green Factories" }, "card3": { "number": "7", @@ -201,15 +198,18 @@ "items": { "news1": { "date": "2025/11/17", - "title": "Nuclear Fusion Zone, Intelligent Future, Youfa Group Appears at 202..." + "title": "New Development Trends in the Steel Industry", + "link": "/blog/1" }, "news2": { "date": "2025/11/17", - "title": "Hand in Hand to Climb New Industry Peaks, Youfa Group Was Invited to Attend..." + "title": "The Great Significance of the Yajiang Project for the Steel Industry", + "link": "/blog/2" }, "news3": { "date": "2025/09/20", - "title": "Youfa Group Signed Strategic Cooperation with Zhongchengtou Construction Engineering Group..." + "title": "The Development of China's Steel Industry Urgently Needs High-Endization", + "link": "/blog/3" } } }, @@ -217,105 +217,105 @@ "title": "Product Center", "list": { "product1": { - "name": "Straight Seam High Frequency Welded Round Pipes (Including Hot-dip Galvanizing)", - "image": "/placeholder.svg", - "alt": "Straight Seam High Frequency Welded Round Pipes" + "name": "Cold-Rolled Coil", + "image": "http://kelunpuzhonggong.com/upload/20251021161717.jpg", + "alt": "Cold-Rolled Coil" }, "product2": { - "name": "Square Welded Steel Pipes (Including Hot-dip Galvanizing)", - "image": "/placeholder.svg", - "alt": "Square Welded Steel Pipes" + "name": "Cold-Hardened Coil", + "image": "http://kelunpuzhonggong.com/upload/20251023102339.jpg", + "alt": "Cold-Hardened Coil" }, "product3": { - "name": "Steel-plastic Composite Pipes", - "image": "/placeholder.svg", - "alt": "Steel-plastic Composite Pipes" + "name": "Spangle-Free Galvanized Coil", + "image": "http://kelunpuzhonggong.com/upload/20251102082125.jpg", + "alt": "Spangle-Free Galvanized Coil" }, "product4": { - "name": "Pipeline Connectors", - "image": "/placeholder.svg", - "alt": "Pipeline Connectors" + "name": "Cold-Rolled Hot-Dip Galvanized (Zn-Al-Mg) Steel Strip", + "image": "http://kelunpuzhonggong.com/upload/20250318141215854.jpg", + "alt": "Cold-Rolled Hot-Dip Galvanized (Zn-Al-Mg) Steel Strip" }, "product5": { - "name": "Disc Buckle Scaffolding", - "image": "/placeholder.svg", - "alt": "Disc Buckle Scaffolding" + "name": "Continuous Hot-Dip Aluminized Zinc Steel Strip", + "image": "http://kelunpuzhonggong.com/upload/20250318141215385.jpg", + "alt": "Continuous Hot-Dip Aluminized Zinc Steel Strip" }, "product6": { - "name": "Stainless Steel Pipes and Fittings", - "image": "/placeholder.svg", - "alt": "Stainless Steel Pipes and Fittings" + "name": "Zn-Al-Mg High-Speed Rail Noise Panel", + "image": "http://kelunpuzhonggong.com/upload/20250318141214984.jpg", + "alt": "Zn-Al-Mg High-Speed Rail Noise Panel" } } }, "applications": { - "title": "Application Areas", + "title": "Application Fields", "groups": { "group1": { "items": { "app1": { - "name": "Elevator Shaft", - "image": "/placeholder.svg", - "alt": "Elevator Shaft" + "name": "Agricultural Machinery Parts", + "image": "http://kelunpuzhonggong.com/upload/20250318141728923.jpg", + "alt": "Agricultural Machinery Parts" }, "app2": { - "name": "Tower Crane Manufacturing", - "image": "/placeholder.svg", - "alt": "Tower Crane Manufacturing" + "name": "Car Door", + "image": "http://kelunpuzhonggong.com/upload/20250318141728646.jpg", + "alt": "Car Door" }, "app3": { - "name": "Construction Machinery", - "image": "/placeholder.svg", - "alt": "Construction Machinery" + "name": "Alloy Structural Steel Household Appliances", + "image": "http://kelunpuzhonggong.com/upload/20250318141603429.jpg", + "alt": "Alloy Structural Steel Household Appliances" }, "app4": { - "name": "Highway Guardrails", - "image": "/placeholder.svg", - "alt": "Highway Guardrails" + "name": "Alloy Structural Steel Automobiles", + "image": "http://kelunpuzhonggong.com/upload/20250318141603160.jpg", + "alt": "Alloy Structural Steel Automobiles" }, "app5": { - "name": "Bridges", - "image": "/placeholder.svg", - "alt": "Bridges" + "name": "Electrical Appliance Shell", + "image": "http://kelunpuzhonggong.com/upload/20250318141424880.jpg", + "alt": "Electrical Appliance Shell" }, "app6": { - "name": "Steel Structures", - "image": "/placeholder.svg", - "alt": "Steel Structures" + "name": "Aluminized Zinc Corrugated Board", + "image": "http://kelunpuzhonggong.com/upload/20250318140406472.jpg", + "alt": "Aluminized Zinc Corrugated Board" } } }, "group2": { "items": { "app7": { - "name": "Construction Engineering", - "image": "/placeholder.svg", - "alt": "Construction Engineering" + "name": "Zn-Al-Mg Photovoltaic Bracket", + "image": "http://kelunpuzhonggong.com/upload/20250318141214591.jpg", + "alt": "Zn-Al-Mg Photovoltaic Bracket" }, "app8": { - "name": "Water Conservancy and Hydropower", - "image": "/placeholder.svg", - "alt": "Water Conservancy and Hydropower" + "name": "Chromium-Plated Tank", + "image": "http://kelunpuzhonggong.com/upload/20250318140617337.jpg", + "alt": "Chromium-Plated Tank" }, "app9": { - "name": "Rail Transit", - "image": "/placeholder.svg", - "alt": "Rail Transit" + "name": "Chromium-Plated Bottle Cap", + "image": "http://kelunpuzhonggong.com/upload/20250318140617054.jpg", + "alt": "Chromium-Plated Bottle Cap" }, "app10": { - "name": "Municipal Engineering", - "image": "/placeholder.svg", - "alt": "Municipal Engineering" + "name": "Chromium-Plated Paint Bucket Cover", + "image": "http://kelunpuzhonggong.com/upload/20250318140616639.jpg", + "alt": "Chromium-Plated Paint Bucket Cover" }, "app11": { - "name": "Agricultural Facilities", - "image": "/placeholder.svg", - "alt": "Agricultural Facilities" + "name": "Aluminized Zinc Paint Bucket", + "image": "http://kelunpuzhonggong.com/upload/20250318140406163.jpg", + "alt": "Aluminized Zinc Paint Bucket" }, "app12": { - "name": "Energy and Chemical Industry", - "image": "/placeholder.svg", - "alt": "Energy and Chemical Industry" + "name": "Hot-Dip Galvanized Highway Guardrail Plate", + "image": "http://kelunpuzhonggong.com/upload/20250318140144026.jpg", + "alt": "Hot-Dip Galvanized Highway Guardrail Plate" } } } @@ -324,15 +324,34 @@ }, "Blog": { "title": "News Center", - "description": "Latest updates, product releases, and industry news from Fuan De" + "description": "Latest updates, product upgrades, and industry news of Jufeng Steel" }, "Product": { "title": "Product Center", - "description": "Latest products, feature introductions, and user guides from Fuan De" + "description": "Latest products, function introductions, and usage guides of Jufeng Steel", + "detailTitle": "Product Display", + "productModel": "Product Model", + "productPlace": "Product Origin", + "productPublishedTime": "Release Time", + "productDetail": "Detailed Information", + "productNoDetail": "No detailed information available", + "productSpec": "Specifications & Parameters", + "productNoSpec": "No specifications & parameters available", + "productPacking": "Packaging", + "productNoPacking": "No packaging information available", + "breadcrumb": { + "home": "Home", + "product": "Product Center" + }, + "pagination": { + "previous": "Previous Page", + "next": "Next Page" + }, + "learnMore": "Learn More" }, "About": { - "title": "About Fuan De", - "description": "Learn more about Fuan De" + "title": "About Jufeng Steel", + "description": "About Jufeng Steel" }, "TermsOfService": { "title": "Terms of Service", diff --git a/i18n/messages/vi.json b/i18n/messages/vi.json index be45c63..de9c114 100644 --- a/i18n/messages/vi.json +++ b/i18n/messages/vi.json @@ -1,64 +1,64 @@ { "LanguageDetection": { - "title": "Gợi Ý Ngôn Ngữ", - "description": "Phát hiện ngôn ngữ trình duyệt của bạn khác với ngôn ngữ hiện tại. Bạn có thể chuyển đổi ngôn ngữ bất kỳ lúc nào.", + "title": "Lời đề xuất ngôn ngữ", + "description": "Phát hiện ngôn ngữ trình duyệt của bạn khác với ngôn ngữ hiện tại. Bạn có thể đổi ngôn ngữ bất cứ lúc nào.", "countdown": "Sẽ đóng sau {countdown} giây", "switchTo": "Chuyển sang" }, "Header": { "links": [ { - "name": "Trang Chủ", + "name": "Trang chủ", "href": "/" }, { - "name": "Giới Thiệu Fuan De", + "name": "Giới thiệu Jufeng Steel", "href": "/about", "children": [ { - "name": "Giới Thiệu Công Ty", + "name": "Tổng quan công ty", "href": "/about?section=company" }, { - "name": "Văn Hóa Công Ty", + "name": "Văn hóa doanh nghiệp", "href": "/about?section=culture" }, { - "name": "Khu Vực Sản Xuất", + "name": "Cơ sở sản xuất", "href": "/about?section=base" }, { - "name": "Cấu Trúc Tổ Chức", + "name": "Cơ cấu tổ chức", "href": "/about?section=organization" }, { - "name": "Giải thưởng & Chứng Chỉ", + "name": "Danh hiệu và chứng chỉ", "href": "/about?section=awards" }, { - "name": "Lịch Sử Phát Triển", + "name": "Lịch sử phát triển", "href": "/about?section=history" } ] }, { - "name": "Sản Phẩm", + "name": "Trung tâm sản phẩm", "href": "/product" }, { - "name": "Trung Tâm Tin Tức", + "name": "Trung tâm tin tức", "href": "/blog", "children": [ { - "name": "Thông Báo", + "name": "Thông báo", "href": "/blog?category=announce" }, { - "name": "Tin Tức", + "name": "Tin tức", "href": "/blog?category=news" }, { - "name": "Sự Kiện", + "name": "Sự kiện", "href": "/blog?category=event" } ] @@ -66,71 +66,68 @@ ] }, "Footer": { - "Copyright": "Tất Cả Quyền Riêng Tư © {year} {name}.", - "PrivacyPolicy": "Chính Sách Bảo Mật", - "TermsOfService": "Điều Khoản Dịch Vụ", + "Copyright": "Bản quyền © {year} {name} Tất cả các quyền được bảo lưu.", + "PrivacyPolicy": "Chính sách bảo mật", + "TermsOfService": "Điều khoản dịch vụ", "Links": { "groups": [ { - "title": "Về Chúng Tôi", + "title": "Về chúng tôi", "links": [ { "href": "/vi/about?section=company", - "name": "Giới Thiệu Công Ty", + "name": "Tổng quan công ty", "useA": true }, { "href": "/vi/about?section=culture", - "name": "Văn Hóa Công Ty", + "name": "Văn hóa doanh nghiệp", "useA": true }, { "href": "/vi/about?section=base", - "name": "Khu Vực Sản Xuất", + "name": "Cơ sở sản xuất", "useA": true }, { "href": "/vi/about?section=organization", - "name": "Cấu Trúc Tổ Chức", + "name": "Cơ cấu tổ chức", "useA": true }, { "href": "/vi/about?section=awards", - "name": "Giải thưởng & Chứng Chỉ", + "name": "Danh hiệu và chứng chỉ", "useA": true }, { "href": "/vi/about?section=history", - "name": "Lịch Sử Phát Triển", + "name": "Lịch sử phát triển", "useA": true } ] }, { - "title": "Dự Án Mã Mở", + "title": "Trung tâm tin tức", "links": [ { - "href": "https://github.com/weijunext/nextjs-starter", - "name": "福安德外贸", - "rel": "noopener noreferrer nofollow", - "target": "_blank" + "href": "/vi/blog?category=announce", + "name": "Thông báo", + "useA": true }, { - "href": "https://github.com/weijunext/landing-page-boilerplate", - "name": "Mẫu Trang Đầu Tiên", - "rel": "noopener noreferrer nofollow", - "target": "_blank" + "href": "/vi/blog?category=news", + "name": "Tin tức", + "useA": true }, { - "href": "https://github.com/weijunext/weekly-boilerplate", - "name": "Mẫu Blog", - "rel": "noopener noreferrer nofollow", - "target": "_blank" + "href": "/vi/blog?category=event", + "name": "Sự kiện", + "useA": true } ] }, { - "title": "Sản Phẩm Khác", + "title": "Sản phẩm khác", "links": [ { "href": "https://nexty.dev/", @@ -140,7 +137,7 @@ }, { "href": "https://ogimage.click/", - "name": "Trình Tạo Hình Ảnh OG", + "name": "Trình tạo Hình ảnh OG", "rel": "noopener noreferrer", "target": "_blank" }, @@ -155,167 +152,170 @@ ] }, "Newsletter": { - "title": "Đăng Ký Nhận Email Của Chúng Tôi", - "description": "Nhận tin tức và hướng dẫn Next.js mới nhất", + "title": "Đăng ký nhận email của chúng tôi", + "description": "Nhận thông tin và hướng dẫn Next.js mới nhất", "defaultErrorMessage": "Vui lòng nhập địa chỉ email hợp lệ", - "successMessage": "Đăng Ký Thành Công", - "errorMessage": "Đăng Ký Thất Bại", + "successMessage": "Đăng ký thành công", + "errorMessage": "Đăng ký thất bại", "errorMessage2": "Đăng ký thất bại, vui lòng thử lại sau", - "subscribe": "Đăng Ký", - "subscribing": "Đang đăng ký...", - "subscribed": "Đăng ký thành công! Cảm ơn bạn đã quan tâm." + "subscribe": "Đăng ký", + "subscribing": "Đang đăng ký", + "subscribed": "Đăng ký thành công! Cảm ơn sự quan tâm của bạn." } }, "Home": { - "title": "福安德外贸", - "tagLine": "Mẫu Khởi Động Nhiều Ngôn Ngữ Next.js", - "description": "Mẫu khởi động Next.js 16 với hỗ trợ đa ngôn ngữ tích hợp sẵn, giúp bạn nhanh chóng xây dựng website toàn cầu. Sạch sẽ, hiệu quả, sẵn sàng sử dụng, với cơ sở hạ tầng SEO được tối ưu hóa hoàn toàn.", - "carousel": "Slider Ảnh", - "company_video": "Video Công Ty", + "title": "Jufeng Steel", + "tagLine": "Trang web chính thức của Jufeng Steel", + "description": "Trang web chính thức của Jufeng Steel", + "carousel": "Trình chiếu vòng", + "company_video": "Video doanh nghiệp", "company": { - "title": "Công ty TNHH Cong Ty Hoa Sen Thép Youfa Tianjin", - "description": "Tập đoàn Youfa là một tập đoàn doanh nghiệp lớn kết hợp sản xuất và bán các sản phẩm khác nhau như ống tròn hàn nối thẳng (bao gồm sơn kẽm nóng), ống vuông và hình chữ nhật hàn nối thẳng (bao gồm sơn kẽm nóng), ống复合 thép-nhựa, ống thép không gỉ và phụ kiện, ống xoắn hàn (bao gồm ổ cắm và xử lý chống ăn mòn), ống không seem sơn kẽm nóng, đường ống dầu, phụ kiện đường ống, đường ống cách nhiệt, ống nhựa và phụ kiện, giàn giáo đ扣 đĩa, giá đỡ quang điện và cọc mặt đất, v.v., với hai thương hiệu 'Youfa' và 'Zhengjin'. Nó đã hình thành 10 cơ sở sản xuất ở Tianjin, Tangshan, Hebei, Handan, Hebei, Cangzhou, Hebei, Hancheng, Shaanxi, Liyang, Jiangsu, Huludao, Liaoning, Yuxi, Yunnan, Linquan, Anhui, và Panshi, Jilin, và hiện đang xây dựng cơ sở sản xuất ở Chengdu, Sichuan.", - "button": "Tìm Hiểu Thêm" + "title": "Công ty Cổ phần Thép Cự Phong", + "description": "Công ty Cổ phần Thép Cự Phong là dự án trọng điểm của Tỉnh Sơn Đông, một trong các dự án trọng điểm của Thành phố Cơ Ninh, đồng thời cũng là dự án quan trọng cho việc điều chỉnh cấu trúc sản phẩm của Kelunpu. Dự án đã áp dụng nhiều phương án xây dựng như trách nhiệm tổng thể về kỹ thuật của bên ngoài, nhập khẩu toàn bộ thiết bị chính, tích hợp tùy chọn, tổng thành kỹ thuật trong nước, đổi mới tự chủ, nhập khẩu thiết bị đơn lẻ, đảm bảo công nghệ tiên tiến và đào tạo nhân tài, đảm bảo dự án đạt năng suất và hiệu quả sau khi đưa vào sản xuất. Công ty TNHH Công nghiệp Trọng Cán Lạnh Kelunpu có năng suất thiết kế 1,5 triệu tấn/năm, có thể cung cấp cho khách hàng các loại sản phẩm như thép cán nóng ngâm axit, thép cán nóng mạ kẽm, thép cứng lạnh, ủ nhiệt theo lô, thép cán lạnh mạ kẽm, hợp kim nhôm-kẽm, hợp kim kẽm-nhôm, kẽm-nhôm-đông, mạ crom, v.v. Sản phẩm phủ các khu vực Đông Bắc, Bắc Trung Quốc, Đông Bắc, Nam Trung Quốc và các khu vực khác.", + "button": "Tìm hiểu thêm" }, "stats": { "card1": { "number": "5", - "title": "Sản Phẩm Xanh Quốc Gia" + "title": "Sản phẩm Xanh cấp Quốc gia" }, "card2": { "number": "3+", - "title": "Nhà Máy Xanh Quốc Gia" + "title": "Xưởng sản xuất Xanh cấp Quốc gia" }, "card3": { "number": "7", - "title": "Phòng Thí Nghiệm CNAS (Được Nhận Thực Quốc Gia)" + "title": "Phòng thí nghiệm CNAS (Chấp nhận Quốc gia)" }, "card4": { "number": "10", - "title": "Cơ Sở Sản Xuất" + "title": "Cơ sở sản xuất" } }, "news": { - "title": "Tin Tức Mới Nhất", - "button": "Tìm Hiểu Thêm >", + "title": "Tin tức mới nhất", + "button": "Tìm hiểu thêm >", "items": { "news1": { "date": "2025/11/17", - "title": "Khu Vực Hợp Nhôm, Tương Lai Trí Tuệ, Tập Đoàn Youfa Xuất Hiện Tại 202..." + "title": "Xu hướng phát triển mới của ngành thép", + "link": "/blog/1" }, "news2": { "date": "2025/11/17", - "title": "Cùng Tay Leo Đỉnh Mới Của Ngành, Tập Đoàn Youfa Được Mời Tham Dự..." + "title": "Ý nghĩa quan trọng của Dự án Yajiang đối với ngành thép", + "link": "/blog/2" }, "news3": { "date": "2025/09/20", - "title": "Tập Đoàn Youfa Ký Hợp Đồng Hợp Tác Chiến Lược Với Tập Đoàn Công Nghiệp Trung Thành..." + "title": "Phát triển ngành thép Trung Quốc đòi hỏi sự cao cấp hóa", + "link": "/blog/3" } } }, "products": { - "title": "Trung Tâm Sản Phẩm", + "title": "Trung tâm sản phẩm", "list": { "product1": { - "name": "Ống Tròn Hàn Tần Số Cao Nối Thẳng (Bao Gồm Sơn Kẽm Nóng)", - "image": "/placeholder.svg", - "alt": "Ống Tròn Hàn Tần Số Cao" + "name": "Cuộn thép cán lạnh", + "image": "http://kelunpuzhonggong.com/upload/20251021161717.jpg", + "alt": "Cuộn thép cán lạnh" }, "product2": { - "name": "Ống Thép Vuông Hàn (Bao Gồm Sơn Kẽm Nóng)", - "image": "/placeholder.svg", - "alt": "Ống Thép Vuông Hàn" + "name": "Cuộn thép cứng lạnh", + "image": "http://kelunpuzhonggong.com/upload/20251023102339.jpg", + "alt": "Cuộn thép cứng lạnh" }, "product3": { - "name": "Ống复合 Thép-Nhựa", - "image": "/placeholder.svg", - "alt": "Ống复合 Thép-Nhựa" + "name": "Cuộn thép mạ kẽm không hoa", + "image": "http://kelunpuzhonggong.com/upload/20251102082125.jpg", + "alt": "Cuộn thép mạ kẽm không hoa" }, "product4": { - "name": "Phụ Kiện Đường Ống", - "image": "/placeholder.svg", - "alt": "Phụ Kiện Đường Ống" + "name": "Dải thép cán lạnh mạ kẽm nóng (Zn-Al-Mg)", + "image": "http://kelunpuzhonggong.com/upload/20250318141215854.jpg", + "alt": "Dải thép cán lạnh mạ kẽm nóng (Zn-Al-Mg)" }, "product5": { - "name": "Giàn Giáo Đ扣 Đĩa", - "image": "/placeholder.svg", - "alt": "Giàn Giáo Đ扣 Đĩa" + "name": "Dải thép mạ nhôm kẽm liên tục", + "image": "http://kelunpuzhonggong.com/upload/20250318141215385.jpg", + "alt": "Dải thép mạ nhôm kẽm liên tục" }, "product6": { - "name": "Ống Thép Không Gỉ Và Phụ Kiện", - "image": "/placeholder.svg", - "alt": "Ống Thép Không Gỉ" + "name": "Tấm chống ồn đường cao tốc bằng thép Zn-Al-Mg", + "image": "http://kelunpuzhonggong.com/upload/20250318141214984.jpg", + "alt": "Tấm chống ồn đường cao tốc bằng thép Zn-Al-Mg" } } }, "applications": { - "title": "Lĩnh Vực Ứng Dụng", + "title": "Lĩnh vực ứng dụng", "groups": { "group1": { "items": { "app1": { - "name": "Hầm Thang Máy", - "image": "/placeholder.svg", - "alt": "Hầm Thang Máy" + "name": "Phụ tùng máy móc nông nghiệp", + "image": "http://kelunpuzhonggong.com/upload/20250318141728923.jpg", + "alt": "Phụ tùng máy móc nông nghiệp" }, "app2": { - "name": "Sản Xuất Máy Cẩu Tháp", - "image": "/placeholder.svg", - "alt": "Sản Xuất Máy Cẩu Tháp" + "name": "Cửa ô tô", + "image": "http://kelunpuzhonggong.com/upload/20250318141728646.jpg", + "alt": "Cửa ô tô" }, "app3": { - "name": "Máy Móc Xây Dựng", - "image": "/placeholder.svg", - "alt": "Máy Móc Xây Dựng" + "name": "Thiết bị gia dụng bằng thép cấu trúc hợp kim", + "image": "http://kelunpuzhonggong.com/upload/20250318141603429.jpg", + "alt": "Thiết bị gia dụng bằng thép cấu trúc hợp kim" }, "app4": { - "name": "Hành Lang Bảo Vệ Đường Cao Tốc", - "image": "/placeholder.svg", - "alt": "Hành Lang Bảo Vệ" + "name": "Xe ô tô bằng thép cấu trúc hợp kim", + "image": "http://kelunpuzhonggong.com/upload/20250318141603160.jpg", + "alt": "Xe ô tô bằng thép cấu trúc hợp kim" }, "app5": { - "name": "Cầu Cáp", - "image": "/placeholder.svg", - "alt": "Cầu Cáp" + "name": "Vỏ thiết bị điện", + "image": "http://kelunpuzhonggong.com/upload/20250318141424880.jpg", + "alt": "Vỏ thiết bị điện" }, "app6": { - "name": "Cấu Trúc Thép", - "image": "/placeholder.svg", - "alt": "Cấu Trúc Thép" + "name": "Tấm sóng mạ nhôm kẽm", + "image": "http://kelunpuzhonggong.com/upload/20250318140406472.jpg", + "alt": "Tấm sóng mạ nhôm kẽm" } } }, "group2": { "items": { "app7": { - "name": "Kỹ Thuật Xây Dựng", - "image": "/placeholder.svg", - "alt": "Kỹ Thuật Xây Dựng" + "name": "Khung đỡ năng lượng mặt trời Zn-Al-Mg", + "image": "http://kelunpuzhonggong.com/upload/20250318141214591.jpg", + "alt": "Khung đỡ năng lượng mặt trời Zn-Al-Mg" }, "app8": { - "name": "Thủy Lợi Và Thủy Điện", - "image": "/placeholder.svg", - "alt": "Thủy Lợi Và Thủy Điện" + "name": "Bình mạ crom", + "image": "http://kelunpuzhonggong.com/upload/20250318140617337.jpg", + "alt": "Bình mạ crom" }, "app9": { - "name": "Giao Thông Đường Sắt", - "image": "/placeholder.svg", - "alt": "Giao Thông Đường Sắt" + "name": "Nắp chai mạ crom", + "image": "http://kelunpuzhonggong.com/upload/20250318140617054.jpg", + "alt": "Nắp chai mạ crom" }, "app10": { - "name": "Kỹ Thuật Thị Chính", - "image": "/placeholder.svg", - "alt": "Kỹ Thuật Thị Chính" + "name": "Nắp thùng sơn mạ crom", + "image": "http://kelunpuzhonggong.com/upload/20250318140616639.jpg", + "alt": "Nắp thùng sơn mạ crom" }, "app11": { - "name": "Cơ Sở Nông Nghiệp", - "image": "/placeholder.svg", - "alt": "Cơ Sở Nông Nghiệp" + "name": "Thùng sơn mạ nhôm kẽm", + "image": "http://kelunpuzhonggong.com/upload/20250318140406163.jpg", + "alt": "Thùng sơn mạ nhôm kẽm" }, "app12": { - "name": "Ngành Năng Lượng Và Hóa Chất", - "image": "/placeholder.svg", - "alt": "Ngành Năng Lượng" + "name": "Tấm lan can đường cao tốc mạ kẽm nóng", + "image": "http://kelunpuzhonggong.com/upload/20250318140144026.jpg", + "alt": "Tấm lan can đường cao tốc mạ kẽm nóng" } } } @@ -323,23 +323,42 @@ } }, "Blog": { - "title": "Trung Tâm Tin Tức", - "description": "Cập nhật mới nhất, phát hành sản phẩm và tin tức ngành từ Fuan De" + "title": "Trung tâm tin tức", + "description": "Cập nhật mới nhất, nâng cấp sản phẩm, tin tức ngành của Jufeng Steel" }, "Product": { - "title": "Trung Tâm Sản Phẩm", - "description": "Sản phẩm mới nhất, giới thiệu tính năng và hướng dẫn sử dụng từ Fuan De" + "title": "Trung tâm sản phẩm", + "description": "Sản phẩm mới nhất, giới thiệu chức năng, hướng dẫn sử dụng của Jufeng Steel", + "detailTitle": "Hiển thị sản phẩm", + "productModel": "Mã sản phẩm", + "productPlace": "Nguồn gốc sản phẩm", + "productPublishedTime": "Thời gian phát hành", + "productDetail": "Thông tin chi tiết", + "productNoDetail": "Không có thông tin chi tiết", + "productSpec": "Thông số kỹ thuật", + "productNoSpec": "Không có thông số kỹ thuật", + "productPacking": "Bao bì", + "productNoPacking": "Không có thông tin bao bì", + "breadcrumb": { + "home": "Trang chủ", + "product": "Trung tâm sản phẩm" + }, + "pagination": { + "previous": "Trang trước", + "next": "Trang sau" + }, + "learnMore": "Tìm hiểu thêm" }, "About": { - "title": "Giới Thiệu Fuan De", - "description": "Tìm hiểu thêm về Fuan De" + "title": "Giới thiệu Jufeng Steel", + "description": "Về Jufeng Steel" }, "TermsOfService": { - "title": "Điều Khoản Dịch Vụ", - "description": "Điều Khoản Dịch Vụ" + "title": "Điều khoản dịch vụ", + "description": "Điều khoản dịch vụ" }, "PrivacyPolicy": { - "title": "Chính Sách Bảo Mật", - "description": "Chính Sách Bảo Mật" + "title": "Chính sách bảo mật", + "description": "Chính sách bảo mật" } } \ No newline at end of file diff --git a/i18n/messages/zh.json b/i18n/messages/zh.json index 117598a..1be49dd 100644 --- a/i18n/messages/zh.json +++ b/i18n/messages/zh.json @@ -254,68 +254,68 @@ "group1": { "items": { "app1": { - "name": "电梯井道", - "image": "/placeholder.svg", - "alt": "电梯井道" + "name": "农机配件", + "image": "http://kelunpuzhonggong.com/upload/20250318141728923.jpg", + "alt": "农机配件" }, "app2": { - "name": "塔机制造", - "image": "/placeholder.svg", - "alt": "塔机制造" + "name": "汽车门", + "image": "http://kelunpuzhonggong.com/upload/20250318141728646.jpg", + "alt": "汽车门" }, "app3": { - "name": "工程机械", - "image": "/placeholder.svg", - "alt": "工程机械" + "name": "合金结构钢家电", + "image": "http://kelunpuzhonggong.com/upload/20250318141603429.jpg", + "alt": "合金结构钢家电" }, "app4": { - "name": "高速护栏", - "image": "/placeholder.svg", - "alt": "高速护栏" + "name": "合金结构钢汽车", + "image": "http://kelunpuzhonggong.com/upload/20250318141603160.jpg", + "alt": "合金结构钢汽车" }, "app5": { - "name": "桥梁", - "image": "/placeholder.svg", - "alt": "桥梁" + "name": "电器外壳", + "image": "http://kelunpuzhonggong.com/upload/20250318141424880.jpg", + "alt": "电器外壳" }, "app6": { - "name": "钢结构", - "image": "/placeholder.svg", - "alt": "钢结构" + "name": "镀铝锌瓦楞板", + "image": "http://kelunpuzhonggong.com/upload/20250318140406472.jpg", + "alt": "镀铝锌瓦楞板" } } }, "group2": { "items": { "app7": { - "name": "建筑工程", - "image": "/placeholder.svg", - "alt": "建筑工程" + "name": "锌铝镁光伏支架", + "image": "http://kelunpuzhonggong.com/upload/20250318141214591.jpg", + "alt": "锌铝镁光伏支架" }, "app8": { - "name": "水利水电", - "image": "/placeholder.svg", - "alt": "水利水电" + "name": "镀铬罐", + "image": "http://kelunpuzhonggong.com/upload/20250318140617337.jpg", + "alt": "镀铬罐" }, "app9": { - "name": "轨道交通", - "image": "/placeholder.svg", - "alt": "轨道交通" + "name": "镀铬瓶盖", + "image": "http://kelunpuzhonggong.com/upload/20250318140617054.jpg", + "alt": "镀铬瓶盖" }, "app10": { - "name": "市政工程", - "image": "/placeholder.svg", - "alt": "市政工程" + "name": "镀铬油漆桶盖", + "image": "http://kelunpuzhonggong.com/upload/20250318140616639.jpg", + "alt": "镀铬油漆桶盖" }, "app11": { - "name": "农业设施", - "image": "/placeholder.svg", - "alt": "农业设施" + "name": "镀铝锌油漆桶", + "image": "http://kelunpuzhonggong.com/upload/20250318140406163.jpg", + "alt": "镀铝锌油漆桶" }, "app12": { - "name": "能源化工", - "image": "/placeholder.svg", - "alt": "能源化工" + "name": "热镀锌高速护栏板", + "image": "http://kelunpuzhonggong.com/upload/20250318140144026.jpg", + "alt": "热镀锌高速护栏板" } } } @@ -328,7 +328,26 @@ }, "Product": { "title": "产品中心", - "description": "福安德最新产品,功能介绍,使用指南" + "description": "福安德最新产品,功能介绍,使用指南", + "detailTitle": "产品展示", + "productModel": "产品型号", + "productPlace": "产品产地", + "productPublishedTime": "发布时间", + "productDetail": "详细资料", + "productNoDetail": "暂无详细资料", + "productSpec": "规格参数", + "productNoSpec": "暂无规格参数", + "productPacking": "包装", + "productNoPacking": "暂无包装", + "breadcrumb": { + "home": "首页", + "product": "产品中心" + }, + "pagination": { + "previous": "上一页", + "next": "下一页" + }, + "learnMore": "了解更多" }, "About": { "title": "走进福安德", diff --git a/lib/getBlogs.ts b/lib/getBlogs.ts index 811d69e..357c4c8 100644 --- a/lib/getBlogs.ts +++ b/lib/getBlogs.ts @@ -1,90 +1,66 @@ import { DEFAULT_LOCALE } from '@/i18n/routing'; import { BlogPost } from '@/types/blog'; +import fs from 'fs'; +import matter from 'gray-matter'; +import path from 'path'; -export async function getPosts(locale: string = DEFAULT_LOCALE, category?: string): Promise<{ posts: BlogPost[], total: number }> { - const Id_Map: Record = { - 'announce': '1989174108560080897', - 'news': '1988814504336605185', - 'event': '1989174018231549954', +const POSTS_BATCH_SIZE = 10; + +export async function getPosts(locale: string = DEFAULT_LOCALE): Promise<{ posts: BlogPost[] }> { + const postsDirectory = path.join(process.cwd(), 'blogs', locale); + + // is directory exist + if (!fs.existsSync(postsDirectory)) { + return { posts: [] }; } - let url = 'http://49.232.154.205:18081/export/article/list?pageNum=1&pageSize=10&langCode=' + locale; - if (category) { - url += '&categoryId=' + Id_Map[category || 'announce'] - } + let filenames = await fs.promises.readdir(postsDirectory); + filenames = filenames.reverse(); - const response = await fetch(url); - const data = await response.json(); - const posts = data.rows.map((item: any) => { - return { - locale, // use locale parameter - title: item.title, - description: item.summary, - image: item.cover || '', - slug: item.articleId, - tags: '', - date: item.publishedTime, - // visible: data.visible || 'published', - pin: false, - content: item.content, - metadata: data, - } - - }) || []; - - // // is directory exist - // if (!fs.existsSync(postsDirectory)) { - // return { posts: [] }; - // } - - // let filenames = await fs.promises.readdir(postsDirectory); - // filenames = filenames.reverse(); - - // let allPosts: BlogPost[] = []; + let allPosts: BlogPost[] = []; // read file by batch - // for (let i = 0; i < filenames.length; i += POSTS_BATCH_SIZE) { - // const batchFilenames = filenames.slice(i, i + POSTS_BATCH_SIZE); + for (let i = 0; i < filenames.length; i += POSTS_BATCH_SIZE) { + const batchFilenames = filenames.slice(i, i + POSTS_BATCH_SIZE); - // const batchPosts: BlogPost[] = await Promise.all( - // batchFilenames.map(async (filename) => { - // const fullPath = path.join(postsDirectory, filename); - // const fileContents = await fs.promises.readFile(fullPath, 'utf8'); + const batchPosts: BlogPost[] = await Promise.all( + batchFilenames.map(async (filename) => { + const fullPath = path.join(postsDirectory, filename); + const fileContents = await fs.promises.readFile(fullPath, 'utf8'); - // const { data, content } = matter(fileContents); + const { data, content } = matter(fileContents); - // return { - // locale, // use locale parameter - // title: data.title, - // description: data.description, - // image: data.image || '', - // slug: data.slug, - // tags: data.tags, - // date: data.date, - // visible: data.visible || 'published', - // pin: data.pin || false, - // content, - // metadata: data, - // }; - // }) - // ); + return { + locale, // use locale parameter + title: data.title, + description: data.description, + image: data.image || '', + slug: data.slug, + tags: data.tags, + date: data.date, + visible: data.visible || 'published', + pin: data.pin || false, + content, + metadata: data, + }; + }) + ); - // allPosts.push(...batchPosts); - // } + allPosts.push(...batchPosts); + } // filter out non-published articles - // allPosts = allPosts.filter(post => post.visible === 'published'); + allPosts = allPosts.filter(post => post.visible === 'published'); // sort posts by pin and date - // allPosts = allPosts.sort((a, b) => { - // if (a.pin !== b.pin) { - // return (b.pin ? 1 : 0) - (a.pin ? 1 : 0); - // } - // return new Date(b.date).getTime() - new Date(a.date).getTime(); - // }); + allPosts = allPosts.sort((a, b) => { + if (a.pin !== b.pin) { + return (b.pin ? 1 : 0) - (a.pin ? 1 : 0); + } + return new Date(b.date).getTime() - new Date(a.date).getTime(); + }); return { - posts, - total: data.total, + posts: allPosts, }; } \ No newline at end of file diff --git a/lib/getProducts.ts b/lib/getProducts.ts new file mode 100644 index 0000000..b21dab4 --- /dev/null +++ b/lib/getProducts.ts @@ -0,0 +1,57 @@ +import { DEFAULT_LOCALE } from '@/i18n/routing'; +import { Product } from '@/types/product'; +import fs from 'fs'; +import matter from 'gray-matter'; +import path from 'path'; + +const POSTS_BATCH_SIZE = 10; + +export async function getProducts(locale: string = DEFAULT_LOCALE): Promise<{ products: Product[] }> { + const postsDirectory = path.join(process.cwd(), 'content', 'product', locale); + + // is directory exist + if (!fs.existsSync(postsDirectory)) { + return { products: [] }; + } + + let filenames = await fs.promises.readdir(postsDirectory); + filenames = filenames.reverse(); + + let allPosts: Product[] = []; + + // read file by batch + for (let i = 0; i < filenames.length; i += POSTS_BATCH_SIZE) { + const batchFilenames = filenames.slice(i, i + POSTS_BATCH_SIZE); + + const batchPosts: Product[] = await Promise.all( + batchFilenames.map(async (filename) => { + const fullPath = path.join(postsDirectory, filename); + const fileContents = await fs.promises.readFile(fullPath, 'utf8'); + + const { data, content } = matter(fileContents); + console.log(data); + + return { + locale, // use locale parameter + title: data.title, + model: data.model, + place: data.place, + publishedTime: data.publishedTime, + images: data.images || [], + detail: data.detail, + spec: data.spec || [], + packaging: data.packaging || '', + slug: data.slug || '', + content, + metadata: data, + }; + }) + ); + + allPosts.push(...batchPosts); + } + + return { + products: allPosts, + }; +} \ No newline at end of file diff --git a/proxy.ts b/proxy.ts index 82dbeef..a48b389 100644 --- a/proxy.ts +++ b/proxy.ts @@ -14,7 +14,7 @@ export const config = { // Enable redirects that add missing locales // (e.g. `/pathnames` -> `/en/pathnames`) - '/((?!api|_next|_vercel|.*\\.|favicon.ico).*)' + '/((?!api|_next|_vercel|.*\\.|favicon.png).*)' ] }; diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000..2270d8a Binary files /dev/null and b/public/favicon.png differ diff --git a/types/product.ts b/types/product.ts new file mode 100644 index 0000000..25b246b --- /dev/null +++ b/types/product.ts @@ -0,0 +1,12 @@ +export type Product = { + locale: string; + title: string; + model: string; + place: string; + publishedTime: Date; + images: string[]; + detail: string; + spec: string[]; + packaging: string; + slug: string; +} \ No newline at end of file