✨ Realms
This commit is contained in:
		| @@ -35,7 +35,7 @@ export default function PostItem(props: { | ||||
|   return ( | ||||
|     <div class="post-item"> | ||||
|       <Show when={!props.noAuthor}> | ||||
|         <a href={`/accounts/${props.post.author.id}`}> | ||||
|         <a href={`/accounts/${props.post.author.name}`}> | ||||
|           <div class="flex bg-base-200"> | ||||
|             <div class="avatar pl-[20px]"> | ||||
|               <div class="w-12"> | ||||
| @@ -47,7 +47,7 @@ export default function PostItem(props: { | ||||
|             </div> | ||||
|             <div class="flex items-center px-5"> | ||||
|               <div> | ||||
|                 <h3 class="font-bold text-sm">{props.post.author.name}</h3> | ||||
|                 <h3 class="font-bold text-sm">{props.post.author.nick}</h3> | ||||
|                 <p class="text-xs">{props.post.author.description}</p> | ||||
|               </div> | ||||
|             </div> | ||||
| @@ -61,12 +61,12 @@ export default function PostItem(props: { | ||||
|  | ||||
|         <div class="mt-2 flex gap-2"> | ||||
|           <For each={props.post.categories}> | ||||
|             {item => <a href={`/categories/${item.alias}`} class="link link-primary"> | ||||
|             {item => <a class="link link-primary"> | ||||
|               #{item.name} | ||||
|             </a>} | ||||
|           </For> | ||||
|           <For each={props.post.tags}> | ||||
|             {item => <a href={`/tags/${item.alias}`} class="link link-primary"> | ||||
|             {item => <a class="link link-primary"> | ||||
|               #{item.name} | ||||
|             </a>} | ||||
|           </For> | ||||
|   | ||||
| @@ -184,7 +184,7 @@ export default function PostPublish(props: { | ||||
|           <div role="alert" class="bg-base-200 flex justify-between"> | ||||
|             <div class="px-5 py-3"> | ||||
|               <i class="fa-solid fa-circle-info me-3"></i> | ||||
|               You are reposting a post from <b>{props.reposting?.author?.name}</b> | ||||
|               You are reposting a post from <b>{props.reposting?.author?.nick}</b> | ||||
|             </div> | ||||
|             <button type="reset" class="btn btn-ghost w-12" disabled={submitting()}> | ||||
|               <i class="fa-solid fa-xmark"></i> | ||||
| @@ -195,7 +195,7 @@ export default function PostPublish(props: { | ||||
|           <div role="alert" class="bg-base-200 flex justify-between"> | ||||
|             <div class="px-5 py-3"> | ||||
|               <i class="fa-solid fa-circle-info me-3"></i> | ||||
|               You are replying a post from <b>{props.replying?.author?.name}</b> | ||||
|               You are replying a post from <b>{props.replying?.author?.nick}</b> | ||||
|             </div> | ||||
|             <button type="reset" class="btn btn-ghost w-12" disabled={submitting()}> | ||||
|               <i class="fa-solid fa-xmark"></i> | ||||
|   | ||||
| @@ -11,7 +11,8 @@ interface MenuItem { | ||||
|  | ||||
| export default function Navbar() { | ||||
|   const nav: MenuItem[] = [ | ||||
|     { label: "Feed", href: "/" } | ||||
|     { label: "Feed", href: "/" }, | ||||
|     { label: "Realms", href: "/realms" } | ||||
|   ]; | ||||
|  | ||||
|   const wellKnown = useWellKnown(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user