diff options
| author | nsfisis <54318333+nsfisis@users.noreply.github.com> | 2024-07-07 02:57:14 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-07 02:57:14 +0900 |
| commit | a88259d380fbbdbc84e77a74f4e8850723d471b1 (patch) | |
| tree | dfb1e3cfe29df7051052e4ad9971f6c3772268ed | |
| download | phpstudy-166-slides-a88259d380fbbdbc84e77a74f4e8850723d471b1.tar.gz phpstudy-166-slides-a88259d380fbbdbc84e77a74f4e8850723d471b1.tar.zst phpstudy-166-slides-a88259d380fbbdbc84e77a74f4e8850723d471b1.zip | |
Initial commit
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Dockerfile | 14 | ||||
| -rw-r--r-- | Makefile | 35 | ||||
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | assets/me.jpeg | bin | 0 -> 149271 bytes | |||
| -rw-r--r-- | slide.saty | 73 |
6 files changed, 125 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a108ac --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/slide.pdf +/slide.satysfi-aux diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0cbb1ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM amutake/satysfi + +RUN opam update && \ + opam install satysfi-base + +RUN opam install satysfi-class-slydifi && \ + opam install satysfi-code-printer && \ + opam install satysfi-fonts-noto-sans && \ + opam install satysfi-fonts-noto-sans-cjk-jp + +RUN eval $(opam env) && \ + satyrographos install + +WORKDIR /work diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0a2d6b9 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +.PHONY: all +all: build + +# Build slide PDF. +.PHONY: build +build: slide.pdf + +slide.pdf: slide.saty + docker run \ + --rm \ + --name satysfi \ + --mount type=bind,src=$$(pwd),dst=/work \ + satysfi \ + satysfi slide.saty + +# Enter Docker shell. +.PHONY: shell +shell: + docker run \ + -it \ + --rm \ + --name satysfi \ + --mount type=bind,src=$$(pwd),dst=/work \ + satysfi \ + sh + +# Build Docker container. +.PHONY: docker +docker: + docker build --tag satysfi . + +# Clean all artifacts. +.PHONY: clean +clean: + rm -f *.pdf *.satysfi-aux diff --git a/README.md b/README.md new file mode 100644 index 0000000..5bb5b4d --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +https://phpstudy.connpass.com/event/TODO/ diff --git a/assets/me.jpeg b/assets/me.jpeg Binary files differnew file mode 100644 index 0000000..2bb53ab --- /dev/null +++ b/assets/me.jpeg diff --git a/slide.saty b/slide.saty new file mode 100644 index 0000000..528e69b --- /dev/null +++ b/slide.saty @@ -0,0 +1,73 @@ +@require: class-slydifi/theme/akasaka +@require: code-printer/code-design +@require: code-printer/code-printer +@require: code-printer/code-syntax +@require: code-printer/code-theme +@require: figbox/figbox + +let ex-big-textbox ?:size-opt it = + let size = Option.from 48pt size-opt in + FigBox.textbox?:(set-font-size size) it + +let big-textbox ?:size-opt it = + let size = Option.from 32pt size-opt in + FigBox.textbox?:(set-font-size size) it + +let mid-textbox ?:size-opt it = + let size = Option.from 24pt size-opt in + FigBox.textbox?:(set-font-size size) it + +let with-frame figbox = figbox + |> FigBox.hvmargin 16pt + |> FigBox.frame 2pt Color.black + +let-block +code-block-php source = + '< + +code-printer?:( + CodePrinter.make-config CodeSyntax.php CodeTheme.iceberg-light + |> CodePrinter.set-number-fun CodeDesign.number-fun-null + )(source); + > + +open FigBox +in + +document '< + +set-config(| + SlydifiThemeAkasaka.default-config with + color-emph = Color.black; + |); + + +make-title(| + title = { + |TODO + |}; + author = {|nsfisis (いまむら)|}; + date = {|第TODO回PHP勉強会@東京|}; + |); + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +frame{自己紹介}< + +fig-center(vconcat [ + gap 30pt; + big-textbox{いまむら}; + ]); + +fig-center(vconcat [ + ex-big-textbox{nsfisis}; + ]); + +fig-center(vconcat [ + include-image 128pt `assets/me.jpeg`; + ]); + +fig-center(vconcat [ + big-textbox{\@ デジタルサーカス株式会社}; + ]); + > + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +frame{まとめ}< + +p{TODO} + > + +> |
