Skip to content

Commit 91c53b3

Browse files
committed
logo and pictures update
1 parent 6f5522f commit 91c53b3

16 files changed

+95
-46
lines changed

client/app/asset/[id]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const assetDetails = {
2626
type: "Weapon",
2727
price: "2.5 STT",
2828
priceUsd: "$4,250",
29-
image: "https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=1200&h=800&fit=crop",
29+
image: "/katana.png",
3030
rarity: "Legendary",
3131
game: "CyberStrike",
3232
description: "A legendary cybernetic katana forged in the neon foundries of Neo-Tokyo. This weapon combines ancient samurai craftsmanship with cutting-edge plasma technology.",
@@ -93,7 +93,7 @@ export default function AssetDetailPage({ params }: { params: { id: string } })
9393

9494
// Add to cart
9595
const cart = JSON.parse(localStorage.getItem('cart') || '[]')
96-
const existingItem = cart.find((item: any) => item.id === asset.id)
96+
const existingItem = cart.find((item: { id: number }) => item.id === asset.id)
9797

9898
if (existingItem) {
9999
toast.info('Item already in cart')

client/app/dashboard/page.tsx

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { useState } from 'react'
44
import Navigation from '@/components/Navigation'
55
import BubbleAnimation from '@/components/BubbleAnimation'
6+
import ProfileDialog from '@/components/ProfileDialog'
67
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
78
import { Button } from '@/components/ui/button'
89
import { Badge } from '@/components/ui/badge'
@@ -31,13 +32,24 @@ import Image from 'next/image'
3132
import Link from 'next/link'
3233
import { toast } from 'sonner'
3334

34-
const userAssets = [
35+
interface Asset {
36+
id: number
37+
name: string
38+
type: string
39+
price: string
40+
image: string
41+
rarity: string
42+
game: string
43+
status: string
44+
}
45+
46+
const userAssets: Asset[] = [
3547
{
3648
id: 1,
3749
name: "Cyber Katana X-7",
3850
type: "Weapon",
3951
price: "2.5 STT",
40-
image: "https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=800&h=600&fit=crop",
52+
image: "/katana.png",
4153
rarity: "Legendary",
4254
game: "CyberStrike",
4355
status: "Listed",
@@ -47,7 +59,7 @@ const userAssets = [
4759
name: "Quantum Armor Set",
4860
type: "Armor",
4961
price: "3.2 STT",
50-
image: "https://images.unsplash.com/photo-1620121692029-d088224ddc74?w=800&h=600&fit=crop",
62+
image: "/quantum armor suit.jpg",
5163
rarity: "Legendary",
5264
game: "QuantumWarriors",
5365
status: "Owned",
@@ -57,7 +69,7 @@ const userAssets = [
5769
name: "Lightning Strike Bow",
5870
type: "Weapon",
5971
price: "1.2 STT",
60-
image: "https://images.unsplash.com/photo-1509396591411-549f5662ff5b?w=800&h=600&fit=crop",
72+
image: "/Lightning Strike Bow.jpeg",
6173
rarity: "Rare",
6274
game: "ArcherLegends",
6375
status: "Owned",
@@ -122,6 +134,7 @@ export default function DashboardPage() {
122134
const [activeTab, setActiveTab] = useState("overview")
123135
const [aiAutoPricing, setAiAutoPricing] = useState(true)
124136
const [walletSafetyScore] = useState(94) // This would come from API
137+
const [profileDialogOpen, setProfileDialogOpen] = useState(false)
125138

126139
const handleAutoPricingToggle = (enabled: boolean) => {
127140
setAiAutoPricing(enabled)
@@ -175,7 +188,11 @@ export default function DashboardPage() {
175188
</div>
176189

177190
<div className="flex gap-3">
178-
<Button variant="outline" className="neon-border">
191+
<Button
192+
variant="outline"
193+
className="neon-border"
194+
onClick={() => setProfileDialogOpen(true)}
195+
>
179196
<Edit className="h-4 w-4 mr-2" />
180197
Edit Profile
181198
</Button>
@@ -483,6 +500,11 @@ export default function DashboardPage() {
483500
</CardHeader>
484501
</Card>
485502
</div>
503+
504+
<ProfileDialog
505+
open={profileDialogOpen}
506+
onOpenChange={setProfileDialogOpen}
507+
/>
486508
</div>
487509
)
488-
}
510+
}

client/app/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { Toaster } from 'sonner'
55
export const metadata: Metadata = {
66
title: 'Tavarn.AI',
77
description: 'AI Trading Platform',
8+
icons: {
9+
icon: '/tavarnai-favicon-logo.png',
10+
},
811
}
912

1013
export default function RootLayout({

client/app/marketplace/page.tsx

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,23 @@ import Link from 'next/link'
1313
import { toast } from 'sonner'
1414
import BubbleAnimation from '@/components/BubbleAnimation'
1515

16-
const allAssets = [
16+
interface Asset {
17+
id: number
18+
name: string
19+
type: string
20+
price: string
21+
image: string
22+
rarity: string
23+
game: string
24+
}
25+
26+
const allAssets: Asset[] = [
1727
{
1828
id: 1,
1929
name: "Cyber Katana X-7",
2030
type: "Weapon",
2131
price: "2.5 STT",
22-
image: "https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=800&h=600&fit=crop",
32+
image: "/katana.png",
2333
rarity: "Legendary",
2434
game: "CyberStrike",
2535
},
@@ -28,7 +38,7 @@ const allAssets = [
2838
name: "Neon Dragon Skin",
2939
type: "Skin",
3040
price: "1.8 STT",
31-
image: "https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=800&h=600&fit=crop",
41+
image: "/neon dragon skin.jpeg",
3242
rarity: "Epic",
3343
game: "DragonVerse",
3444
},
@@ -37,7 +47,7 @@ const allAssets = [
3747
name: "Quantum Armor Set",
3848
type: "Armor",
3949
price: "3.2 STT",
40-
image: "https://images.unsplash.com/photo-1620121692029-d088224ddc74?w=800&h=600&fit=crop",
50+
image: "/quantum armor suit.jpg",
4151
rarity: "Legendary",
4252
game: "QuantumWarriors",
4353
},
@@ -46,7 +56,7 @@ const allAssets = [
4656
name: "Plasma Blaster Pro",
4757
type: "Weapon",
4858
price: "1.5 STT",
49-
image: "https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=800&h=600&fit=crop",
59+
image: "/Plasma Blaster Pro.jpeg",
5060
rarity: "Rare",
5161
game: "SpaceRaiders",
5262
},
@@ -55,7 +65,7 @@ const allAssets = [
5565
name: "Holographic Phoenix",
5666
type: "NFT",
5767
price: "4.0 STT",
58-
image: "https://images.unsplash.com/photo-1634017839464-5c339ebe3cb4?w=800&h=600&fit=crop",
68+
image: "/Holographic Phoenix.jpeg",
5969
rarity: "Mythic",
6070
game: "MetaRealms",
6171
},
@@ -64,7 +74,7 @@ const allAssets = [
6474
name: "Stealth Assassin Gear",
6575
type: "Outfit",
6676
price: "2.0 STT",
67-
image: "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=800&h=600&fit=crop",
77+
image: "/Stealth Assassin Gear.jpeg",
6878
rarity: "Epic",
6979
game: "ShadowOps",
7080
},
@@ -73,7 +83,7 @@ const allAssets = [
7383
name: "Lightning Strike Bow",
7484
type: "Weapon",
7585
price: "1.2 STT",
76-
image: "https://images.unsplash.com/photo-1509396591411-549f5662ff5b?w=800&h=600&fit=crop",
86+
image: "/Lightning Strike Bow.jpeg",
7787
rarity: "Rare",
7888
game: "ArcherLegends",
7989
},
@@ -82,7 +92,7 @@ const allAssets = [
8292
name: "Cosmic Wings",
8393
type: "Accessory",
8494
price: "2.8 STT",
85-
image: "https://images.unsplash.com/photo-1579546929518-9e396f3cc809?w=800&h=600&fit=crop",
95+
image: "/Cosmic Wings.jpeg",
8696
rarity: "Epic",
8797
game: "SkyRealm",
8898
},
@@ -91,13 +101,13 @@ const allAssets = [
91101
name: "Inferno Blade",
92102
type: "Weapon",
93103
price: "3.5 STT",
94-
image: "https://images.unsplash.com/photo-1588117305388-c2631a279f82?w=800&h=600&fit=crop",
104+
image: "/inferno blade.jpeg",
95105
rarity: "Legendary",
96106
game: "FireWarriors",
97107
},
98108
]
99109

100-
const getRarityColor = (rarity) => {
110+
const getRarityColor = (rarity: string) => {
101111
switch (rarity) {
102112
case "Mythic":
103113
return "bg-gradient-to-r from-purple-500 to-pink-500"
@@ -118,22 +128,22 @@ export default function MarketplacePage() {
118128
const [selectedRarity, setSelectedRarity] = useState("all")
119129
const [sortBy, setSortBy] = useState("featured")
120130

121-
const addToCart = (asset) => {
131+
const addToCart = (asset: Asset) => {
122132
const cart = JSON.parse(localStorage.getItem('cart') || '[]')
123-
133+
124134
// Check if item already in cart
125-
const existingItem = cart.find(item => item.id === asset.id)
135+
const existingItem = cart.find((item: Asset) => item.id === asset.id)
126136
if (existingItem) {
127137
toast.info('Item already in cart!')
128138
return
129139
}
130-
140+
131141
cart.push(asset)
132142
localStorage.setItem('cart', JSON.stringify(cart))
133-
143+
134144
// Dispatch custom event for cart update
135145
window.dispatchEvent(new Event('cartUpdated'))
136-
146+
137147
toast.success(`${asset.name} added to cart!`)
138148
}
139149

client/components/Navigation.tsx

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
import { useState, useEffect } from 'react'
44
import Link from 'next/link'
5+
import Image from 'next/image'
56
import { Button } from '@/components/ui/button'
6-
import { ShoppingBag, User, Wallet, Menu, X } from 'lucide-react'
7+
import { ShoppingBag, User, Wallet, Menu, X, Home } from 'lucide-react'
78
import WalletConnectDialog from './WalletConnectDialog'
89
import ProfileDialog from './ProfileDialog'
910
import CartDrawer from './CartDrawer'
@@ -59,19 +60,14 @@ export default function Navigation() {
5960
<>
6061
<nav className="fixed top-0 left-0 right-0 z-50 glass-effect border-b border-primary/20">
6162
<div className="container mx-auto px-4 h-16 flex items-center justify-between">
62-
<Link href="/" className="flex items-center space-x-2">
63-
<div className="w-8 h-8 bg-gradient-to-br from-primary to-secondary rounded-lg flex items-center justify-center">
64-
<span className="text-xl font-bold">T</span>
65-
</div>
66-
<span
67-
className="text-xl md:text-2xl font-bold"
68-
style={{
69-
fontFamily: 'Rajdhani, sans-serif',
70-
textShadow: '0 0 3px var(--neon-cyan), 0 0 6px var(--neon-cyan)'
71-
}}
72-
>
73-
TAVARN.AI
74-
</span>
63+
<Link href="/" className="flex items-center">
64+
<Image
65+
src="/tavarnai-logo.png"
66+
alt="Tavarn.AI Logo"
67+
width={200}
68+
height={64}
69+
className="w-24 h-9 sm:w-32 sm:h-12 md:w-40 md:h-14 lg:w-48 lg:h-16 xl:w-56 xl:h-18"
70+
/>
7571
</Link>
7672

7773
{/* Desktop Menu */}
@@ -92,6 +88,15 @@ export default function Navigation() {
9288

9389
{/* Desktop Actions */}
9490
<div className="hidden md:flex items-center space-x-3 lg:space-x-4">
91+
<Button
92+
variant="ghost"
93+
size="icon"
94+
asChild
95+
>
96+
<Link href="/">
97+
<Home className="h-5 w-5" />
98+
</Link>
99+
</Button>
95100
{walletConnected && walletAddress && (
96101
<div className="flex items-center space-x-2 px-3 py-1 glass-effect rounded-lg border border-primary/30">
97102
<Wallet className="h-4 w-4 text-primary" />
@@ -132,9 +137,18 @@ export default function Navigation() {
132137

133138
{/* Mobile Actions */}
134139
<div className="flex md:hidden items-center space-x-2">
135-
<Button
136-
variant="ghost"
137-
size="icon"
140+
<Button
141+
variant="ghost"
142+
size="icon"
143+
asChild
144+
>
145+
<Link href="/">
146+
<Home className="h-5 w-5" />
147+
</Link>
148+
</Button>
149+
<Button
150+
variant="ghost"
151+
size="icon"
138152
className="relative"
139153
onClick={() => setCartDrawerOpen(true)}
140154
>
@@ -145,15 +159,15 @@ export default function Navigation() {
145159
</span>
146160
)}
147161
</Button>
148-
<Button
149-
variant="ghost"
162+
<Button
163+
variant="ghost"
150164
size="icon"
151165
onClick={() => setProfileDialogOpen(true)}
152166
>
153167
<User className="h-5 w-5" />
154168
</Button>
155-
<Button
156-
variant="ghost"
169+
<Button
170+
variant="ghost"
157171
size="icon"
158172
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
159173
>

client/public/Cosmic Wings.jpeg

5.71 KB
Loading
7.8 KB
Loading
2.9 KB
Loading
6.65 KB
Loading
6.09 KB
Loading

0 commit comments

Comments
 (0)