wip: 2024-07-07T11:22:34+0200 (1720344154)

This commit is contained in:
Victor Westerlund 2024-07-07 12:24:00 +02:00
parent 656e63b8ac
commit 0dd16e92dd
4 changed files with 69 additions and 3 deletions

View file

@ -0,0 +1,30 @@
/* # Overrides */
:root {
--primer-color-accent: 148, 255, 21;
--color-accent: rgb(var(--primer-color-accent));
}
main {
display: flex;
flex-direction: column;
gap: var(--padding);
}
/* # Content */
/* ## Title */
section.title {
display: flex;
flex-direction: column;
gap: 5px;
}
/* ## Actions */
section.actions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--padding);
}

View file

@ -0,0 +1 @@
new vv.Interactions("battlestation-retired");

View file

@ -0,0 +1,36 @@
<style><?= VV::css("pages/about/battlestation-retired") ?></style>
<section class="title">
<h1>Retired components</h1>
<p>I'd be happy to send you any component that you find here for "free". The only thing I ask in return is that you pay for shipping.</p>
<p>This page is still a work-in-progress. You can use my API to get a list of retired components by hardware category for now.</p>
</section>
<section class="actions">
<a href="<?= $_ENV["api"]["base_url"] ?>battlestation/chassis?is_retired=true" target="_blank">
<button class="inline">Cases (API)</button>
</a>
<a href="<?= $_ENV["api"]["base_url"] ?>battlestation/cpu?is_retired=true" target="_blank">
<button class="inline">CPUs (API)</button>
</a>
<a href="<?= $_ENV["api"]["base_url"] ?>battlestation/gpu?is_retired=true" target="_blank">
<button class="inline">GPUs (API)</button>
</a>
<a href="<?= $_ENV["api"]["base_url"] ?>battlestation/mb?is_retired=true" target="_blank">
<button class="inline">Motherboards (API)</button>
</a>
<a href="<?= $_ENV["api"]["base_url"] ?>battlestation/psu?is_retired=true" target="_blank">
<button class="inline">PSUs (API)</button>
</a>
<a href="<?= $_ENV["api"]["base_url"] ?>battlestation/storage?is_retired=true" target="_blank">
<button class="inline">Storage (API)</button>
</a>
</section>
<section class="title">
<h2>Found something you like?</h2>
<p>Please note; I can't guarantee the thing you want will work as expected, or work at all! But I will test the compontent for you if I still have means at hand to do so.</p>
</section>
<section class="actions">
<a href="/contact" vv="battlestation-retired" vv-call="navigate">
<button class="inline solid">Contact me</button>
</a>
</section>
<script><?= VV::js("pages/about/battlestation-retired") ?></script>

View file

@ -62,7 +62,8 @@
<p>I'd be happy to send you, dear reader, any component that you find here for "free" that hasn't been retired yet. The only thing I ask in return is that you pay for shipping.</p>
<p>I can't guarantee the thing you want will work as expected, or work at all! But I will test the compontent for you if I still have means at hand to do so.</p>
<div>
<a href="/contact" vv="battlestation" vv-call="navigate"><button class="inline solid">Contact me</button></a>
<a href="/about/battlestation-retired" vv="battlestation" vv-call="navigate"><button class="inline solid">Retired components</button></a>
<a href="/contact" vv="battlestation" vv-call="navigate"><button class="inline">Contact me</button></a>
</div>
</section>
@ -74,8 +75,6 @@
$motherboard = $api->call(Endpoints::BATTLESTATION_MB->value)->params([
MbModel::ID->value => $config[ChassisMbModel::REF_MB_ID->value]
])->get()->json()[0];
$test = true;
?>