Skip to content

Commit

Permalink
fix: if store not found window
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapmaharana committed May 7, 2023
1 parent c87339c commit a0d67a6
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
5 changes: 1 addition & 4 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/litekart-favicon-48x48-black.png" />
<link
rel="apple-touch-icon"
href="%sveltekit.assets%/icons/litekart-icon-black-192x192.png.png"
/>
<link rel="apple-touch-icon" href="%sveltekit.assets%/icons/litekart-icon-black-192x192.png" />
<link rel="manifest" crossorigin="use-credentials" href="/manifest.json" />
<meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width" />

Expand Down
27 changes: 15 additions & 12 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,26 @@ $: webManifest = pwaInfo ? pwaInfo.webManifest.linkTag : ''
<PreloadingIndicator />
{/if}

{#if $page.data.store}
{#if !$page.data.store}
<!-- If store not found -->

<div class="h-screen w-full bg-white flex items-center justify-center">
<div
<a
href="https://litekart.in/"
class="fixed top-0 inset-x-0 z-10 p-5 px-10 flex items-center justify-center border-b shadow-md">
<LazyImg src="{$page.data.store.logo}" class="h-10 w-auto object-contain object-center" />
</div>
<img
src="/litekart-rectangular-logo-black.png"
alt=""
class="h-10 w-auto object-contain object-center" />
</a>

<div class="flex items-center justify-center p-10 bg-white text-center">
<div
class="p-10 flex flex-col gap-2 items-center justify-center border-4 rounded-3xl shadow-2xl">
<img src="{storeClosed}" alt="" class="h-52 w-auto object-contain object-center" />

<p class="text-lg font-semibold text-zinc-500">
{$page.data.store.closedMessage}
</p>
</div>
<img src="/no/no_store_found.png" alt="" class="h-80 w-auto object-contain object-center" />
</div>
</div>
{:else if !$page.data.store.closed}
<!-- If store found and is not closed -->

<section class="minimum-width-rem relative flex min-h-screen flex-col bg-white antialiased">
<div class="h-rem w-full flex-1">
<slot />
Expand All @@ -183,6 +184,8 @@ $: webManifest = pwaInfo ? pwaInfo.webManifest.linkTag : ''
<svelte:component this="{ReloadPrompt}" />
{/if} -->
{:else}
<!-- If store found and is closed -->

<div class="h-screen w-full bg-white flex items-center justify-center">
<div
class="fixed top-0 inset-x-0 z-10 p-5 px-10 flex items-center justify-center border-b shadow-md">
Expand Down
File renamed without changes
20 changes: 10 additions & 10 deletions static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,61 @@
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-96x96.png.png",
"src": "icons/litekart-icon-black-96x96.png",
"type": "image/png",
"sizes": "96x96",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-120x120.png.png",
"src": "icons/litekart-icon-black-120x120.png",
"type": "image/png",
"sizes": "120x120",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-128x128.png.png",
"src": "icons/litekart-icon-black-128x128.png",
"type": "image/png",
"sizes": "128x128",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-144x144.png.png",
"src": "icons/litekart-icon-black-144x144.png",
"type": "image/png",
"sizes": "144x144",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-152x152.png.png",
"src": "icons/litekart-icon-black-152x152.png",
"type": "image/png",
"sizes": "152x152",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-180x180.png.png",
"src": "icons/litekart-icon-black-180x180.png",
"type": "image/png",
"sizes": "180x180",
"purpose": "maskable"
},
{
"src": "icons/litekart-icon-black-192x192.png.png",
"src": "icons/litekart-icon-black-192x192.png",
"type": "image/png",
"sizes": "192x192",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-256x256.png.png",
"src": "icons/litekart-icon-black-256x256.png",
"type": "image/png",
"sizes": "256x256",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-384x384.png.png",
"src": "icons/litekart-icon-black-384x384.png",
"type": "image/png",
"sizes": "384x384",
"purpose": "any"
},
{
"src": "icons/litekart-icon-black-512x512.png.png",
"src": "icons/litekart-icon-black-512x512.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "any"
Expand Down
Binary file added static/no/no_store_found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit a0d67a6

@vercel
Copy link

@vercel vercel bot commented on a0d67a6 May 7, 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.