summaryrefslogtreecommitdiff
path: root/about/figure.php
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2023-06-20 13:19:44 -0400
committerAdam T. Carpenter <atc@53hor.net>2023-06-20 13:19:44 -0400
commit738b9837f7cc1617cff694a5275db2e6527590c5 (patch)
treea1cfbcf2ed104ebb86712710ba3147d085eac51e /about/figure.php
parentf411b2bbc7770fa9cd897cd4036c08c065ba598e (diff)
downloadcarpentertutoring-738b9837f7cc1617cff694a5275db2e6527590c5.tar.xz
carpentertutoring-738b9837f7cc1617cff694a5275db2e6527590c5.zip
feat: automatic tutor layout on about team
Also add Jessica and Katherine
Diffstat (limited to 'about/figure.php')
-rw-r--r--about/figure.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/about/figure.php b/about/figure.php
new file mode 100644
index 0000000..c6cee51
--- /dev/null
+++ b/about/figure.php
@@ -0,0 +1,8 @@
+ <figure class="shadowy">
+ <picture>
+ <source srcset="<?php printf('/about/team/%s/%s.webp', $tutor, $tutor) ?>" type="image/webp" />
+ <source srcset="<?php printf('/about/team/%s/%s.png', $tutor, $tutor) ?>" type="image/png" />
+ <img alt="<?php include("./team/$tutor/name.php") ?>" src="<?php printf('/about/team/%s/%s.png', $tutor, $tutor) ?>" />
+ </picture>
+ <figcaption><?php include("./team/$tutor/name.php") ?></figcaption>
+ </figure>