Compare commits

..

20 commits

Author SHA1 Message Date
Ari
4a3d55634d
CI/CD ready 2025-05-29 04:28:10 -04:00
Ari
b9dca99d12
Forgot the Token
Some checks failed
Deploy / Deploy (push) Failing after 10s
2025-05-29 04:26:50 -04:00
Ari
b314bebc6c
yaml was non valid
Some checks failed
Deploy / Deploy (push) Failing after 59s
2025-05-29 04:25:33 -04:00
Ari
58e12b6130
lets try a different way 2025-05-29 04:23:13 -04:00
Ari
0c8eb83f5b
CI/CD draft
Some checks failed
Deploy / Deploy (push) Failing after 21s
2025-05-29 04:17:03 -04:00
Ari
36d286fba8
Mild shenanigans 2025-05-29 03:43:07 -04:00
Ari
db7424e473
Light edit to the express theme 2025-05-29 03:35:32 -04:00
Ari
0e55f9060f
Easter Egg Added 2025-05-29 03:25:15 -04:00
Ari
7dd07d95c8
Express theme added (ari.express themed theme theme declaration) 2025-05-29 02:24:38 -04:00
12f3586f74
Theme tweaks 2025-05-16 07:26:16 +09:00
04735a538d
Remove colors.css and new default theme 2025-05-15 18:13:36 +09:00
8e7f5fc0ab
Merge remote-tracking branch 'origin/astra/overrides' into astra/overrides 2025-05-15 16:31:11 +09:00
Ari
e75f41f7f1
Run the plugin before svelte 2025-05-15 03:30:53 -04:00
fc8d61e1ef
Theming 101 2025-05-15 16:20:16 +09:00
Ari
ec73af5618
Added a separate file for color variables 2025-05-15 02:24:42 -04:00
Ari
cebae8c7ae
Moved all the styles into a single file 2025-05-15 01:59:24 -04:00
Ari
0a6279823e
Build step for the css themes continued 2025-05-15 01:36:19 -04:00
Ari
e49ce63db9
Build step for the theme file 2025-05-15 01:35:50 -04:00
4e1faff7e3
Update gitignore for configs 2025-05-15 14:22:02 +09:00
8eda5e6672
Config.ts -> config.ts.example 2025-05-15 11:40:39 +09:00
5 changed files with 21 additions and 38 deletions

View file

@ -46,11 +46,16 @@ we use our own CI/CD workflow at [`.forgejo/workflows/deploy.yaml`](.forgejo/wor
## theming
themes are located in the `themes/` directory, you can create your own theme by copying one of the existing themes and modifying it to your liking.
the colors are designated in [`src/app.css`](src/app.css) as variables, go crazy with them
currently, the name of the theme is determined by the directory name, and the theme itself is defined in `theme.css` inside that directory.
the rest is done by editing the css files and style tags directly, good luck
you can switch themes by changing the `theme` property in `config.ts`.
relevant files:
- [`src/App.svelte`](src/App.svelte)
- [`src/app.css`](src/app.css)
- [`src/lib/AccountComponent.svelte`](src/lib/AccountComponent.svelte)
- [`src/lib/PostComponent.svelte`](src/lib/PostComponent.svelte)
the favicon is located at [`public/favicon.ico`](public/favicon.ico)

View file

@ -12,14 +12,10 @@
alt="avatar of {account.displayName}"
src="{Config.PDS_URL}/xrpc/com.atproto.sync.getBlob?did={account.did}&cid={account.avatarCid}"
/>
<div id="accountName">
{account.displayName || account.handle || account.did}
</div>
{:else}
<div id="accountName" class="no-avatar">
{account.displayName || account.handle || account.did}
</div>
{/if}
<div id="accountName">
{account.displayName || account.handle || account.did}
</div>
</div>
</a>

View file

@ -132,13 +132,7 @@ const getDidsFromPDS = async (): Promise<At.Did[]> => {
const getAccountMetadata = async (
did: `did:${string}:${string}`,
) => {
const account: AccountMetadata = {
did: did,
handle: "", // Guaranteed to be filled out later
displayName: "",
avatarCid: null,
};
// gonna assume self exists in the app.bsky.actor.profile
try {
const { data } = await rpc.get("com.atproto.repo.getRecord", {
params: {
@ -148,22 +142,21 @@ const getAccountMetadata = async (
},
});
const value = data.value as AppBskyActorProfile.Record;
account.displayName = value.displayName || "";
const handle = await blueskyHandleFromDid(did);
const account: AccountMetadata = {
did: did,
handle: handle,
displayName: value.displayName || "",
avatarCid: null,
};
if (value.avatar) {
account.avatarCid = value.avatar.ref["$link"];
}
return account;
} catch (e) {
console.warn(`Error fetching profile for ${did}:`, e);
}
try {
account.handle = await blueskyHandleFromDid(did);
} catch (e) {
console.error(`Error fetching handle for ${did}:`, e);
console.error(`Error fetching metadata for ${did}:`, e);
return null;
}
return account;
};
const getAllMetadataFromPds = async (): Promise<AccountMetadata[]> => {

View file

@ -237,7 +237,6 @@ a:hover {
margin-right: 4px;
border: 4px solid var(--border-color);
box-shadow: var(--border-color) 10px 10px;
min-height: 30px;
}
#accountName {
margin-left: 10px;
@ -250,10 +249,6 @@ a:hover {
white-space: nowrap;
}
.no-avatar {
margin-left: 40px !important;
}
/* App.Svelte */
/* desktop style */

View file

@ -235,7 +235,6 @@ a:hover {
padding: 0px;
margin-bottom: 15px;
border: 1px solid var(--border-color);
min-height: 30px;
}
#accountName {
margin-left: 10px;
@ -248,11 +247,6 @@ a:hover {
white-space: nowrap;
}
.no-avatar {
margin-left: 70px !important;
}
/* App.Svelte */
/* desktop style */