design: increase prominence of create post button

This commit is contained in:
James Xylight committed 2025-08-26 17:42:01 -07:00
1 parent 421d26790b
commit 25c879d173
14 files changed
+140 -148

No files matched your search

+17 -23
View File
@@ -32,26 +32,20 @@
<title>{$t('form.post.create')}</title>
</svelte:head>
<div class="w-full max-w-5xl mx-auto h-full">
<PostForm
passedData={data.crosspost == true
? post
: {
body: '',
community: null,
image: null,
loading: false,
nsfw: false,
title: '',
url: undefined,
}}
passedCommunity={community}
onsubmit={e => goto(`/post/${e.post.id}`)}
>
{#snippet formtitle()}
<Header class="text-3xl font-bold" pageHeader>
{$t('routes.createPost')}
</Header>
{/snippet}
</PostForm>
</div>
<PostForm
passedData={data.crosspost == true
? post
: {
body: '',
community: null,
image: null,
loading: false,
nsfw: false,
title: '',
url: undefined,
}}
passedCommunity={community}
onsubmit={e => goto(`/post/${e.post.id}`)}
>
{#snippet formtitle()}{/snippet}
</PostForm>