Skip to content

Commit

Permalink
hacky hide deploy animation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makiopen committed Dec 10, 2024
1 parent a33656f commit 1b7eede
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
49 changes: 33 additions & 16 deletions packages/ui/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,31 @@
</div>

<div class="output rounded-r-3xl flex flex-col grow overflow-auto h-[calc(100vh-84px)] relative">
<div class="
{showDeployModal ? 'hide-deploy' : 'button-bg'}
<div class="
absolute
p-px
right-6
rounded-full
top-4
z-10
{showDeployModal ? 'hide-deploy' : ''}">
<button
class="text-sm
border-solid
border
p-2
pr-4
rounded-full
cursor-pointer
flex items-center
gap-2
transition-all
pl-2 bg-white border-white"
on:click={() => showDeployModal = !showDeployModal}
>
<ArrowsRight/></button></div>
<div class="
button-bg
absolute
p-px
right-4
Expand All @@ -346,21 +369,15 @@
border
p-2
pr-4
rounded-full
cursor-pointer
flex items-center
gap-2
transition-all
{showDeployModal ? 'pl-2 bg-white border-white' : 'pl-4 bg-indigo-600 border-indigo-600 text-white'}"
pl-4 bg-indigo-600 border-indigo-600 text-white"
on:click={() => showDeployModal = !showDeployModal}
>
{#if showDeployModal}<ArrowsRight/>
{:else}Deploy with Defender
{/if}

</button>
</div>
>
Deploy with Defender</button></div>
<pre class="flex flex-col grow basis-0 overflow-auto">
<code class="hljs grow overflow-auto p-4">{@html highlightedCode}</code>
</pre>
Expand Down Expand Up @@ -438,17 +455,17 @@
background: conic-gradient(#4f46e5 calc(var(--angle) - var(--spread)),#7E7ADA var(--angle),rgb(79, 70, 229) calc(var(--angle) + var(--spread)));
box-shadow: var(--x) var(--y) var(--blur) #9793da45;
display: inline-flex;
transition: transform 300ms;
}
.button-bg:hover {
transform: translatex(-2px);;
transform: translateX(-2px);
transition: transform 300ms;
}
.hide-deploy {
transform: translateX(-328px);
background-color: white;
transform: translateX(-320px);
transition: transform 0.2s 300ms;
}
.hide-deploy button{
background-color: white;
Expand All @@ -457,7 +474,7 @@
}
.hide-deploy:hover {
transform: translatex(-330px);
//transform: translatex(-330px);
}
/* .button-bg button {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/DefenderDeployModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
id="defender-deploy"
title="Defender Deploy"
src={devMode ? 'http://localhost:5173' : 'https://defender-deploy-wizard.netlify.app/'}
class={`flex-grow border-none mt-10 ${!loaded ? 'hidden' : ''}`}
class={`flex-grow border-none ${!loaded ? 'hidden' : ''}`}
on:load={handleLoad}
/>
</div>
Expand Down

0 comments on commit 1b7eede

Please sign in to comment.