-
Notifications
You must be signed in to change notification settings - Fork 1
Yu gallery #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Yu gallery #7
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "folders": [ | ||
| { | ||
| "path": "client" | ||
| } | ||
| ], | ||
| "settings": {} | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. удалить |
||
| "editor.formatOnSave": true | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import React from 'react' | ||
|
|
||
| import { useAllTokens } from "queries"; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. удалить файл |
||
|
|
||
| const NFTCard = ( {token}) => { | ||
| const tokens = useAllTokens().data | ||
| console.log(tokens) | ||
| return ( | ||
| <div>{ token }</div> | ||
|
|
||
| // <div class="flex justify-center"> | ||
| // <div class="rounded-lg shadow-lg bg-white max-w-sm"> | ||
| // <a href="#!"> | ||
| // <img class="rounded-t-lg" src="https://mdbootstrap.com/img/new/standard/nature/184.jpg" alt=""/> | ||
| // </a> | ||
| // <div class="p-6"> | ||
| // <h5 class="text-gray-900 text-xl font-medium mb-2">Card title</h5> | ||
| // <p class="text-gray-700 text-base mb-4"> | ||
| // Some quick example text to build on the card title and make up the bulk of the card's | ||
| // content. | ||
| // </p> | ||
| // <button type="button" class=" inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">Button</button> | ||
| // </div> | ||
| // </div> | ||
| // </div> | ||
|
|
||
| ) | ||
| } | ||
|
|
||
| export default NFTCard; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import React from 'react' | ||
|
|
||
| import { useAllTokens } from "queries"; | ||
|
|
||
| const NFTCard = ( { img, title, desc } ) => { | ||
|
|
||
| console.log(NFTCard) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. удалить лог |
||
|
|
||
| return ( | ||
|
|
||
|
|
||
| <div class="flex justify-center"> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. class => className |
||
| <div class="rounded-lg shadow-lg bg-white max-w-sm"> | ||
| <a href="#!"> | ||
| <img class="rounded-t-lg" src= {img} alt=""/> | ||
| </a> | ||
|
|
||
| <div class="p-6"> | ||
| <h1 class="text-gray-900 text-xl font-bold mb-2"> {title} </h1> | ||
| <p class="text-gray-700 text-base mb-4"> {desc} </p> | ||
|
|
||
| <button type="button" class=" inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">Button</button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| ) | ||
| } | ||
|
|
||
| export default NFTCard; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import NFTCard from "./NftCard"; | ||
| import { useAllTokens } from "queries"; | ||
|
|
||
| const NftPage = () => { | ||
|
|
||
| const tok = useAllTokens() | ||
| console.log (tok) | ||
|
|
||
| return ( | ||
| <div className="container mx-auto"> | ||
| <div className="grid grid-cols-3 gap-4"> | ||
| <NFTCard/> | ||
| <NFTCard/> | ||
| <NFTCard/> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default NftPage; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import NFTCard from "./NftCard"; | ||
| import { useAllTokens } from "queries"; | ||
| import { useState } from "react"; | ||
|
|
||
|
|
||
|
|
||
| const NftPage = () => { | ||
| const res = useAllTokens().data | ||
| console.log("", res) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. удалить консоль логи |
||
| const test = res?.map( (el) => { | ||
| return <NFTCard img={el.image} title={el.name} desc={el.description}/> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. добавить уникальный ключ |
||
| } | ||
| ) | ||
|
|
||
|
|
||
|
|
||
|
|
||
| return ( | ||
| <div className="container mx-auto"> | ||
| <div className="grid grid-cols-3 gap-4"> | ||
| { test } | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default NftPage; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
удалить файл