Skip to content

Commit

Permalink
Change learn page stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Jun 14, 2024
1 parent 5727551 commit 14318d7
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 12 deletions.
3 changes: 0 additions & 3 deletions docs/learn.mdx

This file was deleted.

3 changes: 0 additions & 3 deletions i18n/zh-CN/docusaurus-plugin-content-docs/current/learn.mdx

This file was deleted.

10 changes: 10 additions & 0 deletions i18n/zh-CN/docusaurus-plugin-content-pages/current/learn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ApplicationLayout from "@site/src/components/layout/application";
import { WikiList } from "@site/src/components/wiki-list";

export default function Home() {
return (
<ApplicationLayout>
<WikiList/>
</ApplicationLayout>
);
}
3 changes: 0 additions & 3 deletions i18n/zh-HK/docusaurus-plugin-content-docs/current/learn.mdx

This file was deleted.

10 changes: 10 additions & 0 deletions i18n/zh-HK/docusaurus-plugin-content-pages/current/learn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ApplicationLayout from "@site/src/components/layout/application";
import { WikiList } from "@site/src/components/wiki-list";

export default function Home() {
return (
<ApplicationLayout>
<WikiList/>
</ApplicationLayout>
);
}
1 change: 1 addition & 0 deletions setup-dist-dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ mv ./dist/404.html ./dist/en/
mv ./dist/.nojekyll ./dist/en/

# step 2 remove duplicated files
rm -rf ./dist/zh-CN/en ./dist/zh-HK/en
cp -rf ./dist/zh-CN/zh-CN/* ./dist/zh-CN/ && rm -rf ./dist/zh-CN/zh-CN && rm -rf ./dist/zh-CN/en && rm -rf ./dist/zh-CN/zh-HK
cp -rf ./dist/zh-HK/zh-HK/* ./dist/zh-HK/ && rm -rf ./dist/zh-HK/zh-HK && rm -rf ./dist/zh-HK/en && rm -rf ./dist/zh-HK/zh-CN
6 changes: 3 additions & 3 deletions src/components/wiki-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export const WikiList: FC = () => {
{wikis.map((rawWiki: any) => {
const wiki = WikiUtils.toPage(rawWiki, locale);
return <li key={wiki.id}
className="relative flex flex-col mt-6 text-gray-700 bg-slate-50 shadow-md bg-clip-border rounded-xl w-full md:w-80">
className="relative flex flex-col mt-6 text-black bg-white shadow-md bg-clip-border rounded-xl w-full md:w-80">
<article className="p-4">
<h5
className="block mb-2 font-sans text-xl font-semibold leading-snug tracking-normal text-blue-gray-900">
className="block mb-2 text-xl leading-snug tracking-normal">
<a href={`/${locale}/learn/wiki/${wiki.slug}`}>{wiki.title}</a>
</h5>
<p
className="font-light leading-relaxed line-clamp-3">
className="leading-relaxed line-clamp-3">
{wiki.liteDesc}
</p>
</article>
Expand Down
5 changes: 5 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@tailwind utilities;
body {
color: #222;
@apply bg-[#f8f9fa];
}

.theme-doc-sidebar-menu {
Expand Down Expand Up @@ -138,3 +139,7 @@ body {
.pagination-nav {
margin-top: 100px !important;
}

.theme-doc-markdown.markdown {
@apply bg-[#f8f9fa];
}
10 changes: 10 additions & 0 deletions src/pages/en/learn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ApplicationLayout from "@site/src/components/layout/application";
import { WikiList } from "@site/src/components/wiki-list";

export default function Home() {
return (
<ApplicationLayout>
<WikiList/>
</ApplicationLayout>
);
}
10 changes: 10 additions & 0 deletions src/pages/learn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ApplicationLayout from "@site/src/components/layout/application";
import { WikiList } from "@site/src/components/wiki-list";

export default function Home() {
return (
<ApplicationLayout>
<WikiList/>
</ApplicationLayout>
);
}

0 comments on commit 14318d7

Please sign in to comment.