diff --git a/src/components/project/ProjectPreview.svelte b/src/components/project/ProjectPreview.svelte new file mode 100644 index 000000000..aee01184a --- /dev/null +++ b/src/components/project/ProjectPreview.svelte @@ -0,0 +1,222 @@ + + +
+ + action && event.button === 0 ? action() : undefined} + on:keydown={(event) => + action && (event.key === '' || event.key === 'Enter') + ? action() + : undefined} + > + + + {#if name} +
+ {#if action}{project.getName()}{:else}{#if project.getName().length === 0}{:else} + {project.getName()}{/if}{#if $navigating && `${$navigating.to?.url.pathname}${$navigating.to?.url.search}` === path} + {:else}{/if}{/if} + {#if owner}

Owner: {owner}

+ {#await Creators.getCreator(owner)} + + {:then creator} +
+ + +
+ {/await} + {/if} +
+ {/if} +
+ +