mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 21:13:40 +02:00
feat: add work references and remove default work timeline button (#33)
Added references to some new repos that I've created - [vlw/big-black-coffee-button](https://codeberg.org/vlw/big-black-coffee-button) - [vlw/href](https://codeberg.org/vlw/href) - [vlw/curl](https://codeberg.org/vlw/curl) I've also removed the 'read more' button that showed up in the work timeline for items that didn't have any actions defined. It's probably better to have no "read more" button at all than having it link to a "coming soon" page. Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/33
This commit is contained in:
parent
c5c7aaa919
commit
f60a27855d
2 changed files with 20 additions and 12 deletions
|
@ -112,9 +112,9 @@
|
|||
|
||||
<p><?= $work->summary() ?></p>
|
||||
|
||||
<div class="actions">
|
||||
<?php if ($work->actions()): ?>
|
||||
<div class="actions">
|
||||
|
||||
<?php if ($work->actions()): ?>
|
||||
<?php foreach ($work->actions() as $action): ?>
|
||||
<a href="<?= $action->href() ?? "/work/{$work->id}" ?>"><button class="inline <?= implode(" ", $action->classes()) ?>">
|
||||
<?php if ($action->icon_prepended()): ?>
|
||||
|
@ -130,14 +130,9 @@
|
|||
<?php endif; ?>
|
||||
</button></a>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<a href="<?= "/work/{$work->id}" ?>"><button class="inline">
|
||||
<p>read more</p>
|
||||
<?= VV::embed(DEFAULT_BUTTON_ICON) ?>
|
||||
</button></a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -78,13 +78,16 @@ INSERT INTO `work` (`id`, `title`, `summary`, `created`) VALUES
|
|||
('icellate/website', 'Website for iCellate Medical', 'Together with the iCellate team, I created a new front-end for the biopharma startup using my Vegvisir framework as the foundation.', '2023-04-19'),
|
||||
('itg/lan', 'Reservation website for ITG-Sundbyberg', 'Redesign of IT-Gymnasiet Sundbyberg\'s seat reservation system, tournament registration, and information website for their yearly LAN events.', '2014-09-02'),
|
||||
('itg/upload', 'Web project upload for ITG-Sundbyberg', 'Special school assignment for my Web programming course at IT-Gymnasiet Sundbyberg', '2014-06-11'),
|
||||
('vlw/bbcb', 'Big Black Coffee Button', 'A very simple PWA for updating the \"coffe tally\" on my about page from anywhere in the world whenever I have a cup of coffee!', '2025-03-13'),
|
||||
('vlw/camera-obscura', 'cameraobscura.gr', 'Portable front-end website for Camera Obscura GR', '2018-04-25'),
|
||||
('vlw/collage', 'vlw/collage', 'Create an image where each \"pixel\" is a smaller image of similar color to the original image.', '2021-03-21'),
|
||||
('vlw/curl', 'cURL wrapper Bash script', 'Public domain shell script optimized to be run in a Visual Studio Code-like interface that wraps cURL on any system with Bash installed. I created it to make manual requests for Reflect endpoints with API Bearer token keys.', '2025-02-09'),
|
||||
('vlw/dediprison', 'DediPrison', 'Public Minecraft server project together with a friend that had around 20-30 active monthly players.', '2015-10-13'),
|
||||
('vlw/disneyplus-pip', 'vlw/disneyplus-pip', 'Enable (or rather disable Disney\'s block of) picture-in-picture on disneyplus.com for Chrome.', '2021-01-31'),
|
||||
('vlw/edkb', 'vlw/edkb', 'Printable keyboard overlay for some controls in Elite Dangerous.', '2021-03-18'),
|
||||
('vlw/elevent', 'vlw/elevent', 'A small npm module that is intended to add more control over event listeners on HTMLElements with JavaScript. Kind of a superset of addEventListener.', '2024-11-11'),
|
||||
('vlw/eyeart', 'eyeart.me', 'Website designed by me for the Greek/Swedish photographer, eyeart. The website features albums, a blog, and news pages.', '2014-03-02'),
|
||||
('vlw/href', 'API-managed permalink redirector/URL shortener', 'This is a simple API-managed permalink generator/URL shortener that I created to hotlink resources for my projects. Permalink destinations can be altered if the target resource needs to be moved. Permalinks can also replace other permalinks with native inheritance at the database-level', '2025-02-09'),
|
||||
('vlw/ion-musik', 'Website for ION Musik', 'Portable front-end website for Greek musican, ION Musik.', '2015-06-11'),
|
||||
('vlw/labylib', 'LabyLib', 'Library for controlling LabyMod cosmetics programmatically in Python.', '2020-11-11'),
|
||||
('vlw/labylib-animated-cape', 'vlw/labylib-animated-cape', 'Minecraft cosmetics scripts for my labylib library that cycles between a set of Labymod capes, creating a (slow) animation.', '2020-11-15'),
|
||||
|
@ -133,7 +136,10 @@ INSERT INTO `work_actions` (`ref_work_id`, `icon_prepended`, `icon_appended`, `o
|
|||
('vlw/php-sqlite', 'codeberg.svg', NULL, 0, 'view source', 'https://codeberg.org/vlw/php-sqlite', NULL),
|
||||
('vlw/php-functionflags', 'codeberg.svg', NULL, 0, 'view source', 'https://codeberg.org/vlw/functionflags', NULL),
|
||||
('vlw/still-alive', 'codeberg.svg', NULL, 0, 'view source', 'https://codeberg.org/vlw/still-alive', NULL),
|
||||
('vlw/still-alive', 'star.svg', NULL, 0, 'open demo', 'https://victorwesterlund.github.io/still-alive/', NULL);
|
||||
('vlw/still-alive', 'star.svg', NULL, 0, 'open demo', 'https://victorwesterlund.github.io/still-alive/', NULL),
|
||||
('vlw/bbcb', 'codeberg.svg', NULL, 0, 'view source', 'https://codeberg.org/vlw/big-black-coffee-button', NULL),
|
||||
('vlw/href', 'codeberg.svg', NULL, 0, 'view source', 'https://codeberg.org/vlw/href', NULL),
|
||||
('vlw/curl', 'codeberg.svg', NULL, 0, 'view source', 'https://codeberg.org/vlw/curl', NULL);
|
||||
|
||||
CREATE TABLE `work_tags` (
|
||||
`ref_work_id` varchar(255) NOT NULL,
|
||||
|
@ -196,7 +202,11 @@ INSERT INTO `work_tags` (`ref_work_id`, `label`) VALUES
|
|||
('vlw/labylib-chattycape', 'VLW'),
|
||||
('vlw/labylib-chattycape', 'REPO'),
|
||||
('vlw/labylib-animated-cape', 'VLW'),
|
||||
('vlw/labylib-animated-cape', 'REPO');
|
||||
('vlw/labylib-animated-cape', 'REPO'),
|
||||
('vlw/bbcb', 'VLW'),
|
||||
('vlw/bbcb', 'WEBSITE'),
|
||||
('vlw/href', 'VLW'),
|
||||
('vlw/curl', 'VLW');
|
||||
|
||||
CREATE TABLE `work_timeline` (
|
||||
`ref_work_id` varchar(255) NOT NULL,
|
||||
|
@ -216,13 +226,16 @@ INSERT INTO `work_timeline` (`ref_work_id`, `year`, `month`, `day`) VALUES
|
|||
('icellate/website', 2023, 4, 19),
|
||||
('itg/lan', 2014, 9, 2),
|
||||
('itg/upload', 2014, 6, 11),
|
||||
('vlw/bbcb', 2025, 3, 13),
|
||||
('vlw/camera-obscura', 2018, 4, 25),
|
||||
('vlw/collage', 2021, 3, 21),
|
||||
('vlw/curl', 2025, 2, 9),
|
||||
('vlw/dediprison', 2015, 10, 13),
|
||||
('vlw/disneyplus-pip', 2021, 1, 31),
|
||||
('vlw/edkb', 2021, 3, 18),
|
||||
('vlw/elevent', 2024, 11, 11),
|
||||
('vlw/eyeart', 2014, 3, 2),
|
||||
('vlw/href', 2025, 2, 9),
|
||||
('vlw/ion-musik', 2015, 6, 11),
|
||||
('vlw/labylib', 2020, 11, 11),
|
||||
('vlw/labylib-animated-cape', 2020, 11, 15),
|
||||
|
|
Loading…
Add table
Reference in a new issue