Skip to content

Commit

Permalink
remove: auth background, fix: vendor information
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapmaharana committed Jun 10, 2023
1 parent 41e2eef commit 499e2ac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
3 changes: 1 addition & 2 deletions src/routes/(app)/auth/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ import PreloadingIndicator from '$lib/PreloadingIndicator.svelte'
{/if}

<div
class="{$navigating ? 'h-screen' : 'h-full min-h-screen'} bg-fixed bg-center bg-no-repeat"
style="background-image: url('/login/auth-background.png');">
class="{$navigating ? 'h-screen' : 'h-full min-h-screen'} bg-primary-500">
<div
in:scale="{{ duration: 150 }}"
class="frosted mx-auto flex h-full min-h-screen items-center justify-center overflow-y-auto p-5 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-slate-400 sm:p-10 md:p-20">
Expand Down
14 changes: 4 additions & 10 deletions src/routes/(app)/vendor/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,10 @@ const seoProps = {
</div>

<ul class="flex flex-col gap-1 text-center">
{#if data.vendor?.businessName || data.vendor?.name}
{#if data.vendor?.businessName}
<li class="text-xl font-semibold">
{data.vendor?.businessName}
</li>
{/if}

{#if data.vendor?.name}
<li>{data.vendor?.name}</li>
{/if}
{#if data.vendor?.businessName}
<li class="text-xl font-semibold">
{data.vendor?.businessName}
</li>
{/if}

<li>
Expand Down
12 changes: 6 additions & 6 deletions src/routes/(product)/product/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,12 @@ function handleMobileCanvas() {
<p class="mb-2 text-sm font-semibold text-green-700">Inclusive of all taxes</p>
{/if}

{#if data?.product?.vendor && data?.product?.vendor?.slug && data?.product?.vendor?.name}
{#if data?.product?.vendor && data?.product?.vendor?.slug && data?.product?.vendor?.businessName}
<div class="mb-5 flex items-center gap-2">
<span class="font-semibold"> Seller : </span>
<span class="font-semibold"> Sold by : </span>

<a href="/vendor/{data?.product?.vendor?.slug}" class="hover:underline">
{data?.product?.vendor?.name}
{data?.product?.vendor?.businessName}
</a>
</div>
{/if}
Expand Down Expand Up @@ -701,12 +701,12 @@ function handleMobileCanvas() {
<p class="mb-2 text-sm font-semibold text-green-700">Inclusive of all taxes</p>
{/if}

{#if data?.product?.vendor && data?.product?.vendor?.slug && data?.product?.vendor?.name}
{#if data?.product?.vendor && data?.product?.vendor?.slug && data?.product?.vendor?.businessName}
<div class="mb-5 flex items-center gap-2">
<span class="font-semibold"> Seller : </span>
<span class="font-semibold"> Sold by : </span>

<a href="/vendor/{data?.product?.vendor?.slug}" class="hover:underline">
{data?.product?.vendor?.name}
{data?.product?.vendor?.businessName}
</a>
</div>
{/if}
Expand Down
Binary file removed static/login/auth-background.png
Binary file not shown.

1 comment on commit 499e2ac

@vercel
Copy link

@vercel vercel bot commented on 499e2ac Jun 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.