From e5d8cafd258f249eb1ed3ec542b4a4585c30c180 Mon Sep 17 00:00:00 2001 From: ari melody Date: Sun, 30 Jun 2024 17:37:19 +0100 Subject: [PATCH] rebrand to campfire! --- README.md | 24 ++++++++++++++---------- res/campfire-favicon.afdesign | 3 +++ res/campfire-logo.afdesign | 3 +++ res/spacesocial-favicon.afdesign | 3 --- res/spacesocial-logo.afdesign | 3 --- src/app.html | 16 ++++++++-------- src/img/CampfireLogo.svelte | 5 +++++ src/img/campfire-logo.svg | 7 +++++++ src/img/spacesocial-logo-dark.svg | 29 ----------------------------- src/img/spacesocial-logo-light.svg | 29 ----------------------------- src/lib/app.css | 2 +- src/lib/client/api.js | 4 ++-- src/lib/client/client.js | 2 +- src/lib/ui/Navigation.svelte | 10 ++++------ src/routes/+layout.svelte | 4 +--- src/routes/+page.svelte | 11 +++++------ static/favicon.png | Bin 25391 -> 33652 bytes static/icon/campfire-icon.png | Bin 0 -> 29102 bytes 18 files changed, 54 insertions(+), 101 deletions(-) create mode 100644 res/campfire-favicon.afdesign create mode 100644 res/campfire-logo.afdesign delete mode 100644 res/spacesocial-favicon.afdesign delete mode 100644 res/spacesocial-logo.afdesign create mode 100644 src/img/CampfireLogo.svelte create mode 100644 src/img/campfire-logo.svg delete mode 100644 src/img/spacesocial-logo-dark.svg delete mode 100644 src/img/spacesocial-logo-light.svg create mode 100644 static/icon/campfire-icon.png diff --git a/README.md b/README.md index adab278..9ea7d71 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,14 @@ -# space social +# Campfire social media for the galaxy-wide-web! 🌌 -this is a neat experiment in building as much of a fediverse-compatible -software stack as i can (at least before the crippling weight of the full -activitypub spec finally cripples me) - -starting, of course, with a nice frontend! ✨ +this is a *very experimental* frontend for browsing the fediverse, built +from the ground up in svelte! should you choose to play around with this yourself, just know that *many -things are bound not to work!* notably, this has only been tested on iceshrimp -and mastodon API-compliant instances. anything beyond this will likely be -incompatible, and the web console will get very upset. +things are bound not to work!* notably, campfire is currently only being +battle-tested on mastodon API-compliant instances. anything beyond this +will likely be incompatible, and the web console will get very upset. ## features @@ -34,10 +31,17 @@ incompatible, and the web console will get very upset. - fast account switching - post editing/deletion - push notifications +- ...and potentially much more as development continues! ## try it out! - `git clone` this repo - `npm install` the dependencies - `npm run dev` to spin up the dev environment -- have fun! ✨ + +if you wish to run this in production, you need only `npm run build` and +place the static files somewhere accessible by a static webhost, such as +nginx or apache! **note:** your web server should attempt to reach +`/fallback.html` before erroring out. + +have fun! ✨ diff --git a/res/campfire-favicon.afdesign b/res/campfire-favicon.afdesign new file mode 100644 index 0000000..8ff94a6 --- /dev/null +++ b/res/campfire-favicon.afdesign @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:846759440d8bdc603d08bec02c4a5e5e65e15aedd0de394b8d75c83be83857eb +size 58281 diff --git a/res/campfire-logo.afdesign b/res/campfire-logo.afdesign new file mode 100644 index 0000000..017152f --- /dev/null +++ b/res/campfire-logo.afdesign @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f670c0f8c1785a3bfc16f0d343175291a6dcd460760bac07ae959068be532854 +size 31593 diff --git a/res/spacesocial-favicon.afdesign b/res/spacesocial-favicon.afdesign deleted file mode 100644 index 327a52b..0000000 --- a/res/spacesocial-favicon.afdesign +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1702315ee2d8dabfd6217fa99dc86ac73e24e190f8c580185e4f66be7836511e -size 55590 diff --git a/res/spacesocial-logo.afdesign b/res/spacesocial-logo.afdesign deleted file mode 100644 index 7e42a6e..0000000 --- a/res/spacesocial-logo.afdesign +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a03c7e1af2cc54bbe621de3a68f41a75574dbcc498a9918e9fe387c5cb9d31c0 -size 41570 diff --git a/src/app.html b/src/app.html index 34a9fc5..ce47f4e 100644 --- a/src/app.html +++ b/src/app.html @@ -5,21 +5,21 @@ - Space Social + Campfire - + - + - + - - - + + + - + %sveltekit.head% diff --git a/src/img/CampfireLogo.svelte b/src/img/CampfireLogo.svelte new file mode 100644 index 0000000..2634a57 --- /dev/null +++ b/src/img/CampfireLogo.svelte @@ -0,0 +1,5 @@ + diff --git a/src/img/campfire-logo.svg b/src/img/campfire-logo.svg new file mode 100644 index 0000000..99365b6 --- /dev/null +++ b/src/img/campfire-logo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/img/spacesocial-logo-dark.svg b/src/img/spacesocial-logo-dark.svg deleted file mode 100644 index 228b976..0000000 --- a/src/img/spacesocial-logo-dark.svg +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - space social - - diff --git a/src/img/spacesocial-logo-light.svg b/src/img/spacesocial-logo-light.svg deleted file mode 100644 index 01de8ce..0000000 --- a/src/img/spacesocial-logo-light.svg +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - space social - - diff --git a/src/lib/app.css b/src/lib/app.css index 5a25a68..b2fcd4c 100644 --- a/src/lib/app.css +++ b/src/lib/app.css @@ -58,7 +58,7 @@ a:hover { text-decoration: underline; } -#spacesocial-app { +#app { margin: auto 0; padding: 0 16px; display: flex; diff --git a/src/lib/client/api.js b/src/lib/client/api.js index a6ae8b4..27f0e0b 100644 --- a/src/lib/client/api.js +++ b/src/lib/client/api.js @@ -7,10 +7,10 @@ import { get } from 'svelte/store'; export async function createApp(host) { let form = new FormData(); - form.append("client_name", "space social"); + form.append("client_name", "Campfire"); form.append("redirect_uris", `${location.origin}/callback`); form.append("scopes", "read write push"); - form.append("website", "https://spacesocial.arimelody.me"); + form.append("website", "https://campfire.bliss.town"); const res = await fetch(`https://${host}/api/v1/apps`, { method: "POST", diff --git a/src/lib/client/client.js b/src/lib/client/client.js index e96f864..f4e3788 100644 --- a/src/lib/client/client.js +++ b/src/lib/client/client.js @@ -4,7 +4,7 @@ import { get, writable } from 'svelte/store'; let client = writable(false); -const save_name = "spacesocial"; +const save_name = "campfire"; export class Client { instance; diff --git a/src/lib/ui/Navigation.svelte b/src/lib/ui/Navigation.svelte index 44d46ec..7a01fd3 100644 --- a/src/lib/ui/Navigation.svelte +++ b/src/lib/ui/Navigation.svelte @@ -1,6 +1,5 @@ -
+
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5757e71..ffa3414 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,5 @@