- | {id} |
-
+ | {id} |
+
{name}
|
- {floorPrice} |
- {volume} |
- {topOffer} |
+ {floorPrice} |
+ {volume} |
+ {topOffer} |
{change}
|
- {sales} |
-
+ | {sales} |
+
{holder}%
{rate}
@@ -158,7 +160,7 @@ const TrendingCollections: React.FC = () => {
{/* Header and Filters */}
-
+
Trending Collections
{
-
+
{[
@@ -187,7 +189,10 @@ const TrendingCollections: React.FC = () => {
"Sales",
"Holders",
].map((header) => (
- |
+ |
{header}
|
))}
diff --git a/components/landing-page/trending-nft.tsx b/components/landing-page/trending-nft.tsx
index 44415a9..ed3c2b1 100644
--- a/components/landing-page/trending-nft.tsx
+++ b/components/landing-page/trending-nft.tsx
@@ -1,11 +1,11 @@
-'use client'
-import React, { useState } from 'react';
-import Image from 'next/image';
-import { BsHeart, BsHeartFill } from 'react-icons/bs';
-import { MdVerified } from 'react-icons/md';
-import Arrow from '@/public/arrow.png'
-import { NFTCardProps, nftData } from '@/constants/data';
-import Link from 'next/link';
+"use client";
+import React, { useState } from "react";
+import Image from "next/image";
+import { BsHeart, BsHeartFill } from "react-icons/bs";
+import { MdVerified } from "react-icons/md";
+import Arrow from "@/public/arrow.png";
+import { NFTCardProps, nftData } from "@/constants/data";
+import Link from "next/link";
const NFTCard: React.FC = ({
title,
@@ -23,32 +23,46 @@ const NFTCard: React.FC = ({
return (
setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
-
-
-
- {creatorName}
- {isVerified && }
+
+
+
+
+
+
+
+ {creatorName}
+
+ {isVerified && (
+
+ )}
setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
@@ -56,16 +70,21 @@ const NFTCard: React.FC = ({
src={`/${image}`}
alt={title}
fill
- className={`px-4 transition-all duration-300 ease-in-out ${isHovered ? 'scale-[1.03] ' : ''}`}
+ className={`px-[4.21px] sm:px-4 transition-all duration-300 ease-in-out ${
+ isHovered ? "scale-[1.03] " : ""
+ }`}
/>
{isHovered && (
-
+
Place a Bid
)}
-
+
{title}
Current Bid
@@ -79,45 +98,72 @@ const NFTCard: React.FC = ({
{timeLeft} left
+
+ {/* Mobile content */}
+
+ {title}
+
+
+ Current Bid
+
+
+ {currentBid} ETH
+
+
+
);
};
const TrendingNFTs: React.FC = () => {
- const [activeTab, setActiveTab] = useState('trending');
+ const [activeTab, setActiveTab] = useState("trending");
return (
-
-
+
+
- Trending NFTs
+
+
+ Trending NFTs
+
+
+ 1540 items
+
+
-
+
{nftData.map((nft) => (
))}
-
+
View all NFTs
-
+
diff --git a/components/landing-page/you-may-also-like.tsx b/components/landing-page/you-may-also-like.tsx
index 8033cde..748e1d2 100644
--- a/components/landing-page/you-may-also-like.tsx
+++ b/components/landing-page/you-may-also-like.tsx
@@ -1,13 +1,17 @@
-'use client'
-import React, { useState } from 'react';
-import Image from 'next/image';
-import { ArticleProps, articleData } from '@/constants/data';
+"use client";
+import React, { useState } from "react";
+import Image from "next/image";
+import { ArticleProps, articleData } from "@/constants/data";
-const ArticleCard: React.FC = ({ title, description, imageUrl }) => {
+const ArticleCard: React.FC = ({
+ title,
+ description,
+ imageUrl,
+}) => {
const [isHovered, setIsHovered] = useState(false);
return (
- setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
@@ -19,7 +23,9 @@ const ArticleCard: React.FC = ({ title, description, imageUrl }) =
src={`/${imageUrl}`}
alt={title}
fill
- className={`object-cover transition-all duration-300 ease-in-out ${isHovered ? 'scale-[1.03]' : ''}`}
+ className={`object-cover transition-all duration-300 ease-in-out ${
+ isHovered ? "scale-[1.03]" : ""
+ }`}
sizes="(max-width: 900px) 100vw, 33vw"
/>
@@ -31,9 +37,9 @@ const ArticleCard: React.FC = ({ title, description, imageUrl }) =
)}
-
- {title}
- {description}
+
+ {title}
+ {description}
);
@@ -43,27 +49,68 @@ const MayAlsoLike: React.FC = () => {
return (
-
-
- You might be interested by
+
+
+
+ You might be interested by
+
- We've written a few articles about StarkBid and how to run your NFTs better. Stay
- updated with the latest in the world of NFTs, auctions, and blockchain innovations.
+ We've written a few articles about StarkBid and how to run
+ your NFTs better. Stay updated with the latest in the world of
+ NFTs, auctions, and blockchain innovations.
+
+ {/*Mobile view */}
+
+
+
+
+ You might be interested by
+
+
+ We've written a few articles about StarkBid and how to run
+ your NFTs better. Stay updated with the latest in the world of
+ NFTs, auctions, and blockchain innovations.
+
+
+
+
- {articleData.map(article => (
-
+ {articleData.map((article) => (
+
))}
@@ -71,4 +118,4 @@ const MayAlsoLike: React.FC = () => {
);
};
-export default MayAlsoLike;
\ No newline at end of file
+export default MayAlsoLike;
diff --git a/components/newsletter.tsx b/components/newsletter.tsx
index f472c8d..63708c8 100644
--- a/components/newsletter.tsx
+++ b/components/newsletter.tsx
@@ -1,76 +1,87 @@
-"use client"
-import React, { useState } from 'react';
-import Image from 'next/image';
-import stars from '../public/star.png';
+"use client";
+import React, { useState } from "react";
+import Image from "next/image";
+import stars from "../public/star.png";
const Newsletter: React.FC = () => {
- const [email, setEmail] = useState('');
- const [submitted, setSubmitted] = useState(false);
+ const [email, setEmail] = useState("");
+ const [submitted, setSubmitted] = useState(false);
- const handleSubmit = (e: React.FormEvent) => {
- e.preventDefault();
- if (email) {
- setSubmitted(true);
- }
- };
+ const handleSubmit = (e: React.FormEvent) => {
+ e.preventDefault();
+ if (email) {
+ setSubmitted(true);
+ }
+ };
- return (
-
- {/* top star */}
-
- {/* bottom star */}
-
-
-
-
- Stay in the loop
-
- A hauntingly beautiful NFT series where glitchy, transparent
- pixels form eerie digital ghosts and lost memories
-
-
+ return (
+
+
+ {/* top star */}
+
+ {/* bottom star */}
+
+
+
+
+
+ Stay in the loop
+
+
+ A hauntingly beautiful NFT series where glitchy, transparent
+ pixels form eerie digital ghosts and lost memories
+
+
-
- {!submitted ? (
-
- ) : (
-
- Thank you for subscribing!
- Stay tuned for updates on our NFT collection.
-
- )}
-
+
+ {!submitted ? (
+
+ ) : (
+
+
+ Thank you for subscribing!
+
+
+ Stay tuned for updates on our NFT collection.
+
+ )}
+
- );
+
+
+ );
};
export default Newsletter;
diff --git a/components/ui/ViewAllButton.tsx b/components/ui/ViewAllButton.tsx
index 867313b..e75e74f 100644
--- a/components/ui/ViewAllButton.tsx
+++ b/components/ui/ViewAllButton.tsx
@@ -2,8 +2,8 @@ import Arrow from "@/public/arrow.png";
import Image from "next/image";
export const ViewAllButton: React.FC = () => (
- |