Skip to content

Commit

Permalink
icons and meta, removing unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
samepant committed Jan 20, 2024
1 parent a9410b4 commit 016108a
Show file tree
Hide file tree
Showing 18 changed files with 238 additions and 11 deletions.
Binary file added frontend/public/android-chrome-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions frontend/public/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#fac0ea</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added frontend/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/favicon.ico
Binary file not shown.
Binary file added frontend/public/icon3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 53 additions & 4 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,34 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Mech" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />

<link
rel="apple-touch-icon"
sizes="144x144"
href="%PUBLIC_URL%/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="%PUBLIC_URL%/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="%PUBLIC_URL%/favicon-16x16.png"
/>
<link rel="manifest" href="%PUBLIC_URL%/site.webmanifest" />
<link
rel="mask-icon"
href="%PUBLIC_URL%/safari-pinned-tab.svg"
color="#fac0ea"
/>
<meta name="msapplication-TileColor" content="#fac0ea" />
<meta name="theme-color" content="#fac0ea" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -21,7 +44,33 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Mech</title>
<!-- Primary Meta Tags -->
<title>Mech — Inventories for NFTs</title>
<meta name="title" content="Mech — Inventories for NFTs" />
<meta
name="description"
content="Mech gives any NFT the abilities of a smart contract account — hold tokens, become a multisig owner, etc. Whoever owns that NFT becomes the operator of its Mech."
/>

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://mech.mom/" />
<meta property="og:title" content="Mech — Inventories for NFTs" />
<meta
property="og:description"
content="Mech gives any NFT the abilities of a smart contract account — hold tokens, become a multisig owner, etc. Whoever owns that NFT becomes the operator of its Mech."
/>
<meta property="og:image" content="%PUBLIC_URL%/webmeta.png" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://mech.mom/" />
<meta property="twitter:title" content="Mech — Inventories for NFTs" />
<meta
property="twitter:description"
content="Mech gives any NFT the abilities of a smart contract account — hold tokens, become a multisig owner, etc. Whoever owns that NFT becomes the operator of its Mech."
/>
<meta property="twitter:image" content="%PUBLIC_URL%/webmeta.png" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file removed frontend/public/logo192.png
Binary file not shown.
Binary file removed frontend/public/logo310.png
Binary file not shown.
Binary file added frontend/public/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
158 changes: 158 additions & 0 deletions frontend/public/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions frontend/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Mech",
"short_name": "Mech",
"icons": [
{
"src": "/android-chrome-144x144.png",
"sizes": "144x144",
"type": "image/png"
}
],
"theme_color": "#fac0ea",
"background_color": "#fac0ea",
"display": "standalone"
}
Binary file added frontend/public/webmeta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/NFTGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface Props {

export const AccountNftGrid: React.FC<Props> = ({ address }) => {
const chainId = useChainId()
const { data, isLoading, error } = useTokenBalances({
const { data, isLoading } = useTokenBalances({
accountAddress: address,
chainId,
})
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/components/NFTItem/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import classes from "./NFTItem.module.css"
import { useState } from "react"
import { shortenAddress } from "../../utils/shortenAddress"
import copy from "copy-to-clipboard"
import clsx from "clsx"
Expand All @@ -25,8 +24,6 @@ const NFTItem: React.FC<Props> = ({ nft, chainId }) => {
const mechAddress = calculateMechAddress(getNFTContext(nft), chainId)
const operatorAddress = nft.owner_of

const [imageError, setImageError] = useState(false)

const {
data,
isLoading: mechBalancesLoading,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/hooks/useCollection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useInfiniteQuery, useQuery } from "@tanstack/react-query"
import { MoralisApiListResponse, MoralisNFT } from "../types/Token"
import { useInfiniteQuery } from "@tanstack/react-query"
import { MoralisApiListResponse } from "../types/Token"

interface Props {
tokenAddress: string
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/Collection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Collection: React.FC = () => {
} catch (error) {
console.log(error)
}
const { data, isLoading, error } = useCollectionMetadata({
const { data, isLoading } = useCollectionMetadata({
tokenAddress: validAddress,
chainId,
})
Expand Down

1 comment on commit 016108a

@vercel
Copy link

@vercel vercel bot commented on 016108a Jan 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.