mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
wip
This commit is contained in:
parent
ee96b3ef93
commit
d99b9efb26
|
@ -1,6 +1,7 @@
|
||||||
@use "../base";
|
@use "../base";
|
||||||
@use "pulldown/help";
|
@use "pulldown/help";
|
||||||
@use "pulldown/accounts";
|
@use "pulldown/accounts";
|
||||||
|
@use "pulldown/files";
|
||||||
|
|
||||||
#overlay {
|
#overlay {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
text-align:center;
|
text-align:center;
|
||||||
|
|
||||||
@media screen and (max-width:500px) {
|
@media screen and (max-width:500px) {
|
||||||
transform:scale(1.35) translateY(-50%);
|
/* lazy */
|
||||||
|
transform:scale(1.15) translateY(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
|
29
src/style/app/pulldown/files.scss
Normal file
29
src/style/app/pulldown/files.scss
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
.pulldown_display[name=files] {
|
||||||
|
.notLoggedIn {
|
||||||
|
position:absolute;
|
||||||
|
top:100%;
|
||||||
|
transform:translateY(-100%);
|
||||||
|
width:100%;
|
||||||
|
text-align:center;
|
||||||
|
background-color:#202020;
|
||||||
|
|
||||||
|
.flavor {
|
||||||
|
font-size:16px;
|
||||||
|
color:#999999;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: #232323;
|
||||||
|
color:#999999;
|
||||||
|
font-size:14px;
|
||||||
|
border:1px solid #999999;
|
||||||
|
padding:2px 10px 2px 10px;
|
||||||
|
cursor:pointer;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color:#333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -49,6 +49,7 @@
|
||||||
background-color:#333333;
|
background-color:#333333;
|
||||||
color:#DDDDDD;
|
color:#DDDDDD;
|
||||||
border:none;
|
border:none;
|
||||||
|
border-radius: 0px;
|
||||||
outline:none;
|
outline:none;
|
||||||
padding:5px;
|
padding:5px;
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
import Topbar from "./elem/Topbar.svelte";
|
import Topbar from "./elem/Topbar.svelte";
|
||||||
import PulldownManager from "./elem/PulldownManager.svelte";
|
import PulldownManager from "./elem/PulldownManager.svelte";
|
||||||
import UploadWindow from "./elem/UploadWindow.svelte";
|
import UploadWindow from "./elem/UploadWindow.svelte";
|
||||||
|
import { pulldownManager } from "./elem/stores.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type Topbar
|
* @type Topbar
|
||||||
|
@ -12,12 +13,16 @@
|
||||||
/**
|
/**
|
||||||
* @type PulldownManager
|
* @type PulldownManager
|
||||||
*/
|
*/
|
||||||
let pulldownManager;
|
let pulldown;
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
pulldownManager.set(pulldown)
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Topbar bind:this={topbar} pulldown={pulldownManager} />
|
<Topbar bind:this={topbar} pulldown={pulldown} />
|
||||||
<div id="appContent">
|
<div id="appContent">
|
||||||
<PulldownManager bind:this={pulldownManager} />
|
<PulldownManager bind:this={pulldown} />
|
||||||
|
|
||||||
<UploadWindow/>
|
<UploadWindow/>
|
||||||
</div>
|
</div>
|
|
@ -1,7 +1,31 @@
|
||||||
<script>
|
<script>
|
||||||
import Pulldown from "./Pulldown.svelte"
|
import Pulldown from "./Pulldown.svelte"
|
||||||
|
import { pulldownManager } from "../stores.mjs";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Pulldown>
|
<Pulldown name="files">
|
||||||
<p>no</p>
|
|
||||||
|
<div class="notLoggedIn">
|
||||||
|
<div style:height="2px" style:background-color="#66AAFF" />
|
||||||
|
<div style:height="10px" />
|
||||||
|
<p class="flavor"><em>Log in to view uploads & collections</em></p>
|
||||||
|
<button on:click={$pulldownManager.openPulldown("account")}>OK</button>
|
||||||
|
<div style:height="14px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
put scrolling div containing options here
|
||||||
|
if not logged in, most options will be hidden
|
||||||
|
& the div containing the options will be resized
|
||||||
|
(actually, maybe we could use flexbox for this)
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<div>
|
||||||
|
<h2>Anonymous file deletion</h2>
|
||||||
|
<p>Enter your deletion code</p>
|
||||||
|
<input placeholder="0000 0000 0000 0000">
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
|
|
||||||
</Pulldown>
|
</Pulldown>
|
|
@ -1,3 +1,5 @@
|
||||||
|
<!-- i'm lazy, could probably just use plain html here but hwatever, mgiht make this grab from the server idk -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Pulldown from "./Pulldown.svelte"
|
import Pulldown from "./Pulldown.svelte"
|
||||||
|
|
||||||
|
|
3
src/svelte/elem/stores.mjs
Normal file
3
src/svelte/elem/stores.mjs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import { writable } from "svelte/store"
|
||||||
|
|
||||||
|
export let pulldownManager = writable(0)
|
Loading…
Reference in a new issue