Skip to content

Commit

Permalink
Draft of about page, added balance to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Nov 18, 2024
1 parent 9fc3c0b commit d550179
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 1 deletion.
89 changes: 89 additions & 0 deletions packages/nextjs/app/about/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
"use client";

import Image from "next/image";
import { NFTMetaData } from "~~/utils/simpleNFT/nftsMetadata";

export interface Post extends Partial<NFTMetaData> {
postId?: number;
uri: string;
user: string;
date?: string;
}

export const About = () => {
return (
<div className="flex flex-col items-center justify-center">
<div className="hero bg-base-200 ">
<div className="hero-content flex-col lg:flex-row-reverse lg:p-14">
<Image
src="./placeholder.png"
alt="Animation clicking a like button and increasing USDC balance"
className="max-w-sm rounded-lg shadow-2xl"
/>
<div>
<h1 className="text-5xl font-bold">What if your social interactions earned you money? 💸</h1>
<p className="py-6">
Imagine a platform where every like, comment, or share sends USDC directly to your wallet.
<br />
With PunkSociety, we&apos;re building a social protocol that transforms how you interact, earn, and
connect!
</p>
<button className="btn btn-primary bg-green-600 border-0 hover:bg-green-700">Create a profile!</button>
</div>
</div>
</div>
<div className="hero bg-base-300 ">
<div className="hero-content flex flex-col">
<div className="card bg-base-100 shadow-xl">
<figure className="px-10 pt-10">
<Image
src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
alt="Shoes"
className="rounded-xl"
/>
</figure>
<div className="card-body items-center text-center">
<h2 className="card-title">Shoes!</h2>
<p>If a dog chews shoes whose shoes does he choose?</p>
<div className="card-actions">
<button className="btn btn-primary">Buy Now</button>
</div>
</div>
</div>
{/* <div className="card bg-base-100 w-96 shadow-xl">
<figure className="px-10 pt-10">
<img
src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
alt="Shoes"
className="rounded-xl"
/>
</figure>
<div className="card-body items-center text-center">
<h2 className="card-title">Shoes!</h2>
<p>If a dog chews shoes whose shoes does he choose?</p>
<div className="card-actions">
<button className="btn btn-primary">Buy Now</button>
</div>
</div>
</div>
<div className="card bg-base-100 w-96 shadow-xl">
<figure className="px-10 pt-10">
<img
src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
alt="Shoes"
className="rounded-xl"
/>
</figure>
<div className="card-body items-center text-center">
<h2 className="card-title">Shoes!</h2>
<p>If a dog chews shoes whose shoes does he choose?</p>
<div className="card-actions">
<button className="btn btn-primary">Buy Now</button>
</div>
</div>
</div> */}
</div>
</div>
</div>
);
};
18 changes: 18 additions & 0 deletions packages/nextjs/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { About } from "./About";
import type { NextPage } from "next";
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";

export const metadata = getMetadata({
title: "About",
description: "Built with 🏗 Scaffold-ETH 2",
});

const AboutPage: NextPage = () => {
return (
<>
<About />
</>
);
};

export default AboutPage;
6 changes: 5 additions & 1 deletion packages/nextjs/app/profile/[address]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ProfilePictureUpload from "../_components/ProfilePictureUpload";
import { NextPage } from "next";
import { useAccount } from "wagmi";
import { PencilIcon } from "@heroicons/react/24/outline";
import { Address } from "~~/components/scaffold-eth";
import { Address, Balance } from "~~/components/scaffold-eth";
import { InputBase } from "~~/components/scaffold-eth";
import { useScaffoldEventHistory, useScaffoldReadContract, useScaffoldWriteContract } from "~~/hooks/scaffold-eth";
import { notification } from "~~/utils/scaffold-eth";
Expand Down Expand Up @@ -219,6 +219,10 @@ const ProfilePage: NextPage = () => {
<div className="mt-2">
<div className="text-base-content">
<Address address={address} />
<div className="flex flex-row items-center">
<span>Balance: </span>
<Balance address={address} />
</div>
</div>
</div>
</>
Expand Down
Binary file added packages/nextjs/public/placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d550179

Please sign in to comment.