diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 0dfdc94..7f19587 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,9 +1,10 @@ @@ -41,9 +48,9 @@
{#if user} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 7e50e0a..18121c5 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,126 +1 @@ - - - - - - {page + 1} - {#if publicationsQuery.hasNextPage} - - {/if} - - -{#if publicationsQuery.isFetching} -

Fetching...

-{:else if publicationsQuery.isError} -

Error

-{:else if publicationsQuery.isSuccess} - {#if currentPage?.length === 0} - There are no publications based onb the current filters - {/if} - {#each currentPage as publication (publication.uri)} - - {/each} -{/if} - - - - {page + 1} - {#if publicationsQuery.hasNextPage} - - {/if} - +

Index

diff --git a/src/routes/explore/+page.svelte b/src/routes/explore/+page.svelte new file mode 100644 index 0000000..1d53575 --- /dev/null +++ b/src/routes/explore/+page.svelte @@ -0,0 +1,133 @@ + + + + + +
+ {#if page > 0} + + {/if} + Page {page + 1} + {#if publicationsQuery.hasNextPage} + + {/if} +
+
+ +{#if publicationsQuery.isFetching} +

Fetching...

+{:else if publicationsQuery.isError} +

Error

+{:else if publicationsQuery.isSuccess} + {#if currentPage?.length === 0} + There are no publications based onb the current filters + {/if} + {#each currentPage as publication (publication.uri)} + + {/each} +{/if} + + + {#if page > 0} + + {/if} + Page {page + 1} + {#if publicationsQuery.hasNextPage} + + {/if} + diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte new file mode 100644 index 0000000..d590238 --- /dev/null +++ b/src/routes/home/+page.svelte @@ -0,0 +1,116 @@ + + +

My Subscriptions

+ + + + +
+ {#if page > 0} + + {/if} + Page {page + 1} + {#if subscriptionsQuery.hasNextPage} + + {/if} +
+
+ +{#if subscriptionsQuery.isFetching} +

Fetching...

+{:else if subscriptionsQuery.isError} +

Error

+{:else if subscriptionsQuery.isSuccess} + {#if currentPage?.length === 0} + There are no subscriptions based onb the current filters + {/if} + {#each subscriptionsQuery.data as publication (publication.uri)} + + {/each} +{/if}