Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 5 additions & 83 deletions app/(root)/profile/page.tsx
Original file line number Diff line number Diff line change
@@ -1,90 +1,12 @@
import React from 'react';
import styles from './UserProfile.module.css';
import { Metadata } from 'next';
import UserProfile from '../../components/UserProfile/UserProfile';

export const metadata: Metadata = {
export const metadata = {
title: 'Profile',
};

const UserProfile = () => {
return (
<>
<div className={styles.container}>
<main className={styles.mainContent}>
<div className={styles.profilesAndBalance}>
<div className={styles.otherProfile}>
<div className={styles.userProfile}>USER PROFILE</div>
<div className={styles.profileInfo}>
<div className={styles.profileInfoLeft}>
<img src="../../user-pic.png" alt="User Avatar" className={styles.avatar} />
<div className={styles.profileStatus}>
<div className={styles.userName}>User name</div>
<div className={styles.status}>status</div>
<div className={styles.info}>Information is absent.</div>
</div>
</div>
<div className={styles.profileInfoRight}>
<div className={styles.icons}>
<div className={styles.steamIcon}><img src="../../steam-icon.svg" alt="User Avatar" className={styles.avatar} /></div>
</div>
<div className={styles.actions}>
<button className={styles.writeButton}>Write</button>
<button className={styles.addButton}>Add as Friend</button>
</div>
</div>
</div>
<div className={styles.rating}>8.7</div>
</div>
<div className={styles.balance}>
<div className={styles.balanceInfo}>
<div className={styles.balanceText}>BALANCE</div>
<div className={styles.amount}>14.256 ₽</div>
</div>
<div className={styles.cartContainer}>
<div className={styles.cartIcon}> {/* Замените на реальную иконку, если доступно */}
<svg width="24" height="24" viewBox="0 0 24 24">
<path d="M7 4h-2l-1 2h16l-1-2h-2v-2h-8v2zm-2.05 3l-2.928 12h16.156l-2.928-12h-10.3zm10.932 2l1.297 5h-9.948l1.297-5h7.354z" />
</svg>
</div>
<div className={styles.cartCount}>3</div>
</div>
</div>
</div>
<div className={styles.sidebarAndContent}>
<div className={styles.contentAndActions}>
<div className={`${styles.productSection} overflow-auto`}>
<div className={styles.productCards}>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>
<div className={styles.productCard}><img src="../../ak-47.png" alt="Product" />
<p className={styles.productTitle}>АК-47</p></div>

</div>
</div>
<div className={styles.actionsWithSkins}>
<button className={styles.actionInventory}>Инвентарь</button>
<button className={styles.actionsSellSkins}>Скины на продаже</button>
</div>
</div>
</div>
</main>
</div>
</>
);
const Page: React.FC = () => {
return <UserProfile />;
};

export default UserProfile;
export default Page;
Loading