Skip to content

Commit

Permalink
Merge pull request #1 from gawainb/g2-updates
Browse files Browse the repository at this point in the history
Image updated
  • Loading branch information
sirgawain0x committed Mar 1, 2022
2 parents d80e8dc + 29e90f3 commit 7ab0615
Show file tree
Hide file tree
Showing 6 changed files with 474 additions and 514 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@loomhq/loom-embed": "^1.2.7",
"@loomhq/loom-sdk": "^2.21.2",
"@textile/hub": "^6.1.2",
"@usedapp/core": "^0.4.4",
"@usedapp/core": "^0.11.0",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"@web3-react/network-connector": "^6.1.9",
Expand Down
13 changes: 8 additions & 5 deletions src/components/BrandHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Image from "next/image";

const imgSrc = 'brands.jpg'

const myLoader = ({ src, width, quality }) => {
return `https://res.cloudinary.com/${src}?w=${width}&q=${quality || 75}`
}

const BrandHero = () => {
const bg = useColorModeValue("white", "gray.800");
return (
Expand Down Expand Up @@ -131,12 +135,11 @@ const BrandHero = () => {
w={{ lg: "50%" }}
>
<Image
src={imgSrc}
loader={myLoader}
src="dyangxc7h/image/upload/v1623552689/creative/brands.jpg"
alt="Time Square Brands"
loading="eager"
layout="responsive"
width={"100%"}
height={"100%"}
width={1000}
height={720}

/>
</Box>
Expand Down
6 changes: 5 additions & 1 deletion src/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { Box, Flex, chakra, Heading, Stack, Button } from '@chakra-ui/react'
export default function Hero() {

const myLoader = ({ src, width, quality }) => {
return `https://res.cloudinary.com/${src}?w=${width}&q=${quality || 75}`
}

return(
<Box
w="full"
h="container.sm"
backgroundImage="url(https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80)"
backgroundImage="url(https://res.cloudinary.com/dyangxc7h/image/upload/v1623552689/creative/brands.jpg)"
bgPos="center"
bgSize="cover"
>
Expand Down
7 changes: 6 additions & 1 deletion src/components/common/Navbar/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ import SignUp from './SignUp';

const imgSrc = 'Creative_logo.png'

const myLoader = ({ src, width, quality }) => {
return `https://res.cloudinary.com/${src}?w=${width}&q=${quality || 75}`
}

type WindowInstanceWithEthereum = Window & typeof globalThis & { ethereum?: providers.ExternalProvider };
class StrongType<Definition, Type> {
// @ts-ignore
Expand Down Expand Up @@ -199,7 +203,8 @@ const SignIn = (props) => {
<Flex alignItems="center" pt="2%" justifyContent="space-between">
<Stack spacing={1}>
<Image
src={imgSrc}
loader={myLoader}
src="dyangxc7h/image/upload/v1623552244/creative/Creative_logo.png"
alt="Creative Logo"
width={100}
height={100}
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/Navbar/header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useRef } from "react";
import { useRouter } from 'next/router';
import { useEthers, shortenAddress, useNotifications, useLookupAddress, getChainName } from '@usedapp/core';
import { useEthers, shortenAddress, useNotifications, useLookupAddress, getChainName, ChainId } from '@usedapp/core';
import ConnectWallet from "../Navbar/ConnectWallet";
import {
Alert,
Expand Down Expand Up @@ -82,7 +82,7 @@ const Header = ({ children }: HeaderProps): JSX.Element => {
const { account, deactivate, chainId} = useEthers()
const { notifications } = useNotifications()
const ens = useLookupAddress()
const chainName = getChainName(chainId);
const chainName = ChainId;

const { toggleColorMode: toggleMode } = useColorMode();
const text = useColorModeValue("dark", "light");
Expand Down

0 comments on commit 7ab0615

Please sign in to comment.