Skip to content
Merged
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
6 changes: 1 addition & 5 deletions components/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ export function CodeBlock({
}) {
const lines = snippet.lines.split("\n");
return (
<figure
className={`overflow-hidden rounded-lg border border-[#272a3d] shadow-[0_8px_22px_-14px_rgba(16,16,24,0.45)]${
fit ? " w-fit max-w-full" : ""
}`}
>
<figure className="overflow-hidden rounded-lg border border-[#272a3d] shadow-[0_8px_22px_-14px_rgba(16,16,24,0.45)]">
<figcaption className="flex items-center gap-2 bg-[#15161f] px-3 py-[5.5px]">
<span className="rounded-[3px] bg-accent px-1.5 py-px text-[6.5px] font-bold uppercase tracking-[0.12em] text-white">
{snippet.lang}
Expand Down
16 changes: 9 additions & 7 deletions components/VerticalDoc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function TroubleCaseBlock({ tc, c }: { tc: TroubleCase; c: Content }) {
<p className="mt-1 font-mono text-[7.5px] text-dim">{tc.file}</p>
)}

<div className="mt-2 grid grid-cols-[minmax(0,1fr)_auto] items-start gap-3.5 border-t border-line pt-2">
<div className="mt-2 grid grid-cols-[minmax(0,1fr)_59%] items-start gap-3.5 border-t border-line pt-2">
<div className="space-y-0.5">
<CaseRow label={c.ui.problem} text={tc.problem} />
<CaseRow label={c.ui.solution} text={tc.solution} />
Expand Down Expand Up @@ -664,8 +664,10 @@ function HiNestTroublePageB({ c }: { c: Content }) {
}

/* --- about + venture (final page) --- */
function AboutVenturePage({ c }: { c: Content }) {
function AboutVenturePage({ c, lang }: { c: Content; lang: Lang }) {
const { aboutMe, activities, showcases, studio, profile, ui } = c;
// English runs much longer here, so keep it compact; Korean has room to breathe.
const body = lang === "en" ? "text-[8.5px]" : "text-[9.5px]";
return (
<DocPage n={7} c={c}>
<section>
Expand All @@ -677,7 +679,7 @@ function AboutVenturePage({ c }: { c: Content }) {
].map((x) => (
<Entry key={x.tag} meta={x.tag}>
<h4 className="text-[11px] font-bold">{x.label}</h4>
<p className="mt-1 text-[8.5px] leading-[1.45] text-muted">
<p className={`mt-1 ${body} leading-[1.45] text-muted`}>
{x.body}
</p>
</Entry>
Expand Down Expand Up @@ -705,7 +707,7 @@ function AboutVenturePage({ c }: { c: Content }) {
{studio.url} ↗
</a>
</div>
<p className="mt-1 text-[8.5px] leading-[1.45] text-muted">
<p className={`mt-1 ${body} leading-[1.45] text-muted`}>
{studio.desc}
</p>
</Entry>
Expand All @@ -729,7 +731,7 @@ function AboutVenturePage({ c }: { c: Content }) {
</a>
) : null}
</div>
<p className="mt-1 text-[8.5px] leading-[1.45] text-muted">
<p className={`mt-1 ${body} leading-[1.45] text-muted`}>
{linkifyDesc(act.desc, act.descLinks)}
</p>
</Entry>
Expand All @@ -750,7 +752,7 @@ function AboutVenturePage({ c }: { c: Content }) {
) : null}
</div>
{s.desc ? (
<p className="mt-0.5 text-[8.5px] leading-[1.4] text-muted">
<p className={`mt-0.5 ${body} leading-[1.4] text-muted`}>
{s.desc}
</p>
) : null}
Expand Down Expand Up @@ -789,7 +791,7 @@ export default function VerticalDoc({ lang }: { lang: Lang }) {
<HiNestTroublePageB c={c} />
<GomsOverviewPage c={c} />
<GomsTroublePage c={c} />
<AboutVenturePage c={c} />
<AboutVenturePage c={c} lang={lang} />
</div>
);
}
Loading