Add contributions section to home page
This commit is contained in:
parent
279135e079
commit
371d728321
2 changed files with 38 additions and 5 deletions
8
src/data/contributions.json
Normal file
8
src/data/contributions.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"href": "https://iceshrimp.dev/iceshrimp/Iceshrimp.NET",
|
||||
"name": "Iceshrimp.NET",
|
||||
"description": "The .NET rewrite of the Iceshrimp server software for the Fediverse.",
|
||||
"activity": "https://iceshrimp.dev/iceshrimp/Iceshrimp.NET/commits/branch/dev/search?q=author%3Apancakes&all="
|
||||
}
|
||||
]
|
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import DateTime from "$lib/components/DateTime.svelte";
|
||||
import { getPages } from "$lib/pages";
|
||||
import contributions from "../data/contributions.json"
|
||||
import links from "../data/links.json";
|
||||
|
||||
const pages = getPages();
|
||||
|
@ -73,6 +74,30 @@
|
|||
</div>
|
||||
{/each}
|
||||
|
||||
<h2 id="contributions">Contributions</h2>
|
||||
|
||||
<p>Projects not made by me that I have contributed to</p>
|
||||
|
||||
<ul class="page-links">
|
||||
{#each contributions as contribution}
|
||||
<li>
|
||||
<h3>
|
||||
<a href={contribution.href} target="_blank">
|
||||
{contribution.name}
|
||||
</a>
|
||||
</h3>
|
||||
<p>{contribution.description}</p>
|
||||
{#if contribution.activity}
|
||||
<p>
|
||||
<small>
|
||||
<a href={contribution.activity} target="_blank">View activity</a>
|
||||
</small>
|
||||
</p>
|
||||
{/if}
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
|
||||
<h2 id="pages">Pages</h2>
|
||||
|
||||
<p>Things I've written</p>
|
||||
|
@ -415,27 +440,27 @@
|
|||
</main>
|
||||
|
||||
<style>
|
||||
ol.page-links {
|
||||
.page-links {
|
||||
padding-left: 0.5rem;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ol.page-links li {
|
||||
.page-links li {
|
||||
padding: 0.5rem;
|
||||
|
||||
background-color: var(--background-2);
|
||||
border-left: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
ol.page-links li {
|
||||
.page-links li {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
ol.page-links li > *:first-child {
|
||||
.page-links li > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
ol.page-links li > *:last-child {
|
||||
.page-links li > *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue