Skip to content

Commit

Permalink
feat: nft background
Browse files Browse the repository at this point in the history
  • Loading branch information
LinXJ1204 committed Feb 15, 2024
1 parent 8e57bfc commit 315dae4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/extension_app/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ html

body{
background: linear-gradient(to left, #8360c3, #2ebf91);

}

.App {
Expand All @@ -15,8 +16,8 @@ body{
.container {
width: 100%;
padding: 3%;
background: linear-gradient(to left, #8360c3, #2ebf91);
min-height: 400px;
background-image: url(https://cdn.streamelements.com/static/user/background_default.jpg)
}


Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/nftSaleItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import React from "react"
export function NftSaleItem(props:nftCreate){

return (
<div >
<div>
<div className="card" style={{"background": "rgba(40, 2, 84, 0.7)"}} onClick={() => {

}}>
<h4>ID: {props.nftId}</h4>
<h4>Price: {props.price}</h4>
<h4>Creator: {formatAddress(props.creator)}</h4>
<div className="shine"></div>
<div className="background">
<div className="background" style={{"backgroundImage": `url(${props.url})`}}>
<div className="tiles">
<div className="tile tile-1"></div>
<div className="tile tile-2"></div>
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@tailwind components;
@tailwind utilities;


:root {
--black-gradient: linear-gradient(
144.39deg,
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/models/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type nftCreate = {
price: number
maxSupply: number
eventId: number
url: string
}

export type account = {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/routes/donation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default function Donation() {
{nftToSale.map((item:any) => {
return (
<div className="row-span-3 rounded-sm">
<NftSaleItem eventId={item.eventId} nftId={item.nftId} creator={item.creator} price={item.price} nftName={item.nftName} maxSupply={item.maxSupply} />
<NftSaleItem eventId={item.eventId} nftId={item.nftId} creator={item.creator} price={item.price} nftName={item.nftName} maxSupply={item.maxSupply} url={channelInfo?channelInfo.avatar:""} />
</div>
)
})}
Expand Down

0 comments on commit 315dae4

Please sign in to comment.