diff --git a/app/profile/page.tsx b/app/profile/page.tsx new file mode 100644 index 0000000..1cb8b1c --- /dev/null +++ b/app/profile/page.tsx @@ -0,0 +1,83 @@ +"use client" + +import React from 'react'; +import { useRouter } from "next/navigation"; +import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; +import { + Table, + TableBody, + TableCaption, + TableCell, + TableHead, + TableHeader, + TableRow, +} from "@/components/ui/table" + + + +// WORKING ON PROFILE FRONT END +export default function Profile() { + const router = useRouter(); + return ( +
+
+
+
+
+ + + Parent-Avatar + +
+
+
+
+ +
+

[User's] Information

+
+ +
+ + + + Email + ...@gmail.com + + + + + + Username + 123AllyP + + + + + + Password + ******** + + + + + + Children + Name1, Name2 + + + + + + Books + title1, title2 + + +
+
+ +
+ ) +} + + diff --git a/components/ui/avatar.tsx b/components/ui/avatar.tsx new file mode 100644 index 0000000..7d317ce --- /dev/null +++ b/components/ui/avatar.tsx @@ -0,0 +1,50 @@ +"use client" + +import * as React from "react" +import * as AvatarPrimitive from "@radix-ui/react-avatar" + +import { cn } from "@/lib/utils" + +const Avatar = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +Avatar.displayName = AvatarPrimitive.Root.displayName + +const AvatarImage = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AvatarImage.displayName = AvatarPrimitive.Image.displayName + +const AvatarFallback = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName + +export { Avatar, AvatarImage, AvatarFallback } diff --git a/components/ui/table.tsx b/components/ui/table.tsx new file mode 100644 index 0000000..5e55269 --- /dev/null +++ b/components/ui/table.tsx @@ -0,0 +1,108 @@ +import * as React from "react" +import { cn } from "@/lib/utils" + +const Table = React.forwardRef>( + ({ className, ...props }, ref) => ( +
+ + + ) +) +Table.displayName = "Table" + +const TableHeader = React.forwardRef>( + ({ className, ...props }, ref) => ( + + ) +) +TableHeader.displayName = "TableHeader" + +const TableBody = React.forwardRef>( + ({ className, ...props }, ref) => ( + + ) +) +TableBody.displayName = "TableBody" + +const TableFooter = React.forwardRef>( + ({ className, ...props }, ref) => ( + tr]:last:border-b-0", + className + )} + {...props} + /> + ) +) +TableFooter.displayName = "TableFooter" + +const TableRow = React.forwardRef>( + ({ className, ...props }, ref) => ( + + ) +) +TableRow.displayName = "TableRow" + +const TableHead = React.forwardRef>( + ({ className, ...props }, ref) => ( +
+ ) +) +TableHead.displayName = "TableHead" + +const TableCell = React.forwardRef>( + ({ className, ...props }, ref) => ( + + ) +) +TableCell.displayName = "TableCell" + +const TableCaption = React.forwardRef>( + ({ className, ...props }, ref) => ( +
+ ) +) +TableCaption.displayName = "TableCaption" + +export { + Table, + TableHeader, + TableBody, + TableFooter, + TableHead, + TableRow, + TableCell, + TableCaption, +} diff --git a/package-lock.json b/package-lock.json index 77208ea..02471a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,9 @@ "version": "0.1.0", "dependencies": { "@radix-ui/react-navigation-menu": "^1.1.4", + "@radix-ui/react-avatar": "^1.0.4", "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-tabs": "^1.0.4", "axios": "^1.6.7", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", @@ -312,6 +314,32 @@ "@babel/runtime": "^7.13.10" } }, + "node_modules/@radix-ui/react-avatar": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.0.4.tgz", + "integrity": "sha512-kVK2K7ZD3wwj3qhle0ElXhOjbezIgyl2hVvgwfIdexL3rN6zJmy5AqqIf+D31lxVppdzV8CjAfZ6PklkmInZLw==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-callback-ref": "1.0.1", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-collection": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz", diff --git a/package.json b/package.json index e40558b..49dffdb 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,13 @@ "lint": "next lint" }, "dependencies": { +<<<<<<< HEAD "@radix-ui/react-navigation-menu": "^1.1.4", +======= + "@radix-ui/react-avatar": "^1.0.4", +>>>>>>> 6a46aca4de024505ee98abaf37032125c5dd96ef "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-tabs": "^1.0.4", "axios": "^1.6.7", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0",