Skip to content

Commit

Permalink
chore: Remove legacy static assets and update image references
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 1, 2025
1 parent 71c4f9e commit 6d8b5c0
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 40 deletions.
Binary file removed apps/web/public/16x16.png
Binary file not shown.
Binary file removed apps/web/public/32x32.png
Binary file not shown.
Binary file removed apps/web/public/ati.png
Binary file not shown.
3 changes: 0 additions & 3 deletions apps/web/public/lens.svg

This file was deleted.

Binary file removed apps/web/public/logo.png
Binary file not shown.
8 changes: 0 additions & 8 deletions apps/web/public/opensearch.xml

This file was deleted.

Binary file removed apps/web/public/pride.png
Binary file not shown.
16 changes: 0 additions & 16 deletions apps/web/src/components/Common/MetaTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,6 @@ const MetaTags: FC<MetaTagsProps> = ({
<meta content={creator} property="publisher" />
</>
)}

<link
href="/opensearch.xml"
rel="search"
title={APP_NAME}
type="application/opensearchdescription+xml"
/>

{/* Prefetch and Preconnect */}
<link href="https://hey-assets.b-cdn.net" rel="preconnect" />
<link href="https://hey-assets.b-cdn.net" rel="dns-prefetch" />

{/* Icons */}
<link href="/ati.png" rel="apple-touch-icon" sizes="180x180" />
<link href="/32x32.png" rel="icon" sizes="32x32" type="image/png" />
<link href="/16x16.png" rel="icon" sizes="16x16" type="image/png" />
</Head>
);
};
Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/components/Common/Providers/Web3Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import {
APP_NAME,
BRAND_COLOR,
DESCRIPTION,
STATIC_IMAGES_URL,
WALLETCONNECT_PROJECT_ID
} from "@hey/data/constants";
import { LENS_TESTNET_RPCS } from "@hey/data/rpcs";
import { chains } from "@lens-network/sdk/viem";
import { ConnectKitProvider, getDefaultConfig } from "connectkit";
import type { FC, ReactNode } from "react";
import { http, WagmiProvider, createConfig, fallback } from "wagmi";
import { createConfig, fallback, http, WagmiProvider } from "wagmi";

const config = createConfig(
getDefaultConfig({
Expand All @@ -26,7 +27,7 @@ const config = createConfig(
appName: APP_NAME,
appDescription: DESCRIPTION,
appUrl: "https://hey.xyz",
appIcon: "https://hey.xyz/logo.png"
appIcon: `${STATIC_IMAGES_URL}/app-icon/0.png`
})
);

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Home/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APP_NAME } from "@hey/data/constants";
import { APP_NAME, STATIC_IMAGES_URL } from "@hey/data/constants";
import type { FC } from "react";

const Hero: FC = () => {
Expand All @@ -8,7 +8,7 @@ const Hero: FC = () => {
<img
alt="Hey Logo"
className="mr-5 size-24 sm:mr-8 sm:size-36"
src="/logo.png"
src={`${STATIC_IMAGES_URL}/app-icon/0.png`}
/>
<div className="flex-1 space-y-1 tracking-tight sm:max-w-lg">
<div className="font-extrabold text-2xl sm:text-5xl">
Expand Down
5 changes: 4 additions & 1 deletion apps/web/src/components/Shared/FullPageLoader.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { STATIC_IMAGES_URL } from "@hey/data/constants";
import isPrideMonth from "@hey/helpers/isPrideMonth";
import type { FC } from "react";
import PageMetatags from "./PageMetatags";

const FullPageLoader: FC = () => {
const logoSrc = isPrideMonth() ? "/pride.png" : "/logo.png";
const logoSrc = isPrideMonth()
? `${STATIC_IMAGES_URL}/app-icon/1.png`
: `${STATIC_IMAGES_URL}/app-icon/0.png`;

return (
<div className="grid h-screen place-items-center">
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/Shared/LoginButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { STATIC_IMAGES_URL } from "@hey/data/constants";
import { Button } from "@hey/ui";
import cn from "@hey/ui/cn";
import type { FC, MouseEvent } from "react";
Expand Down Expand Up @@ -34,7 +35,7 @@ const LoginButton: FC<LoginButtonProps> = ({
alt="Lens Logo"
className="mr-0.5 h-3"
height={12}
src="/lens.svg"
src={`${STATIC_IMAGES_URL}/brands/lens.svg`}
width={19}
/>
}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Shared/NotLoggedIn.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import MetaTags from "@components/Common/MetaTags";
import LoginButton from "@components/Shared/LoginButton";
import { APP_NAME } from "@hey/data/constants";
import { APP_NAME, STATIC_IMAGES_URL } from "@hey/data/constants";
import { H2 } from "@hey/ui";
import type { FC } from "react";

Expand All @@ -12,7 +12,7 @@ const NotLoggedIn: FC = () => {
alt="Logo"
className="size-20"
height={80}
src="/logo.png"
src={`${STATIC_IMAGES_URL}/app-icon/0.png`}
width={80}
/>
<div className="py-10 text-center">
Expand Down
5 changes: 0 additions & 5 deletions apps/web/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ class HeyDocument extends Document {
<link href="https://hey-assets.b-cdn.net" rel="preconnect" />
<link href="https://hey-assets.b-cdn.net" rel="dns-prefetch" />

{/* Icons */}
<link href="/ati.png" rel="apple-touch-icon" sizes="180x180" />
<link href="/32x32.png" rel="icon" sizes="32x32" type="image/png" />
<link href="/16x16.png" rel="icon" sizes="16x16" type="image/png" />

{/* Simple Analytics */}
<Script
async
Expand Down

0 comments on commit 6d8b5c0

Please sign in to comment.