This commit is contained in:
May 2023-02-08 16:24:00 -08:00
parent f634fb2484
commit ee96b3ef93
8 changed files with 56 additions and 19 deletions

View file

@ -1,5 +1,5 @@
@use "../base"; @use "../base";
@use "pulldown/faq"; @use "pulldown/help";
@use "pulldown/accounts"; @use "pulldown/accounts";
#overlay { #overlay {

View file

@ -1,16 +1,47 @@
.pulldown_display[name=accounts] { .pulldown_display[name=accounts] {
.notLoggedIn { .notLoggedIn {
div {
text-align:center; position:absolute;
top:50%;
transform:translateY(-50%);
width:100%;
text-align:center;
h1 { @media screen and (max-width:500px) {
font-weight:600; transform:scale(1.35) translateY(-50%);
font-size:24px; }
}
.flavor { h1 {
font-size:14px; font-weight:600;
color:#999999; font-size:24px;
}
.flavor {
font-size:14px;
color:#999999;
margin: 0 0 10px 0;
}
a {
text-decoration: none;
color:#999999;
font-size:14px;
&::after {
content:"";
font-size:0px;
opacity: 0;
transition-duration:250ms;
}
&:hover {
&::after {
font-size:13px;
opacity: 1;
transition-duration:250ms;
}
}
}
} }
} }

View file

@ -1,9 +1,9 @@
.pulldown_display[name=faq] { .pulldown_display[name=help] {
overflow-y:auto; overflow-y:auto;
.faqGroup { .faqGroup {
padding:10px; padding:6px 10px 4px 10px;
h2 { h2 {
font-weight: 400; font-weight: 400;

View file

@ -4,13 +4,13 @@
// can't find a better way to do this // can't find a better way to do this
import Files from "./pulldowns/Files.svelte"; import Files from "./pulldowns/Files.svelte";
import Accounts from "./pulldowns/Accounts.svelte"; import Accounts from "./pulldowns/Accounts.svelte";
import FAQ from "./pulldowns/FAQ.svelte"; import Help from "./pulldowns/Help.svelte";
export let allPulldowns = new Map() export let allPulldowns = new Map()
allPulldowns allPulldowns
.set("account",Accounts) .set("account",Accounts)
.set("faq",FAQ) .set("help",Help)
.set("files",Files) .set("files",Files)
export const pulldownOpen = writable(false); export const pulldownOpen = writable(false);

View file

@ -23,7 +23,7 @@
<button class="menuBtn" on:click={() => pulldown.openPulldown("files")}>files</button> <button class="menuBtn" on:click={() => pulldown.openPulldown("files")}>files</button>
<button class="menuBtn" on:click={() => pulldown.openPulldown("account")}>account</button> <button class="menuBtn" on:click={() => pulldown.openPulldown("account")}>account</button>
<button class="menuBtn" on:click={() => pulldown.openPulldown("faq")}>faq</button> <button class="menuBtn" on:click={() => pulldown.openPulldown("help")}>help</button>
<div /> <!-- not sure what's offcenter but something is <div /> <!-- not sure what's offcenter but something is
so this div is here to ""fix"" that --> so this div is here to ""fix"" that -->

View file

@ -4,7 +4,13 @@
<Pulldown name="accounts"> <Pulldown name="accounts">
<div class="notLoggedIn"> <div class="notLoggedIn">
<h1>monofile <span style:color="#999999">accounts</span></h1> <div>
<p class="flavor">Gain control of your uploads.</p> <h1>monofile <span style:color="#999999">accounts</span></h1>
<p class="flavor">Gain control of your uploads.</p>
<a class="signUp" href="/signup">Sign up</a>
<br />
<a class="signIn" href="/login">Log in</a>
</div>
</div> </div>
</Pulldown> </Pulldown>

View file

@ -13,7 +13,7 @@
] ]
</script> </script>
<Pulldown name="faq"> <Pulldown name="help">
{#each faq as question} {#each faq as question}
<div class="faqGroup"> <div class="faqGroup">
<h2>{question.question}</h2> <h2>{question.question}</h2>

View file

@ -8,7 +8,7 @@
<div <div
class="pulldown_display" class="pulldown_display"
name={name} name={name}
transition:fade={{duration:200}} transition:fade={{duration:150}}
> >
<slot /> <slot />
</div> </div>