aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-04-20 19:22:54 +0900
committernsfisis <nsfisis@gmail.com>2024-04-20 19:22:54 +0900
commit044f98467ad7bd4ee86506c0880601e3ff3a1722 (patch)
treedfb1e3cfe29df7051052e4ad9971f6c3772268ed
parentb9ebe5825a30c6ff8b38fff04061e236550b23af (diff)
downloadphpstudy-N-slides-template-044f98467ad7bd4ee86506c0880601e3ff3a1722.tar.gz
phpstudy-N-slides-template-044f98467ad7bd4ee86506c0880601e3ff3a1722.tar.zst
phpstudy-N-slides-template-044f98467ad7bd4ee86506c0880601e3ff3a1722.zip
update slide.saty
-rw-r--r--assets/me.jpegbin10890 -> 149271 bytes
-rw-r--r--slide.saty35
2 files changed, 27 insertions, 8 deletions
diff --git a/assets/me.jpeg b/assets/me.jpeg
index 4e01020..2bb53ab 100644
--- a/assets/me.jpeg
+++ b/assets/me.jpeg
Binary files differ
diff --git a/slide.saty b/slide.saty
index dbed3ff..528e69b 100644
--- a/slide.saty
+++ b/slide.saty
@@ -5,6 +5,22 @@
@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?:(
@@ -34,14 +50,17 @@ document '<
+frame{自己紹介}<
+fig-center(vconcat [
- gap 75pt;
- hconcat [
- textbox{nsfisis (いまむら)};
- gap 20pt;
- include-image 50pt `assets/me.jpeg`;
- ];
- gap 20pt;
- textbox{\@ デジタルサーカス株式会社};
+ 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{\@ デジタルサーカス株式会社};
]);
>