mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
Add hero image to home screen
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 673 KiB |
@@ -7,7 +7,6 @@
|
||||
|
||||
<style>
|
||||
.header {
|
||||
margin: 0 0.5rem;
|
||||
padding: 0 0.5rem;
|
||||
gap: 0.25rem;
|
||||
height: 3rem;
|
||||
|
||||
+58
-16
@@ -16,12 +16,49 @@
|
||||
.header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
.repo-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
background-image: url("aliens.png");
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
height: 9.5rem;
|
||||
clip-path: polygon(
|
||||
0 6px,
|
||||
2px 6px,
|
||||
2px 4px,
|
||||
4px 4px,
|
||||
4px 2px,
|
||||
6px 2px,
|
||||
6px 0,
|
||||
calc(100% - 6px) 0,
|
||||
calc(100% - 6px) 2px,
|
||||
calc(100% - 4px) 2px,
|
||||
calc(100% - 4px) 4px,
|
||||
calc(100% - 2px) 4px,
|
||||
calc(100% - 2px) 6px,
|
||||
100% 6px,
|
||||
100% calc(100% - 6px),
|
||||
calc(100% - 2px) calc(100% - 6px),
|
||||
calc(100% - 2px) calc(100% - 4px),
|
||||
calc(100% - 4px) calc(100% - 4px),
|
||||
calc(100% - 4px) calc(100% - 2px),
|
||||
calc(100% - 6px) calc(100% - 2px),
|
||||
calc(100% - 6px) 100%,
|
||||
6px 100%,
|
||||
6px calc(100% - 2px),
|
||||
4px calc(100% - 2px),
|
||||
4px calc(100% - 4px),
|
||||
2px calc(100% - 4px),
|
||||
2px calc(100% - 6px),
|
||||
0 calc(100% - 6px)
|
||||
);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -33,20 +70,25 @@
|
||||
</svelte:fragment>
|
||||
</Header>
|
||||
</div>
|
||||
<div class="repo-grid">
|
||||
{#each repos as repo}
|
||||
{#if repo.payloads["xyz.radicle.project"]}
|
||||
<RepoCard
|
||||
{repo}
|
||||
selfDid={`did:key:${config.publicKey}`}
|
||||
onclick={() => {
|
||||
void router.push({
|
||||
resource: "repo.issues",
|
||||
rid: repo.rid,
|
||||
status: "open",
|
||||
});
|
||||
}} />
|
||||
{/if}
|
||||
{/each}
|
||||
<div style:padding="1rem">
|
||||
<div class="hero-image"></div>
|
||||
|
||||
<div class="txt-semibold" style:margin="1.5rem 0">Repositories</div>
|
||||
<div class="repo-grid">
|
||||
{#each repos as repo}
|
||||
{#if repo.payloads["xyz.radicle.project"]}
|
||||
<RepoCard
|
||||
{repo}
|
||||
selfDid={`did:key:${config.publicKey}`}
|
||||
onclick={() => {
|
||||
void router.push({
|
||||
resource: "repo.issues",
|
||||
rid: repo.rid,
|
||||
status: "open",
|
||||
});
|
||||
}} />
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user