Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 17 additions & 20 deletions i18n/zh-CN/docusaurus-plugin-content-pages/news/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const NewsData = [
date: "2025-12-18",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-v5-1-released",
link: "/news/ivorysql-v5-1-released",
img: "/img/news/ivorysql-v5-1-released.png"
},
{
Expand All @@ -22,7 +22,7 @@ export const NewsData = [
date: "2025-11-25",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-v5-0-released",
link: "/news/ivorysql-v5-0-released",
img: "/img/news/ivorysql-v5-0-released.png"
},
{
Expand All @@ -31,7 +31,7 @@ export const NewsData = [
date: "2025-11-13",
category: "community",
categoryLabel: "社区动态",
link: "/zh-cn/news/ivorysql-ospp-2025",
link: "/news/ivorysql-ospp-2025",
img: "/img/news/ivorysql-ospp-2025.png"
},
{
Expand All @@ -40,7 +40,7 @@ export const NewsData = [
date: "2025-10-20",
category: "community",
categoryLabel: "社区动态",
link: "/zh-cn/news/detail-pg18-contributors",
link: "/news/detail-pg18-contributors",
img: "/img/news/detail-pg18-contributors.png"
},
{
Expand All @@ -49,7 +49,7 @@ export const NewsData = [
date: "2025-09-26",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-kylin-cert",
link: "/news/ivorysql-kylin-cert",
img: "/img/news/ivorysql-kylin-cert.png"
},
{
Expand All @@ -58,7 +58,7 @@ export const NewsData = [
date: "2025-09-17",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-deepin-cert",
link: "/news/ivorysql-deepin-cert",
img: "/img/news/ivorysql-deepin-cert.png"
},
{
Expand All @@ -67,7 +67,7 @@ export const NewsData = [
date: "2025-09-12",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-loongarch-cert",
link: "/news/ivorysql-loongarch-cert",
img: "/img/news/ivorysql-loongarch-cert.png"
},
{
Expand All @@ -76,7 +76,7 @@ export const NewsData = [
date: "2025-09-11",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-v4-6-released",
link: "/news/ivorysql-v4-6-released",
img: "/img/news/ivorysql-v4-6-released.png"
},
{
Expand All @@ -85,7 +85,7 @@ export const NewsData = [
date: "2025-08-04",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-navicat",
link: "/news/ivorysql-navicat",
img: "/img/news/ivorysql-navicat.png"
},
{
Expand All @@ -94,7 +94,7 @@ export const NewsData = [
date: "2025-07-15",
category: "community",
categoryLabel: "社区动态",
link: "/zh-cn/news/ivorysql-expert-advisory-committee",
link: "/news/ivorysql-expert-advisory-committee",
img: "/img/news/ivorysql-expert-advisory-committee.png"
},
{
Expand All @@ -103,7 +103,7 @@ export const NewsData = [
date: "2025-06-28",
category: "community",
categoryLabel: "社区动态",
link: "/zh-cn/news/ivorysql-ospp-students",
link: "/news/ivorysql-ospp-students",
img: "/img/news/ivorysql-ospp-students.png"
},
{
Expand All @@ -112,7 +112,7 @@ export const NewsData = [
date: "2025-06-05",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-v4-5-released",
link: "/news/ivorysql-v4-5-released",
img: "/img/news/ivorysql-v4-5-released.png"
},
{
Expand All @@ -121,7 +121,7 @@ export const NewsData = [
date: "2025-05-07",
category: "community",
categoryLabel: "社区动态",
link: "/zh-cn/news/ivorysql-pku-course",
link: "/news/ivorysql-pku-course",
img: "/img/news/ivorysql-pku-course.png"
},
{
Expand All @@ -130,7 +130,7 @@ export const NewsData = [
date: "2025-03-14",
category: "community",
categoryLabel: "社区动态",
link: "/zh-cn/news/ivorysql-deepseek-assistant",
link: "/news/ivorysql-deepseek-assistant",
img: "/img/news/ivorysql-deepseek-assistant.png"
},
{
Expand All @@ -139,7 +139,7 @@ export const NewsData = [
date: "2025-03-10",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-v4-4-released",
link: "/news/ivorysql-v4-4-released",
img: "/img/news/ivorysql-v4-4-released.png"
},
{
Expand All @@ -148,15 +148,15 @@ export const NewsData = [
date: "2025-01-13",
category: "product",
categoryLabel: "产品动态",
link: "/zh-cn/news/ivorysql-v4-2-released",
link: "/news/ivorysql-v4-2-released",
img: "/img/news/ivorysql-v4-2-released.png"
}
];

export const NewsCard = ({ news }) => {
const { title, desc, date, category, categoryLabel, link, img } = news;
return (
<a href={link} className="news-card" target="_blank" rel="noopener noreferrer">
<a href={useBaseUrl(link)} className="news-card">
<div className="news-img-wrapper">
<img src={useBaseUrl(img)} alt={title} loading="lazy" />
</div>
Expand Down Expand Up @@ -225,12 +225,10 @@ export const NewsList = () => {
.banner-text { position: relative; z-index: 2; max-width: 50%; }
.banner-text h1 { font-size: 3rem; font-weight: bold; margin: 0; color: white !important; }
.banner-text p { font-size: 1.2rem; opacity: 0.9; margin-top: 15px; color: white !important; }

.news-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; }
.filter-container { display: flex; gap: 12px; margin-bottom: 30px; }
.filter-btn { padding: 10px 24px; border-radius: 30px; border: 1px solid #f0f0f0; background: #fff; color: #666; cursor: pointer; transition: all 0.3s; font-weight: 500; }
.filter-btn.active { background: #7D52F4; color: #fff; border-color: #7D52F4; }

.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card { display: flex; background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; text-decoration: none !important; color: inherit !important; transition: all 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
Expand All @@ -246,7 +244,6 @@ export const NewsList = () => {
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 50px; }
.pager-btn { padding: 8px 20px; border-radius: 20px; border: 1px solid #7D52F4; color: #7D52F4; background: transparent; cursor: pointer; }
.pager-btn:disabled { color: #ccc; border-color: #eee; cursor: not-allowed; }

@media (max-width: 996px) {
.news-banner { min-height: 240px; padding: 2rem 1.5rem; background-position: bottom center; }
.banner-text { max-width: 100%; text-align: center; margin-bottom: 80px; }
Expand Down
38 changes: 18 additions & 20 deletions i18n/zh-CN/docusaurus-plugin-content-pages/webinars-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const EventsData = [
startTime: "2025-12-25",
endTime: "2025-12-25",
location: "线上活动",
link: "/zh-cn/webinars/event-202517",
link: "/webinars/event-202517",
img: "/img/events/event-202517.jpg"
},
{
Expand All @@ -22,7 +22,7 @@ export const EventsData = [
startTime: "2025-12-13",
endTime: "2025-12-13",
location: "线上活动",
link: "/zh-cn/webinars/event-202516",
link: "/webinars/event-202516",
img: "/img/events/event-202516.png"
},
{
Expand All @@ -31,7 +31,7 @@ export const EventsData = [
startTime: "2025-11-29",
endTime: "2025-11-29",
location: "线下活动",
link: "/zh-cn/webinars/event-202515",
link: "/webinars/event-202515",
img: "/img/events/event-202515.png"
},
{
Expand All @@ -40,7 +40,7 @@ export const EventsData = [
startTime: "2025-10-16",
endTime: "2025-10-16",
location: "线上活动",
link: "/zh-cn/webinars/event-202514",
link: "/webinars/event-202514",
img: "/img/events/event-202514.png"
},
{
Expand All @@ -49,7 +49,7 @@ export const EventsData = [
startTime: "2025-09-29",
endTime: "2025-09-29",
location: "线上活动",
link: "/zh-cn/webinars/event-202513",
link: "/webinars/event-202513",
img: "/img/events/event-202513.png"
},
{
Expand All @@ -58,7 +58,7 @@ export const EventsData = [
startTime: "2025-09-23",
endTime: "2026-12-23",
location: "线上活动",
link: "/zh-cn/webinars/event-202512",
link: "/webinars/event-202512",
img: "/img/events/event-202512.png"
},
{
Expand All @@ -67,7 +67,7 @@ export const EventsData = [
startTime: "2025-09-16",
endTime: "2026-02-28",
location: "线上活动",
link: "/zh-cn/webinars/event-202511",
link: "/webinars/event-202511",
img: "/img/events/event-202511.png"
},
{
Expand All @@ -76,7 +76,7 @@ export const EventsData = [
startTime: "2025-08-30",
endTime: "2025-08-30",
location: "线下活动",
link: "/zh-cn/webinars/event-202510",
link: "/webinars/event-202510",
img: "/img/events/event-202510.png"
},
{
Expand All @@ -85,7 +85,7 @@ export const EventsData = [
startTime: "2025-07-18",
endTime: "2025-07-18",
location: "线下活动",
link: "/zh-cn/webinars/event-202509",
link: "/webinars/event-202509",
img: "/img/events/event-202509.png"
},
{
Expand All @@ -94,7 +94,7 @@ export const EventsData = [
startTime: "2025-06-27",
endTime: "2025-06-28",
location: "线下活动",
link: "/zh-cn/webinars/event-202508",
link: "/webinars/event-202508",
img: "/img/events/event-202508.jpg"
},
{
Expand All @@ -103,7 +103,7 @@ export const EventsData = [
startTime: "2025-06-07",
endTime: "2025-06-07",
location: "线下活动",
link: "/zh-cn/webinars/event-202507",
link: "/webinars/event-202507",
img: "/img/events/event-202507.png"
},
{
Expand All @@ -112,7 +112,7 @@ export const EventsData = [
startTime: "2025-05-13",
endTime: "2025-05-16",
location: "线下活动",
link: "/zh-cn/webinars/event-202506",
link: "/webinars/event-202506",
img: "/img/events/event-202506.png"
},
{
Expand All @@ -121,7 +121,7 @@ export const EventsData = [
startTime: "2025-05-09",
endTime: "2025-06-09",
location: "线上活动",
link: "/zh-cn/webinars/event-202505",
link: "/webinars/event-202505",
img: "/img/events/event-202505.png"
},
{
Expand All @@ -130,7 +130,7 @@ export const EventsData = [
startTime: "2025-04-24",
endTime: "2025-04-24",
location: "线上活动",
link: "/zh-cn/webinars/event-202504",
link: "/webinars/event-202504",
img: "/img/events/event-202504.png"
},
{
Expand All @@ -139,7 +139,7 @@ export const EventsData = [
startTime: "2025-04-19",
endTime: "2025-04-19",
location: "线下活动",
link: "/zh-cn/webinars/event-202503",
link: "/webinars/event-202503",
img: "/img/events/event-202503.png"
},
{
Expand All @@ -148,7 +148,7 @@ export const EventsData = [
startTime: "2025-02-26",
endTime: "2026-12-31",
location: "线上活动",
link: "/zh-cn/webinars/event-202502",
link: "/webinars/event-202502",
img: "/img/events/event-202502.png"
},
{
Expand All @@ -157,7 +157,7 @@ export const EventsData = [
startTime: "2025-01-04",
endTime: "2025-01-04",
location: "线下活动",
link: "/zh-cn/webinars/event-202501",
link: "/webinars/event-202501",
img: "/img/events/event-202501.png"
}
];
Expand All @@ -177,10 +177,8 @@ export const EventCard = ({ event }) => {

return (
<a
href={link}
href={useBaseUrl(link)}
className="event-card"
target="_blank"
rel="noopener noreferrer"
>
<div className="card-img-wrapper">
<img src={useBaseUrl(img)} alt={title} loading="lazy" />
Expand Down
3 changes: 2 additions & 1 deletion src/pages/news/detail-pg18-contributors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ hide_table_of_contents: true
---

import useBaseUrl from '@docusaurus/useBaseUrl';
import Link from '@docusaurus/Link';

<style>{`
.detail-banner {
Expand Down Expand Up @@ -73,7 +74,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
<div className="detail-wrapper">
<div className="detail-main">
<div className="breadcrumb">
<a href="/news">News</a> <span>&gt;</span> <span>Community News</span>
<Link to="/news">News</Link> <span>&gt;</span> <span>Community News</span>
</div>

<div className="post-header">
Expand Down
5 changes: 3 additions & 2 deletions src/pages/news/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ hide_table_of_contents: true

import { useState, useCallback, useMemo } from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl';
import Link from '@docusaurus/Link';

export const NewsData = [
{
Expand Down Expand Up @@ -156,7 +157,7 @@ export const NewsData = [
export const NewsCard = ({ news }) => {
const { title, desc, date, category, categoryLabel, link, img } = news;
return (
<a href={link} className="news-card" target="_blank" rel="noopener noreferrer">
<Link to={link} className="news-card">
<div className="news-img-wrapper">
<img src={useBaseUrl(img)} alt={title} loading="lazy" />
</div>
Expand All @@ -168,7 +169,7 @@ export const NewsCard = ({ news }) => {
</div>
<div className="news-desc">{desc}</div>
</div>
</a>
</Link>
);
};

Expand Down
3 changes: 2 additions & 1 deletion src/pages/news/ivorysql-deepin-cert.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ hide_table_of_contents: true
---

import useBaseUrl from '@docusaurus/useBaseUrl';
import Link from '@docusaurus/Link';

<style>{`
.detail-banner {
Expand Down Expand Up @@ -73,7 +74,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
<div className="detail-wrapper">
<div className="detail-main">
<div className="breadcrumb">
<a href="/news">News</a> <span>&gt;</span> <span>Deepin Certification</span>
<Link to="/news">News</Link> <span>&gt;</span> <span>Community News</span>
</div>

<div className="post-header">
Expand Down
Loading