diff --git a/src/lib/components/admin/AdminByline.svelte b/src/lib/components/admin/AdminByline.svelte new file mode 100644 index 0000000..7e46c13 --- /dev/null +++ b/src/lib/components/admin/AdminByline.svelte @@ -0,0 +1,43 @@ + + +
+ {#each sections as section, index} + {section} + {#if index < sections.length - 1} + · + {/if} + {/each} +
+ + \ No newline at end of file diff --git a/src/lib/components/admin/AdminNavBar.svelte b/src/lib/components/admin/AdminNavBar.svelte index 646377e..86c4a73 100644 --- a/src/lib/components/admin/AdminNavBar.svelte +++ b/src/lib/components/admin/AdminNavBar.svelte @@ -1,7 +1,6 @@ diff --git a/src/lib/components/admin/PostDropdown.svelte b/src/lib/components/admin/PostDropdown.svelte index 1f52ffb..c553174 100644 --- a/src/lib/components/admin/PostDropdown.svelte +++ b/src/lib/components/admin/PostDropdown.svelte @@ -71,65 +71,47 @@ {#if isOpen} - + {/if} @@ -163,17 +145,41 @@ border: 1px solid $grey-85; border-radius: $unit-2x; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); - min-width: 220px; + min-width: 140px; z-index: 100; overflow: hidden; + margin: 0; + padding: 0; + list-style: none; } - // Override Button component styles for dropdown items - :global(.dropdown-item) { - justify-content: flex-start; - text-align: left; + .dropdown-item { + display: flex; + align-items: center; + gap: $unit; padding: $unit-2x $unit-3x; - border-radius: 0; + cursor: pointer; + transition: background-color 0.2s ease; + border: none; + background: none; + width: 100%; + text-align: left; + + &:hover { + background-color: $grey-95; + } + + &:first-child { + border-radius: $unit-2x $unit-2x 0 0; + } + + &:last-child { + border-radius: 0 0 $unit-2x $unit-2x; + } + + &:only-child { + border-radius: $unit-2x; + } } .dropdown-icon { diff --git a/src/lib/components/admin/PostListItem.svelte b/src/lib/components/admin/PostListItem.svelte new file mode 100644 index 0000000..c7405b4 --- /dev/null +++ b/src/lib/components/admin/PostListItem.svelte @@ -0,0 +1,183 @@ + + +
+ {#if post.title} +

{post.title}

+ {/if} + +
+ {#if post.linkUrl} +

{post.linkUrl}

+ {/if} +

{getPostSnippet(post)}

+
+ + +
+ + \ No newline at end of file diff --git a/src/lib/components/admin/ProjectListItem.svelte b/src/lib/components/admin/ProjectListItem.svelte index 0e0ad94..7f44991 100644 --- a/src/lib/components/admin/ProjectListItem.svelte +++ b/src/lib/components/admin/ProjectListItem.svelte @@ -1,6 +1,7 @@ @@ -272,92 +185,7 @@ {:else}
{#each filteredPosts as post} -
handlePostClick(post)}> -
- -
- {#if post.status === 'published'} - Published - {:else} - Draft - {/if} -
-
- -
-

{getDisplayTitle(post)}

- - {#if post.linkUrl} -
- - - - - {post.linkUrl} -
- {/if} - -

{getPostSnippet(post)}

- - {#if post.tags && post.tags.length > 0} - - {/if} -
- - -
+ {/each}
{/if} @@ -367,7 +195,6 @@ diff --git a/src/routes/admin/projects/+page.svelte b/src/routes/admin/projects/+page.svelte index d33f178..efe25d3 100644 --- a/src/routes/admin/projects/+page.svelte +++ b/src/routes/admin/projects/+page.svelte @@ -17,8 +17,10 @@ client: string | null status: string projectType: string + logoUrl: string | null backgroundColor: string | null highlightColor: string | null + publishedAt: string | null createdAt: string updatedAt: string }