Somewhat sensible design (WIP)
This commit is contained in:
parent
164571ec19
commit
dcca38a994
5 changed files with 162 additions and 75 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue