Skip to content

Commit

Permalink
pnpm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
zeucapua committed Jan 1, 2025
1 parent 3237051 commit 6d73097
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 7 additions & 5 deletions src/routes/(app)/[username]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@
</svelte:head>

<main class="mx-4 flex w-full flex-col items-center font-spacemono">
<div class="bg-white/5 m-4 border-2 border-black rounded-xl mt-12 flex w-full max-w-[700px] flex-col gap-4 p-8 text-xl">
<div
class="m-4 mt-12 flex w-full max-w-[700px] flex-col gap-4 rounded-xl border-2 border-black bg-white/5 p-8 text-xl"
>
<div class="relative flex items-center gap-4">
{#if !editingState.editing}
<Avatar src={`/${data.username}/avatar`} />
Expand All @@ -175,7 +177,7 @@
</figure>
{/if}
<div class="flex flex-col">
<h1 class="relative grid text-4xl font-rubik">
<h1 class="relative grid font-rubik text-4xl">
{#if !editingState.editing}
<div style="grid-area: 1 / 1;">
{profile.display_name || usernames.shortNameOrDomain(data.username)}
Expand Down Expand Up @@ -281,7 +283,7 @@
</div>
{#if normalProfileLinks.length > 0 || editingState.editing}
<div>
<h2 class="mb-3 text-center text-2xl font-bold font-rubik">Links</h2>
<h2 class="mb-3 text-center font-rubik text-2xl font-bold">Links</h2>
{#if !editingState.editing}
<ul class="flex flex-col items-center gap-4">
{#each normalProfileLinks as link (link.url)}
Expand All @@ -299,7 +301,7 @@
{/if}
{#if data.pages.length > 0}
<div>
<h2 class="mb-4 text-center text-2xl font-bold font-rubik">Pages</h2>
<h2 class="mb-4 text-center font-rubik text-2xl font-bold">Pages</h2>
<ul class="flex flex-col items-center gap-2">
{#each data.pages as p}
<li>
Expand All @@ -324,7 +326,7 @@
{#each editingState.editing ? editingState.profile.tags : profile.tags as tag}
<a
href={`/people?q=${tag}`}
class="text-black border-2 border-black rounded-full bg-[#a092e3] px-4 py-2"
class="rounded-full border-2 border-black bg-[#a092e3] px-4 py-2 text-black"
>
{tag}
</a>
Expand Down
8 changes: 5 additions & 3 deletions src/routes/(app)/[username]/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@

<main class="mx-4 flex w-full flex-col items-center font-spacemono">
<div
class="bg-white/5 border-2 border-black rounded-md relative m-4 mt-12 flex w-full max-w-[700px] flex-col justify-center gap-4 p-8 text-xl"
class="relative m-4 mt-12 flex w-full max-w-[700px] flex-col justify-center gap-4 rounded-md border-2 border-black bg-white/5 p-8 text-xl"
>
<h1 class="relative mt-2 max-w-72 self-center text-center text-4xl font-rubik">
<h1 class="relative mt-2 max-w-72 self-center text-center font-rubik text-4xl">
{#if !editingState.editing}
{data.page.display_name}
{:else}
Expand Down Expand Up @@ -177,7 +177,9 @@
</div>

<div class="flex flex-col gap-8">
<div class="prose prose-a:text-blue-400 relative mx-auto w-full max-w-2xl px-4 pt-4 dark:prose-invert">
<div
class="prose relative mx-auto w-full max-w-2xl px-4 pt-4 dark:prose-invert prose-a:text-blue-400"
>
{#if !editingState.editing}
{@html renderMarkdownSanitized(data.page.markdown)}
{:else}
Expand Down

0 comments on commit 6d73097

Please sign in to comment.