diff --git a/index.html b/index.html index 013982724..755d7e8ae 100644 --- a/index.html +++ b/index.html @@ -11,9 +11,9 @@ - - + content="https://app.radicle.xyz/images/radicle-220x220.png" /> + + @@ -22,8 +22,7 @@ - - + - - - - - - - - diff --git a/public/images/alt-clients.png b/public/images/alt-clients.png deleted file mode 100644 index 7262c60e0..000000000 Binary files a/public/images/alt-clients.png and /dev/null differ diff --git a/public/images/app.png b/public/images/app.png deleted file mode 100644 index 6424fc0dd..000000000 Binary files a/public/images/app.png and /dev/null differ diff --git a/public/images/radicle-220x220.png b/public/images/radicle-220x220.png new file mode 100644 index 000000000..bae036309 Binary files /dev/null and b/public/images/radicle-220x220.png differ diff --git a/public/logo.png b/public/logo.png deleted file mode 100644 index b16b0dc40..000000000 Binary files a/public/logo.png and /dev/null differ diff --git a/public/radicle.svg b/public/radicle.svg index 7781004e5..09b1015bd 100644 --- a/public/radicle.svg +++ b/public/radicle.svg @@ -1,35 +1,63 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/App/Header.svelte b/src/App/Header.svelte index 863d69e45..3c1182ea9 100644 --- a/src/App/Header.svelte +++ b/src/App/Header.svelte @@ -2,11 +2,10 @@ import Floating from "@app/components/Floating.svelte"; import Icon from "@app/components/Icon.svelte"; import Link from "@app/components/Link.svelte"; - import SettingsDropdown from "./Header/SettingsDropdown.svelte"; - import Connect from "@app/App/Header/Connect.svelte"; - import Logo from "./Header/Logo.svelte"; - import Search from "./Header/Search.svelte"; + import Connect from "@app/App/Header/Connect.svelte"; + import Search from "@app/App/Header/Search.svelte"; + import SettingsDropdown from "@app/App/Header/SettingsDropdown.svelte";
- + + +
diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 34b26ee19..b58db0164 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -11,18 +11,6 @@ export async function toClipboard(text: string): Promise { return navigator.clipboard.writeText(text); } -export function setOpenGraphMetaTag( - data: { prop: string; content: string; attr?: string }[], -): void { - const elements = Array.from(document.querySelectorAll(`meta`)); - elements.forEach((element: any) => { - const foundElement = data.find(data => { - return data.prop === element.getAttribute(data.attr || "property"); - }); - if (foundElement) element.content = foundElement.content; - }); -} - export function getRawBasePath( id: string, baseUrl: BaseUrl, diff --git a/src/views/home/Index.svelte b/src/views/home/Index.svelte index 8e7f66f75..bd69145cf 100644 --- a/src/views/home/Index.svelte +++ b/src/views/home/Index.svelte @@ -4,18 +4,12 @@ import * as router from "@app/lib/router"; import { config } from "@app/lib/config"; import { getProjectsFromSeeds } from "@app/lib/search"; - import { setOpenGraphMetaTag, twemoji } from "@app/lib/utils"; + import { twemoji } from "@app/lib/utils"; import Loading from "@app/components/Loading.svelte"; import Message from "@app/components/Message.svelte"; import Widget from "@app/views/projects/Widget.svelte"; - setOpenGraphMetaTag([ - { prop: "og:title", content: "Radicle Interface" }, - { prop: "og:description", content: "Interact with Radicle" }, - { prop: "og:url", content: window.location.href }, - ]); - function goToProject(project: Project, baseUrl: BaseUrl) { router.push({ resource: "projects", diff --git a/tests/support/fixtures.ts b/tests/support/fixtures.ts index cad767f5f..f3d998e7f 100644 --- a/tests/support/fixtures.ts +++ b/tests/support/fixtures.ts @@ -82,9 +82,9 @@ export const test = base.extend<{ .startsWith("https://www.gravatar.com/avatar/") || route.request().url().endsWith(".png") ) { - route.fulfill({ + return route.fulfill({ status: 200, - path: "./public/favicon.ico", + path: "./public/radicle.svg", }); } else { log(