Skip to content

Commit

Permalink
chore: use new assets url (#212)
Browse files Browse the repository at this point in the history
* chore: use new assets url

* Format code with prettier

* fix: assets

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
bigint and deepsource-autofix[bot] authored Aug 2, 2022
1 parent 4ba6b33 commit 9c90456
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
3 changes: 2 additions & 1 deletion src/components/Shared/Uniswap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@generated/lenstertypes'
import getUniswapURL from '@lib/getUniswapURL'
import React, { FC } from 'react'
import { STATIC_ASSETS } from 'src/constants'

interface Props {
module: LensterCollectModule | LensterFollowModule
Expand All @@ -25,7 +26,7 @@ const Uniswap: FC<Props> = ({ module }) => {
rel="noreferrer noopener"
>
<img
src="https://assets.lenster.xyz/images/brands/uniswap.png"
src={`${STATIC_ASSETS}/brands/uniswap.svg`}
className="w-5 h-5"
height={20}
width={20}
Expand Down
6 changes: 4 additions & 2 deletions src/components/utils/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ const Seo: FC<Props> = ({ title = APP_NAME, description = DESCRIPTION }) => {

<link rel="preconnect" href="https://ik.imagekit.io" />
<link rel="dns-prefetch" href="https://ik.imagekit.io" />
<link rel="preconnect" href="https://assets.lenster.xyz" />
<link rel="dns-prefetch" href="https://assets.lenster.xyz" />
<link rel="preconnect" href="https://lensterassets.xyz" />
<link rel="dns-prefetch" href="https://lensterassets.xyz" />
<link rel="preconnect" href="https://static.lensterassets.xyz" />
<link rel="dns-prefetch" href="https://static.lensterassets.xyz" />
<link rel="preconnect" href="https://ipfs.infura.io" />
<link rel="dns-prefetch" href="https://ipfs.infura.io" />

Expand Down
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const IS_MAINNET = process.env.NEXT_PUBLIC_IS_MAINNET === 'true'
export const APP_NAME = 'Lenster'
export const DESCRIPTION =
'Lenster is a composable, decentralized, and permissionless social media web app built with Lens Protocol 🌿'
export const DEFAULT_OG = 'https://assets.lenster.xyz/images/og/logo.jpeg'
export const DEFAULT_OG = 'https://static.lensterassets.xyz/images/og/logo.jpeg'

// Git
export const GIT_COMMIT_SHA =
Expand All @@ -33,7 +33,7 @@ export const WRONG_NETWORK = IS_MAINNET
export const SIGN_ERROR = 'Failed to sign data'

// URLs
export const STATIC_ASSETS = 'https://assets.lenster.xyz/images'
export const STATIC_ASSETS = 'https://static.lensterassets.xyz/images'
export const API_URL = IS_MAINNET
? 'https://api.lens.dev'
: 'https://api-mumbai.lens.dev'
Expand Down
17 changes: 9 additions & 8 deletions src/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-style: normal;
font-weight: 450;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-Light.woff')
url('https://static.lensterassets.xyz/css/fonts/Lenster-Light.woff')
format('woff');
}

Expand All @@ -12,7 +12,7 @@
font-style: italic;
font-weight: 450;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-LightItalic.woff')
url('https://static.lensterassets.xyz/css/fonts/Lenster-LightItalic.woff')
format('woff');
}

Expand All @@ -21,7 +21,7 @@
font-style: normal;
font-weight: 500;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-Medium.woff')
url('https://static.lensterassets.xyz/css/fonts/Lenster-Medium.woff')
format('woff');
}

Expand All @@ -30,7 +30,7 @@
font-style: italic;
font-weight: 500;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-MediumItalic.woff')
url('https://static.lensterassets.xyz/css/fonts/Lenster-MediumItalic.woff')
format('woff');
}

Expand All @@ -39,15 +39,16 @@
font-style: normal;
font-weight: 700;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-Bold.woff') format('woff');
url('https://static.lensterassets.xyz/css/fonts/Lenster-Bold.woff')
format('woff');
}

@font-face {
font-family: 'Lenster';
font-style: italic;
font-weight: 700;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-BoldItalic.woff')
url('https://static.lensterassets.xyz/css/fonts/Lenster-BoldItalic.woff')
format('woff');
}

Expand All @@ -56,7 +57,7 @@
font-style: normal;
font-weight: 900;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-Black.woff')
url('https://static.lensterassets.xyz/css/fonts/Lenster-Black.woff')
format('woff');
}

Expand All @@ -65,6 +66,6 @@
font-style: italic;
font-weight: 900;
src: local('Lenster'),
url('https://assets.lenster.xyz/css/fonts/Lenster-BlackItalic.woff')
url('https://static.lensterassets.xyz/css/fonts/Lenster-BlackItalic.woff')
format('woff');
}
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ body {

.bg-hero {
background: linear-gradient(90deg, #fff, #fff 50%, hsla(0, 0%, 100%, 0)),
url(https://assets.lenster.xyz/images/patterns/hero.webp);
url(https://static.lensterassets.xyz/images/patterns/hero.webp);
background-size: cover;
}

Expand Down

1 comment on commit 9c90456

@vercel
Copy link

@vercel vercel bot commented on 9c90456 Aug 2, 2022

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.