|
| 1 | +import Head from "next/head"; |
| 2 | + |
| 3 | +import User_Navbar from "../components/ui/user_navbar"; |
| 4 | + |
| 5 | +export default function UserPage() { |
| 6 | + return ( |
| 7 | + <> |
| 8 | + <Head> |
| 9 | + <title>User Profile Page</title> |
| 10 | + </Head> |
| 11 | + |
| 12 | + {/* Navbar refactor */} |
| 13 | + <User_Navbar /> |
| 14 | + |
| 15 | + <div |
| 16 | + style={{ |
| 17 | + backgroundColor: "#e6e6e6", |
| 18 | + minHeight: "100vh", |
| 19 | + paddingTop: "64px", |
| 20 | + display: "flex", |
| 21 | + justifyContent: "center", |
| 22 | + }} |
| 23 | + > |
| 24 | + {/* Profile card */} |
| 25 | + <div |
| 26 | + style={{ |
| 27 | + backgroundColor: "#ffffff", |
| 28 | + width: "900px", |
| 29 | + height: "500px", |
| 30 | + borderRadius: "8px", |
| 31 | + padding: "48px", |
| 32 | + textAlign: "center", |
| 33 | + marginTop: "40px", |
| 34 | + boxShadow: "0 2px 6px rgba(0,0,0,0.08)", |
| 35 | + }} |
| 36 | + > |
| 37 | + {/* Avatar */} |
| 38 | + <div |
| 39 | + style={{ |
| 40 | + width: "120px", |
| 41 | + height: "120px", |
| 42 | + borderRadius: "50%", |
| 43 | + backgroundColor: "#5b84b1", |
| 44 | + color: "white", |
| 45 | + display: "flex", |
| 46 | + alignItems: "center", |
| 47 | + justifyContent: "center", |
| 48 | + fontSize: "48px", |
| 49 | + margin: "-100px auto 16px", |
| 50 | + }} |
| 51 | + > |
| 52 | + U |
| 53 | + </div> |
| 54 | + |
| 55 | + {/* User details */} |
| 56 | + <h2 style={{ marginTop: "25px", fontSize: "28px" }}> |
| 57 | + New User 12345678 |
| 58 | + </h2> |
| 59 | + <p style={{ color: "#666", marginBottom: "40px", fontSize: "18px" }}> |
| 60 | + Perth, Western Australia |
| 61 | + </p> |
| 62 | + |
| 63 | + {/* Stats */} |
| 64 | + <div |
| 65 | + style={{ |
| 66 | + display: "flex", |
| 67 | + justifyContent: "space-between", |
| 68 | + padding: "40px 40px", |
| 69 | + }} |
| 70 | + > |
| 71 | + <Stat label="Borrowed" value={0} /> |
| 72 | + <Stat label="Friends" value={0} /> |
| 73 | + <Stat label="Mutual friends" value={0} /> |
| 74 | + <Stat label="Clubs joined" value={0} /> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + </> |
| 79 | + ); |
| 80 | +} |
| 81 | + |
| 82 | +function Stat({ label, value }: { label: string; value: number }) { |
| 83 | + return ( |
| 84 | + <div> |
| 85 | + <div style={{ fontSize: "45px", marginBottom: "8px" }}>{value}</div> |
| 86 | + <div style={{ color: "#666", fontSize: "18px" }}>{label}</div> |
| 87 | + </div> |
| 88 | + ); |
| 89 | +} |
0 commit comments