mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 21:13:40 +02:00
149 lines
No EOL
5.2 KiB
PHP
149 lines
No EOL
5.2 KiB
PHP
<?php
|
|
|
|
use Reflect\Response;
|
|
|
|
use VLW\Client\API;
|
|
use VLW\API\Endpoints;
|
|
|
|
use VLW\API\Databases\VLWdb\Models\Work\WorkModel;
|
|
|
|
require_once VV::root("src/client/API.php");
|
|
require_once VV::root("api/src/Endpoints.php");
|
|
|
|
require_once VV::root("api/src/databases/models/Work/Work.php");
|
|
|
|
// Number of items from the timeline to display on this page
|
|
const TIMELINE_PREVIEW_LIMIT = 10;
|
|
|
|
$work = new class extends API {
|
|
const ERROR_MSG = "Something went wrong";
|
|
|
|
private readonly Response $resp;
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
|
|
// Get work items from endpoint
|
|
$this->resp = $this->call(Endpoints::WORK->value)->params([
|
|
WorkModel::IS_LISTED->value => true
|
|
])->get();
|
|
}
|
|
|
|
private function get_item(string $key): array {
|
|
$idx = array_search($key, array_column($this->resp->json(), WorkModel::ID->value));
|
|
return $this->resp->json()[$idx];
|
|
}
|
|
|
|
public function get_summary(string $key): string {
|
|
return $this->resp->ok ? $this->get_item($key)[WorkModel::SUMMARY->value] : self::ERROR_MSG;
|
|
}
|
|
}
|
|
|
|
?>
|
|
<style><?= VV::css("public/assets/css/pages/work") ?></style>
|
|
<section class="git">
|
|
<?= VV::embed("public/assets/media/icons/codeberg.svg") ?>
|
|
<p>I have moved most of my free open-source software <a href="https://giveupgithub.com">away from GitHub</a> to <a href="https://codeberg.org/vlw">Codeberg</a>. I also have a mirror of everything and sources for some smaller projects on <a href="https://git.vlw.se">Forgejo</a>.</p>
|
|
<div class="buttons">
|
|
<a href="https://codeberg.org/vlw"><button class="inline solid">Codeberg</button></a>
|
|
<a href="https://git.vlw.se"><button class="inline">Forgejo</button></a>
|
|
</div>
|
|
</section>
|
|
<section class="hero">
|
|
<div class="item vegvisir">
|
|
<div class="wrapper">
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/vegvisir.svg") ?>
|
|
<h1>vegvisir</h1>
|
|
</div>
|
|
<p><?= $work->get_summary("vlw/vegvisir") ?></p>
|
|
<div class="actions">
|
|
<a href="https://vegvisir.vlw.se"><button class="inline">Read more</button></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="item reflect">
|
|
<div class="wrapper">
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/reflect.svg") ?>
|
|
<h1>reflect</h1>
|
|
</div>
|
|
<p><?= $work->get_summary("vlw/reflect") ?></p>
|
|
<div class="actions">
|
|
<a href="https://reflect.vlw.se"><button class="inline">Read more</button></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section class="featured">
|
|
<featured-item>
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/vw.svg") ?>
|
|
</div>
|
|
<h3>vlw.se</h3>
|
|
<p>Can I put my own website here, is that cheating? Maybe, but I think this site counts as the most important thing I've personally created. I've only used my own libraries and frameworks to create this website, so it kind of works as a live demonstration of many of my web projects bundled together.</p>
|
|
<div class="actions">
|
|
<a href="/work/vlw/vlw.se"><button class="inline">read more</button></a>
|
|
</div>
|
|
</featured-item>
|
|
<featured-item>
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/vw.svg") ?>
|
|
</div>
|
|
<h3>My dabbles</h3>
|
|
<p>I play around with a lot of technologies and sometimes create smaller programs that might not merit to a lot on their own. This page is all those things collected together, hopefully that will attest to something.</p>
|
|
<div class="actions">
|
|
<a href="/work/playground"><button class="inline">playground</button></a>
|
|
</div>
|
|
</featured-item>
|
|
<featured-item>
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/repo.svg") ?>
|
|
<div>
|
|
<button class="lang">PHP</button>
|
|
</div>
|
|
</div>
|
|
<h3>vlw/php-mysql</h3>
|
|
<p><?= $work->get_summary("vlw/php-mysql") ?></p>
|
|
<div class="actions">
|
|
<a href="PHP"><button class="inline">read more</button></a>
|
|
</div>
|
|
</featured-item>
|
|
<featured-item>
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/star.svg") ?>
|
|
</div>
|
|
<h3>Website for iCellate Medical</h3>
|
|
<p><?= $work->get_summary("icellate/website") ?></p>
|
|
<div class="actions">
|
|
<a href=""><button class="inline">read more</button></a>
|
|
</div>
|
|
</featured-item>
|
|
<featured-item>
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/star.svg") ?>
|
|
</div>
|
|
<h3>Modernizing GeneMate by iCellate</h3>
|
|
<p><?= $work->get_summary("icellate/genemate") ?></p>
|
|
<div class="actions">
|
|
<a href=""><button class="inline">read more</button></a>
|
|
</div>
|
|
</featured-item>
|
|
<featured-item>
|
|
<div class="title">
|
|
<?= VV::embed("public/assets/media/icons/star.svg") ?>
|
|
</div>
|
|
<h3>Custom pages for Deltaco AB</h3>
|
|
<p>From design mock-ups created by the SweDeltaco marketing team, I built various web pages for campagins and special events for the nordic IT-distributor's website using a custom content injection framework for SharePoint that would later inspire my other project, Vegvisir.</p>
|
|
<div class="actions">
|
|
<a href=""><button class="inline">read more</button></a>
|
|
</div>
|
|
</featured-item>
|
|
</section>
|
|
<section class="heading">
|
|
<h1>latest projects</h1>
|
|
</section>
|
|
<?= VV::include("public/work/timeline?limit=" . TIMELINE_PREVIEW_LIMIT) ?>
|
|
<section class="heading">
|
|
<a href="/work/timeline"><button class="inline solid">view full timeline</button></a>
|
|
</section>
|