From b70daf4cebdaba78d797b9cf69d8173cc3a8d6bb Mon Sep 17 00:00:00 2001 From: Peter Molnar Date: Wed, 29 Sep 2021 21:29:51 +0100 Subject: [PATCH] new format for disciplines with video details/summary --- index.php | 59 +++++++++++++++++++++++++++++++++++++++++++------------ style.css | 45 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 13 deletions(-) diff --git a/index.php b/index.php index 33b5868..0032222 100644 --- a/index.php +++ b/index.php @@ -66,7 +66,7 @@ $org = json_decode('{

Disciplines of Pa-Kua in Cambridge

-
+
@@ -119,6 +131,30 @@ foreach($disciplines as $key => $details): continue; } ?> +
+ <?php echo($details['alt']); ?> +

+

+

more about the discipline on pakua.com ยป

+
+ Videos + +
+ + +
+
+ + +
+ +
@@ -272,13 +309,9 @@ $archery_schedules = $archery_schedules["events"]; Google Calendar, ICal (IOS, etc)

- - +

See online: + Google Web Calendar for Pa-Kua Cambridge +

Payments

diff --git a/style.css b/style.css index 436bfdf..28d9bcd 100644 --- a/style.css +++ b/style.css @@ -39,12 +39,17 @@ h1 { h2 { font-size: 1.5em; margin: 2em 0 1em 0; + clear: both; } h3 { margin: 2em 0 1em 0; } +h4 { + font-size: 1.2em; +} + body { background-image: url("footer-bg.png"); background-repeat: no-repeat; @@ -303,6 +308,40 @@ label.wide { display: none; } +.disciplinelist > * { + clear: both; +} + +.disciplinelist > div { + margin-bottom: 1em; +} + +.disciplinelist > div img { + float:left; + width: 20%; + margin-right: 2%; + margin-bottom: 1em; + border: 1px solid #ccc; +} + +.disciplinelist > div details { + width: 80%; +} + +.disciplinelist > div details summary { +} + +.disciplinelist > div details .description { + font-size: 1.1em; + color: #222; +} + +.disciplinelist iframe { + aspect-ratio: 16 / 9; + width: 100%; + height: auto; +} + @media screen and (max-width: 54em) { .grid > div { max-width: 48%; @@ -312,4 +351,10 @@ label.wide { width: 98%; padding: 0 1% 0 1%; } + + .disciplinelist > div img { + width: 45%; + margin-right: 5%; + } + }