diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-01 02:28:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-01 02:28:10 +0900 |
| commit | cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a (patch) | |
| tree | 0e00d7caf3031fa86decaa0cbc226cc1e521b914 /services/nuldoc/nuldoc-src/pages/SlidePage.ts | |
| parent | d08e3edb65b215152aa26e3518fb2f2cd7071c4b (diff) | |
| parent | 1964f77d03eb647dcf46d63dde68d7ae7301604f (diff) | |
| download | nsfisis.dev-cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a.tar.gz nsfisis.dev-cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a.tar.zst nsfisis.dev-cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a.zip | |
Merge branch 'feat/ruby-rewrite'
Diffstat (limited to 'services/nuldoc/nuldoc-src/pages/SlidePage.ts')
| -rw-r--r-- | services/nuldoc/nuldoc-src/pages/SlidePage.ts | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/services/nuldoc/nuldoc-src/pages/SlidePage.ts b/services/nuldoc/nuldoc-src/pages/SlidePage.ts deleted file mode 100644 index 149ecf8e..00000000 --- a/services/nuldoc/nuldoc-src/pages/SlidePage.ts +++ /dev/null @@ -1,140 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.ts"; -import GlobalHeader from "../components/SlidesGlobalHeader.ts"; -import PageLayout from "../components/PageLayout.ts"; -import StaticStylesheet from "../components/StaticStylesheet.ts"; -import StaticScript from "../components/StaticScript.ts"; -import { Config, getTagLabel } from "../config.ts"; -import { dateToString } from "../revision.ts"; -import { Slide } from "../slide/slide.ts"; -import { getPostPublishedDate } from "../generators/post.ts"; -import { - a, - article, - button, - div, - elem, - Element, - h1, - h2, - header, - li, - ol, - section, - ul, -} from "../dom.ts"; - -export default async function SlidePage( - slide: Slide, - config: Config, -): Promise<Element> { - return await PageLayout({ - metaCopyrightYear: getPostPublishedDate(slide).year, - metaDescription: `「${slide.title}」(${slide.event} で登壇)`, - metaKeywords: slide.tags.map((slug) => getTagLabel(config, slug)), - metaTitle: - `${slide.title} (${slide.event})|${config.sites.slides.siteName}`, - requiresSyntaxHighlight: true, - site: "slides", - config, - children: elem( - "body", - { class: "single" }, - await StaticStylesheet({ - site: "slides", - fileName: "/slides.css", - config, - }), - GlobalHeader({ config }), - elem( - "main", - { class: "main" }, - article( - { class: "post-single" }, - header( - { class: "post-header" }, - h1({ class: "post-title" }, slide.title), - slide.tags.length !== 0 - ? ul( - { class: "post-tags" }, - ...slide.tags.map((slug) => - li( - { class: "tag" }, - a( - { class: "tag-inner", href: `/tags/${slug}/` }, - getTagLabel(config, slug), - ), - ) - ), - ) - : null, - ), - div( - { class: "post-content" }, - section( - { id: "changelog" }, - h2({}, a({ href: "#changelog" }, "更新履歴")), - ol( - {}, - ...slide.revisions.map((rev) => - li( - { class: "revision" }, - elem( - "time", - { datetime: dateToString(rev.date) }, - dateToString(rev.date), - ), - `: ${rev.remark}`, - ) - ), - ), - ), - elem("canvas", { id: "slide", "data-slide-link": slide.slideLink }), - div( - { class: "controllers" }, - div( - { class: "controllers-buttons" }, - button( - { id: "prev", type: "button" }, - elem( - "svg", - { - width: "20", - height: "20", - viewBox: "0 0 24 24", - fill: "none", - stroke: "currentColor", - "stroke-width": "2", - }, - elem("path", { d: "M15 18l-6-6 6-6" }), - ), - ), - button( - { id: "next", type: "button" }, - elem( - "svg", - { - width: "20", - height: "20", - viewBox: "0 0 24 24", - fill: "none", - stroke: "currentColor", - "stroke-width": "2", - }, - elem("path", { d: "M9 18l6-6-6-6" }), - ), - ), - ), - ), - await StaticScript({ - site: "slides", - fileName: "/slide.js", - type: "module", - config, - }), - ), - ), - ), - GlobalFooter({ config }), - ), - }); -} |
