mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-06-28 23:39:11 +00:00
feat: added project cards and content
This commit is contained in:
parent
00f23425e2
commit
1a366172fc
11 changed files with 115 additions and 79 deletions
BIN
src/lib/assets/triple-logo.png
Normal file
BIN
src/lib/assets/triple-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
BIN
src/lib/assets/videowall-irl.jpeg
Normal file
BIN
src/lib/assets/videowall-irl.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 696 KiB |
BIN
src/lib/assets/zaantje-3d.png
Normal file
BIN
src/lib/assets/zaantje-3d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 272 KiB |
BIN
src/lib/assets/zaantje-logo.png
Normal file
BIN
src/lib/assets/zaantje-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
|
@ -1,8 +1,10 @@
|
|||
<script lang="ts">
|
||||
import { AppBar, LightSwitch, drawerStore } from '@skeletonlabs/skeleton';
|
||||
import { AppBar, LightSwitch, ProgressBar, drawerStore } from '@skeletonlabs/skeleton';
|
||||
import GitHub from './icons/GitHub.svelte';
|
||||
import Hamburger from './icons/Hamburger.svelte';
|
||||
|
||||
export let progress: number;
|
||||
|
||||
function drawerOpen(): void {
|
||||
drawerStore.open();
|
||||
}
|
||||
|
@ -28,3 +30,5 @@
|
|||
<LightSwitch />
|
||||
</svelte:fragment>
|
||||
</AppBar>
|
||||
|
||||
<ProgressBar label="Progress Bar" value={progress} max={100} rounded="" />
|
41
src/lib/components/ProjectCard.svelte
Normal file
41
src/lib/components/ProjectCard.svelte
Normal file
|
@ -0,0 +1,41 @@
|
|||
<script>
|
||||
import { Avatar } from '@skeletonlabs/skeleton';
|
||||
|
||||
export let link = '';
|
||||
export let headerImage = '';
|
||||
export let headerSubTitle = '';
|
||||
export let title = '';
|
||||
export let description = '';
|
||||
export let logo = '';
|
||||
/**
|
||||
* @type {any[]}
|
||||
*/
|
||||
export let contributors = [];
|
||||
export let date = '';
|
||||
</script>
|
||||
|
||||
<a class="card bg-initial card-hover overflow-hidden" href={link}>
|
||||
<header>
|
||||
<img src={headerImage} class="bg-black/50 w-full aspect-[21/9] object-cover" alt="Post" />
|
||||
</header>
|
||||
<div class="p-4 space-y-4">
|
||||
<h6 class="h6">{headerSubTitle}</h6>
|
||||
<h3 class="h3" data-toc-ignore>{title}</h3>
|
||||
<article>
|
||||
<p>
|
||||
{description}
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
<hr class="opacity-50" />
|
||||
<footer class="p-4 flex justify-start items-center space-x-4">
|
||||
<Avatar src={logo} width="w-8" />
|
||||
<div class="flex-auto flex justify-between items-center">
|
||||
{#each contributors as contributor}
|
||||
<Avatar src={contributor.imageSrc} width="w-8" />
|
||||
{/each}
|
||||
|
||||
<small>{new Date(date).toLocaleDateString()}</small>
|
||||
</div>
|
||||
</footer>
|
||||
</a>
|
Loading…
Add table
Add a link
Reference in a new issue