grelin_templates/feasibility-report/data/layout.typ

44 lines
1.3 KiB
Plaintext

#import "theme.typ": *
#import "config.typ": *
#let report-title-block() = block(width: 100%, below: space-section)[
#align(center)[
#text(font: heading-font, size: size-title, weight: "bold", fill: color-ink)[
#project-name
]
#v(6pt)
#text(font: heading-font, size: size-h2, fill: color-muted)[可行性研究报告]
#v(10pt)
#text(size: size-meta, fill: color-muted)[
#company-name #sym.bar #report-version #sym.bar #report-date
]
]
#v(space-section)
#line(length: 100%, stroke: color-divider + 0.6pt)
]
#let section-block(section) = block(width: 100%, above: space-section, below: space-block)[
#text(font: heading-font, size: size-h1, weight: "bold", fill: color-ink)[#section.title]
#v(6pt)
#box(width: 18pt, height: 3pt, fill: color-accent)
#v(8pt)
#set par(leading: leading-body, spacing: 6pt, justify: true)
#set text(size: size-body, fill: color-body)
#section.body
]
#let summary-block() = block(width: 100%, above: space-block, below: space-section)[
#text(font: heading-font, size: size-h2, weight: "bold", fill: color-ink)[摘要]
#v(6pt)
#box(
width: 100%,
fill: color-bar-bg,
inset: 10pt,
radius: 4pt,
)[
#set par(leading: leading-body, justify: true)
#set text(size: size-body, fill: color-body)
#report-summary
]
]