Somewhat sensible design (WIP)

This commit is contained in:
Astra 2025-04-20 17:15:00 +09:00
parent 164571ec19
commit dcca38a994
Signed by: astra
SSH key fingerprint: SHA256:jQDNS75/33T59Ey4yAzrUPP/5YQaXEetsW8hwUae+ag
5 changed files with 162 additions and 75 deletions

View file

@ -7,11 +7,13 @@
</script>
<main>
<h1>Welcome to the Feed</h1>
<div id="Content">
{#await accountsPromise}
<p>Loading...</p>
{:then accountsData}
<div id="Account">
<h1 id="Header">ATProto PDS</h1>
<p>Home to {accountsData.length} accounts</p>
{#each accountsData as accountObject}
<AccountComponent account={accountObject} />
{/each}
@ -29,7 +31,39 @@
{/each}
</div>
{/await}
</div>
</main>
<style>
#Content {
display: flex;
/* split the screen in half, left for accounts, right for posts */
width: 100%;
height: 100%;
flex-direction: row;
justify-content: space-between;
align-items: center;
background-color: #12082b;
color: #ffffff;
}
#Feed {
width: 65%;
height: 80vh;
overflow-y: scroll;
padding: 20px;
}
#Account {
width: 35%;
height: 80vh;
overflow-y: scroll;
padding: 20px;
background-color: #070311;
border-radius: 10px;
}
#Header {
text-align: center;
font-size: 2em;
margin-bottom: 20px;
}
</style>