diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/achernar.php | 18 | ||||
-rw-r--r-- | include/benoit.php | 2 | ||||
-rw-r--r-- | include/prelude.php | 12 |
3 files changed, 10 insertions, 22 deletions
diff --git a/include/achernar.php b/include/achernar.php index e71d601..b54d189 100644 --- a/include/achernar.php +++ b/include/achernar.php @@ -11,7 +11,7 @@ <?php addHeading("Projects", "projects"); ?> <section class="fullWidth"> - <p>The following is a list of our current and maintained projects.</p> + <p>The following is a list of our current projects. Click on a card to view the project's page.</p> <br> <p class="note">Scroll <a href="#anchor.vision">down</a> for more information about us.</p> <br> @@ -19,16 +19,16 @@ <?php function addCard($page, $title) { [$backgroundColour, $textColour] = pageColours($page); - $backgroundImage = pageBackgroundImage($page); - $glyphAddr = pageGlyph($page); - if (is_null($backgroundImage)) { - $backgroundImage = "none"; - } else { - $backgroundImage = "url('" . $backgroundImage . "')"; - } + $glyphAddr = match ($page) { + "benoit", + "pollex", + => "/svg/glyph/" . $page . "Small.svg", - $cardStyle = "--backgroundColour: $backgroundColour; --textColour: $textColour; background-image: $backgroundImage"; + default => "/svg/glyph/" . $page . ".svg", + }; + + $cardStyle = "--backgroundColour: $backgroundColour; --textColour: $textColour;"; echo <<<HTML <a href="?p=$page" style="$cardStyle" title="$title"> diff --git a/include/benoit.php b/include/benoit.php index 182867e..7d0013b 100644 --- a/include/benoit.php +++ b/include/benoit.php @@ -11,7 +11,7 @@ <?php addHeading("Features", "features"); ?> <section> - <p>The core library used multi-threading for rendering the provided scenes. Internally, the <a href="https://crates.io/crates/rayon/">Rayon</a> crate is used for threadpooling and such, where each pixel on the canvas is a job in and of itself.</p> + <p>The core library uses multi-threading for rendering the provided scenes. Internally, the <a href="https://crates.io/crates/rayon/">Rayon</a> crate is used for threadpooling and such, where each pixel on the canvas is a job in and of itself.</p> <br> <?php addImage("inverseJulia20231009200744", "An inverse Julia Set outside the Burning Ship fractal, resembling circles intertwined in a diamond shape with a dark red colour scheme.") ?> <br> diff --git a/include/prelude.php b/include/prelude.php index f89d036..e7d6324 100644 --- a/include/prelude.php +++ b/include/prelude.php @@ -26,18 +26,6 @@ }; } - function pageBackgroundImage($page) { - return match ($page) { - "benoit" => "/svg/benoitBackground.svg", - "dux" => "/image/duxBackground.webp", - default => null, - }; - } - - function pageGlyph($page) { - return "/svg/glyph/" . $page . ".svg"; - } - function addHeading($title, $anchor) { $anchor = "anchor." . $anchor; |