Separate Blog and Tech sections
Deploy Docusaurus Site / deploy (push) Successful in 26s

This commit is contained in:
2026-02-19 04:31:43 +00:00
parent 516972ab1a
commit bfc04ddfa4
8 changed files with 91 additions and 20 deletions
+17 -3
View File
@@ -36,9 +36,13 @@
.sectionTitle {
font-size: 1.5rem;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--ifm-color-emphasis-200);
margin-bottom: 0.25rem;
}
.sectionDesc {
font-size: 0.9rem;
color: var(--ifm-color-emphasis-600);
margin-bottom: 1rem;
}
/* Posts */
@@ -87,6 +91,16 @@
border-radius: 4px;
}
/* Coming Soon */
.comingSoon {
padding: 2rem;
text-align: center;
color: var(--ifm-color-emphasis-500);
background: var(--ifm-background-surface-color);
border: 1px dashed var(--ifm-color-emphasis-300);
border-radius: 8px;
}
/* Works */
.works {
display: grid;
+25 -7
View File
@@ -16,25 +16,26 @@ function HomepageHeader() {
);
}
function RecentPosts() {
function RecentTech() {
const posts = [
{
title: 'DGX Spark デュアル構成ガイド',
date: '2026-02-19',
tag: 'DGX Spark',
url: '/blog/dgx-spark-dual',
url: '/tech/dgx-spark-dual',
},
{
title: 'DGX SparkでMiniMax-M2.5-REAP-172Bを動かす',
date: '2026-02-18',
tag: 'DGX Spark',
url: '/blog/dgx-spark-minimax',
url: '/tech/dgx-spark-minimax',
},
];
return (
<section className={styles.section}>
<h2 className={styles.sectionTitle}>📝 </h2>
<h2 className={styles.sectionTitle}>💻 Tech</h2>
<p className={styles.sectionDesc}></p>
<div className={styles.posts}>
{posts.map((post, idx) => (
<Link key={idx} to={post.url} className={styles.postCard}>
@@ -46,8 +47,23 @@ function RecentPosts() {
</Link>
))}
</div>
<Link to="/tech" className={styles.moreLink}>
</Link>
</section>
);
}
function RecentBlog() {
return (
<section className={styles.section}>
<h2 className={styles.sectionTitle}>📝 Blog</h2>
<p className={styles.sectionDesc}></p>
<div className={styles.comingSoon}>
<p>coming soon...</p>
</div>
<Link to="/blog" className={styles.moreLink}>
</Link>
</section>
);
@@ -64,7 +80,8 @@ function Works() {
return (
<section className={styles.section}>
<h2 className={styles.sectionTitle}>🛠 </h2>
<h2 className={styles.sectionTitle}>🛠 Works</h2>
<p className={styles.sectionDesc}></p>
<div className={styles.works}>
{works.map((work, idx) => (
<a
@@ -95,7 +112,8 @@ export default function Home(): React.JSX.Element {
<main className={styles.main}>
<HomepageHeader />
<div className={styles.content}>
<RecentPosts />
<RecentTech />
<RecentBlog />
<Works />
</div>
</main>