Skip to content

Commit

Permalink
added @tailwindcss/typography
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Feb 11, 2024
1 parent 57747f2 commit f65308c
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/website/SessionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,21 +312,21 @@ export default function SessionCard({
{targetAudience ? (
<div>
<p className="font-bold">目標受眾:</p>
<Markdown className="leading-7 max-md:text-sm">
<Markdown className="prose leading-7 text-white max-md:text-sm">
{targetAudience}
</Markdown>
</div>
) : null}
{priorKnowledge ? (
<div>
<p className="font-bold">先備知識:</p>
<Markdown className="leading-7 max-md:text-sm">
<Markdown className="prose leading-7 text-white max-md:text-sm">
{priorKnowledge}
</Markdown>
</div>
) : null}
<p className="font-bold">議程介紹:</p>
<Markdown className="leading-7 max-md:text-sm">
<Markdown className="prose leading-7 text-white max-md:text-sm">
{description}
</Markdown>
</div>
Expand Down Expand Up @@ -360,7 +360,7 @@ export default function SessionCard({
<p className="text-2xl font-bold">
{sessions.speakers.find((x) => x.id == speaker)?.zh.name}
</p>
<Markdown className="leading-7 max-md:text-sm">
<Markdown className="prose leading-7 text-white max-md:text-sm">
{sessions.speakers.find((x) => x.id == speaker)?.zh.bio}
</Markdown>
</div>
Expand Down
41 changes: 41 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"vaul": "^0.8.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
9 changes: 8 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,15 @@ const config: Config = {
},
},
},
typography: {
DEFAULT: {
css: {
maxWidth: "100%",
},
},
},
},
},
plugins: [],
plugins: [require("@tailwindcss/typography")],
};
export default config;

0 comments on commit f65308c

Please sign in to comment.