Make menu darker again
This commit is contained in:
@@ -88,7 +88,7 @@ onMount(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<div class="indent">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
|
@@ -138,7 +138,7 @@ let delete_list = async e => {
|
||||
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<div class="indent">
|
||||
{#if loading}
|
||||
<div class="spinner_container">
|
||||
<Spinner></Spinner>
|
||||
@@ -153,7 +153,7 @@ let delete_list = async e => {
|
||||
{#if list.can_edit}
|
||||
<h3>Edit album</h3>
|
||||
<h4>Rename</h4>
|
||||
<form on:submit={rename_list} class="indent" style="display: flex;">
|
||||
<form on:submit={rename_list} style="display: flex;">
|
||||
<input bind:value={list_name} type="text" style="flex: 1 1 auto"/>
|
||||
<button type="submit" style="flex: 0 0 auto">
|
||||
<i class="icon">save</i> Save
|
||||
@@ -164,17 +164,15 @@ let delete_list = async e => {
|
||||
When you delete an album the files in the album will not be deleted,
|
||||
only the album itself.
|
||||
</p>
|
||||
<div class="indent">
|
||||
<button on:click={delete_list} class="button_red">
|
||||
<i class="icon small">delete</i> Delete album
|
||||
</button>
|
||||
</div>
|
||||
<button on:click={delete_list} class="button_red">
|
||||
<i class="icon small">delete</i> Delete album
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
{#if file.can_edit}
|
||||
<h3>Edit file</h3>
|
||||
<h4>Rename</h4>
|
||||
<form on:submit={rename_file} class="indent" style="display: flex;">
|
||||
<form on:submit={rename_file} style="display: flex;">
|
||||
<input bind:value={file_name} type="text" style="flex: 1 1 auto"/>
|
||||
<button type="submit" style="flex: 0 0 auto">
|
||||
<i class="icon">save</i> Save
|
||||
@@ -187,11 +185,9 @@ let delete_list = async e => {
|
||||
stop working. The file will also disappear from any
|
||||
lists it's contained in.
|
||||
</p>
|
||||
<div class="indent">
|
||||
<button on:click={delete_file} class="button_red">
|
||||
<i class="icon small">delete</i> Delete file
|
||||
</button>
|
||||
</div>
|
||||
<button on:click={delete_file} class="button_red">
|
||||
<i class="icon small">delete</i> Delete file
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
@@ -101,24 +101,27 @@ const example = () => {
|
||||
</script>
|
||||
|
||||
<div class="container">
|
||||
<p>
|
||||
If you have a website you can embed pixeldrain files in your own
|
||||
webpages here.
|
||||
</p>
|
||||
<p>
|
||||
The IFrame embed gives you a frame with a slightly more minimalistic
|
||||
file viewer in it. The embedded file viewer has a fullscreen button and
|
||||
the toolbar is collapsed by default. If you do not have a pixeldrain Pro
|
||||
account the frame will also have advertisements in it.
|
||||
</p>
|
||||
<p>
|
||||
The hotlink embed option only works for single files uploaded with a Pro
|
||||
account. You can use this to directly embed a video player, audio
|
||||
player, photo element or a download button in your site. Make sure you
|
||||
have bandwidth sharing enabled on your
|
||||
<a href="/user/subscription">subscription page</a> or the embed will not
|
||||
work.
|
||||
</p>
|
||||
<div class="indent">
|
||||
<p>
|
||||
If you have a website you can embed pixeldrain files in your own
|
||||
webpages here.
|
||||
</p>
|
||||
<p>
|
||||
The IFrame embed gives you a frame with a slightly more minimalistic
|
||||
file viewer in it. The embedded file viewer has a fullscreen button
|
||||
and the toolbar is collapsed by default. If you do not have a
|
||||
pixeldrain Pro account the frame will also have advertisements in
|
||||
it.
|
||||
</p>
|
||||
<p>
|
||||
The hotlink embed option only works for single files uploaded with a
|
||||
Pro account. You can use this to directly embed a video player,
|
||||
audio player, photo element or a download button in your site. Make
|
||||
sure you have bandwidth sharing enabled on your
|
||||
<a href="/user/subscription">subscription page</a> or the embed will
|
||||
not work.
|
||||
</p>
|
||||
</div>
|
||||
<div class="tab_bar">
|
||||
<button on:click={embed_iframe} class:button_highlight={tab === "iframe"}>
|
||||
<i class="icon">code</i>
|
||||
@@ -132,70 +135,72 @@ const example = () => {
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if tab === "iframe"}
|
||||
<h3>Appearance</h3>
|
||||
<div class="indent">
|
||||
{#if tab === "iframe"}
|
||||
<h3>Appearance</h3>
|
||||
<p>
|
||||
You can change the pixeldrain theme for your embedded file. Try the
|
||||
available themes <a href="/appearance">here</a>.
|
||||
</p>
|
||||
<div class="center">
|
||||
<button class:button_highlight={style===""} on:click={() => {set_style("")}}>
|
||||
Default
|
||||
</button>
|
||||
<button class:button_highlight={style==="classic"} on:click={() => {set_style("classic")}}>
|
||||
Classic
|
||||
</button>
|
||||
<button class:button_highlight={style==="solarized_dark"} on:click={() => {set_style("solarized_dark")}}>
|
||||
Solarized
|
||||
</button>
|
||||
<button class:button_highlight={style==="maroon"} on:click={() => {set_style("maroon")}}>
|
||||
Maroon
|
||||
</button>
|
||||
<button class:button_highlight={style==="hacker"} on:click={() => {set_style("hacker")}}>
|
||||
Hacker
|
||||
</button>
|
||||
<button class:button_highlight={style==="canta"} on:click={() => {set_style("canta")}}>
|
||||
Canta
|
||||
</button>
|
||||
<button class:button_highlight={style==="arc"} on:click={() => {set_style("arc")}}>
|
||||
Arc
|
||||
</button>
|
||||
<button class:button_highlight={style==="deepsea"} on:click={() => {set_style("deepsea")}}>
|
||||
Deep sea
|
||||
</button>
|
||||
</div>
|
||||
{:else}
|
||||
<h3>Direct link</h3>
|
||||
<p>
|
||||
You can directly download the file from this link without using the
|
||||
file viewer:
|
||||
<br/>
|
||||
{domain_url()}{file.get_href}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<h3>Code</h3>
|
||||
<p>
|
||||
You can change the pixeldrain theme for your embedded file. Try the
|
||||
available themes <a href="/appearance">here</a>.
|
||||
Put this code in your website to embed the file.
|
||||
</p>
|
||||
<div class="center">
|
||||
<button class:button_highlight={style===""} on:click={() => {set_style("")}}>
|
||||
Default
|
||||
<textarea bind:value={embed_html} style="width: 99%; height: 4em;"></textarea>
|
||||
<br/>
|
||||
<button on:click={copy} class:button_highlight={copy_status === "success"} class:button_red={copy_status === "error"}>
|
||||
<i class="icon">content_copy</i>
|
||||
{#if copy_status === "success"}
|
||||
Copied!
|
||||
{:else if copy_status === "error"}
|
||||
Error!
|
||||
{:else}
|
||||
Copy HTML
|
||||
{/if}
|
||||
</button>
|
||||
<button class:button_highlight={style==="classic"} on:click={() => {set_style("classic")}}>
|
||||
Classic
|
||||
</button>
|
||||
<button class:button_highlight={style==="solarized_dark"} on:click={() => {set_style("solarized_dark")}}>
|
||||
Solarized
|
||||
</button>
|
||||
<button class:button_highlight={style==="maroon"} on:click={() => {set_style("maroon")}}>
|
||||
Maroon
|
||||
</button>
|
||||
<button class:button_highlight={style==="hacker"} on:click={() => {set_style("hacker")}}>
|
||||
Hacker
|
||||
</button>
|
||||
<button class:button_highlight={style==="canta"} on:click={() => {set_style("canta")}}>
|
||||
Canta
|
||||
</button>
|
||||
<button class:button_highlight={style==="arc"} on:click={() => {set_style("arc")}}>
|
||||
Arc
|
||||
</button>
|
||||
<button class:button_highlight={style==="deepsea"} on:click={() => {set_style("deepsea")}}>
|
||||
Deep sea
|
||||
<button on:click={example}>
|
||||
<i class="icon">visibility</i> Show example
|
||||
</button>
|
||||
</div>
|
||||
{:else}
|
||||
<h3>Direct link</h3>
|
||||
<p>
|
||||
You can directly download the file from this link without using the
|
||||
file viewer:
|
||||
<br/>
|
||||
{domain_url()}{file.get_href}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<h3>Code</h3>
|
||||
<p>
|
||||
Put this code in your website to embed the file.
|
||||
</p>
|
||||
<div class="center">
|
||||
<textarea bind:value={embed_html} style="width: 96%; height: 4em;"></textarea>
|
||||
<br/>
|
||||
<button on:click={copy} class:button_highlight={copy_status === "success"} class:button_red={copy_status === "error"}>
|
||||
<i class="icon">content_copy</i>
|
||||
{#if copy_status === "success"}
|
||||
Copied!
|
||||
{:else if copy_status === "error"}
|
||||
Error!
|
||||
{:else}
|
||||
Copy HTML
|
||||
{/if}
|
||||
</button>
|
||||
<button on:click={example}>
|
||||
<i class="icon">visibility</i> Show example
|
||||
</button>
|
||||
<h3>Example</h3>
|
||||
</div>
|
||||
<h3>Example</h3>
|
||||
<div bind:this={preview_area} style="text-align: center;"></div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user