diff --git a/src/app.html b/src/app.html index 55bc7a2..76ede76 100644 --- a/src/app.html +++ b/src/app.html @@ -11,9 +11,31 @@ background-color: #313052; } - h1, h2, h3, h4, h5, p, li { + h1, h2, h3, h4, h5, p, label, li { color: lightgrey; } + + div#list { + display: flex; + flex-direction: column; + align-items: flex-start; + } + + #list-item { + border-style: solid; + border-radius: 4px; + border-color: #1f1f36; + background-color: #1f1f36; + padding: 0.5em 0.5em 0.5em; + margin: 0 0 16px 0px; + } + + #list-item > input[type="checkbox"] { + display: none; + } + #list-item:has(input[type="checkbox"]:checked) { + background-color: #40406e; + }
{$member.username}
+ {#if $member.intros.length > 0}You need to login first
diff --git a/src/store.ts b/src/store.ts index 398766c..d6e25fc 100644 --- a/src/store.ts +++ b/src/store.ts @@ -18,13 +18,12 @@ function createMemberStore(): MemberStore { return { subscribe: subscribe, + set: set, + addIntro: (intro: IntroIndex) => { update((n) => n.intros.push(intro)); return intro }, _fakeLogin: () => set( { username: "TestUser", - intros: [ - { name: "TestSound", filename: "testsound.mp3", length: 30 }, - { name: "Huh?", filename: "tim allen.mp3", length: 2 }, - ] + intros: [0,1] } ), }