Skip to content

Commit

Permalink
challenge0 ui
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielaDelPilarR committed Apr 19, 2024
1 parent d939b43 commit 071259d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
9 changes: 5 additions & 4 deletions packages/nextjs/app/ipfsDownload/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { lazy, useEffect, useState } from "react";
import type { NextPage } from "next";
import { notification } from "~~/utils/scaffold-stark/notification";
import ButtonStyle from "~~/components/ButtonStyle/ButtonStyle";
// import { getMetadataFromIPFS } from "~~/utils/simpleNFT/ipfs-fetch";

const LazyReactJson = lazy(() => import("react-json-view"));
Expand Down Expand Up @@ -49,13 +50,13 @@ const IpfsDownload: NextPage = () => {
autoComplete="off"
/>
</div>
<button
className={`btn btn-secondary my-6 ${loading ? "loading" : ""}`}
disabled={loading}
<ButtonStyle
// className={`btn btn-secondary my-6 ${loading ? "loading" : ""}`}
// disabled={loading}
// onClick={handleIpfsDownload}
>
Download from IPFS
</button>
</ButtonStyle>

{mounted && (
<LazyReactJson
Expand Down
7 changes: 3 additions & 4 deletions packages/nextjs/app/ipfsUpload/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { NextPage } from "next";
import { notification } from "~~/utils/scaffold-stark/notification";
// import { addToIPFS } from "~~/utils/simpleNFT/ipfs-fetch";
import nftsMetadata from "~~/utils/scaffold-stark/simpleNFT/nftsMetadata";
import ButtonStyle from "~~/components/ButtonStyle/ButtonStyle";

const LazyReactJson = lazy(() => import("react-json-view"));

Expand Down Expand Up @@ -59,13 +60,11 @@ const IpfsUpload: NextPage = () => {
}}
/>
)}
<button
className={`btn btn-secondary mt-4 ${loading ? "loading" : ""}`}
disabled={loading}
<ButtonStyle
// onClick={handleIpfsUpload}
>
Upload to IPFS
</button>
</ButtonStyle>
{/* {uploadedIpfsPath && (
<div className="mt-4">
<a href={`https://ipfs.io/ipfs/${uploadedIpfsPath}`} target="_blank" rel="noreferrer">
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/app/myNFTs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Page() {
return (
<main className="flex flex-col flex-1">
<div className="flex flex-col items-center p-10">
<h1>My NFTs</h1>
<h1 className="text-4xl font-bold text-center mb-4">My NFTs</h1>
<ButtonStyle>Mint NFT</ButtonStyle>
<MyHoldings></MyHoldings>
</div>
Expand Down
22 changes: 11 additions & 11 deletions packages/nextjs/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ import {
import { HeartIcon } from "@heroicons/react/24/outline";
import { SwitchTheme } from "~~/components/SwitchTheme";
import { BuidlGuidlLogo } from "~~/components/assets/BuidlGuidlLogo";
// import { FaucetMenu } from "~~/components/FaucetMenu";
// import { useTargetNetwork } from "~~/hooks/scaffold-eth/useTargetNetwork";
import FaucetMenu from "~~/components/FaucetMenu";
import { useTargetNetwork } from "~~/hooks/scaffold-stark/useTargetNetwork";
import { useGlobalState } from "~~/services/store/store";

/**
* Site footer
*/
export const Footer = () => {
// const nativeCurrencyPrice = useGlobalState(
// (state) => state.nativeCurrencyPrice
// );
// const { targetNetwork } = useTargetNetwork();
// const isLocalNetwork = false;
const nativeCurrencyPrice = useGlobalState(
(state) => state.nativeCurrencyPrice
);
const { targetNetwork } = useTargetNetwork();
const isLocalNetwork = false;

return (
<div className="min-h-0 py-5 px-1 mb-11 lg:mb-0">
<div>
<div className="fixed flex justify-between items-center w-full z-10 p-4 bottom-0 left-0 pointer-events-none">
<div className="flex flex-col md:flex-row gap-2 pointer-events-auto">
{/* {nativeCurrencyPrice > 0 && (
{nativeCurrencyPrice > 0 && (
<div>
<div className="btn btn-primary btn-sm font-normal gap-1 cursor-auto">
<CurrencyDollarIcon className="h-4 w-4" />
Expand All @@ -47,13 +47,13 @@ export const Footer = () => {
<span>Block Explorer</span>
</Link>
</>
)} */}
)}
</div>
{/* <SwitchTheme
<SwitchTheme
className={`pointer-events-auto ${
isLocalNetwork ? "self-end md:self-auto" : ""
}`}
/> */}
/>
</div>
</div>
<div className="w-full">
Expand Down
6 changes: 3 additions & 3 deletions packages/nextjs/components/SimpleNFT/NFTcard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState } from "react";
import { NFTMetaData } from "~~/utils/scaffold-stark/simpleNFT/nftsMetadata";
import ButtonStyle from "../ButtonStyle/ButtonStyle";

export const NFTCard = ({ nft }:any) => {

Expand Down Expand Up @@ -39,11 +40,10 @@ export const NFTCard = ({ nft }:any) => {
/> */}
</div>
<div className="card-actions justify-end">
<button
className="btn btn-secondary btn-md px-8 tracking-wide"
<ButtonStyle
>
Send
</button>
</ButtonStyle>
</div>
</div>
</div>
Expand Down

0 comments on commit 071259d

Please sign in to comment.