From 84cab5341af9d14f51216a1cda76ffa6f0030be3 Mon Sep 17 00:00:00 2001 From: Kar l5 Date: Tue, 23 Jul 2024 01:25:44 +0530 Subject: [PATCH] student-dashboard --- app/routes/student-dashboard._index.tsx | 81 +++++++++++++++++++++++++ yarn.lock | 13 +--- 2 files changed, 82 insertions(+), 12 deletions(-) create mode 100644 app/routes/student-dashboard._index.tsx diff --git a/app/routes/student-dashboard._index.tsx b/app/routes/student-dashboard._index.tsx new file mode 100644 index 0000000..89ed157 --- /dev/null +++ b/app/routes/student-dashboard._index.tsx @@ -0,0 +1,81 @@ +import React, { useState } from 'react'; +import { + DesktopOutlined, + FileOutlined, + PieChartOutlined, + TeamOutlined, + UserOutlined, +} from '@ant-design/icons'; +import type { MenuProps } from 'antd'; +import { Breadcrumb, Layout, Menu, theme } from 'antd'; + +const { Header, Content, Footer, Sider } = Layout; + +type MenuItem = Required['items'][number]; + +function getItem( + label: React.ReactNode, + key: React.Key, + icon?: React.ReactNode, + children?: MenuItem[], +): MenuItem { + return { + key, + icon, + children, + label, + } as MenuItem; +} + +const items: MenuItem[] = [ + getItem('Option 1', '1', ), + getItem('Option 2', '2', ), + getItem('User', 'sub1', , [ + getItem('Tom', '3'), + getItem('Bill', '4'), + getItem('Alex', '5'), + ]), + getItem('Team', 'sub2', , [getItem('Team 1', '6'), getItem('Team 2', '8')]), + getItem('Files', '9', ), +]; + +const App: React.FC = () => { + const [collapsed, setCollapsed] = useState(false); + const { + token: { colorBgContainer, borderRadiusLG }, + } = theme.useToken(); + + return ( + + setCollapsed(value)}> +
IIMTT Logo
+ + Hi +
+ +
+ + + User + Bill + +
+ Bill is a cat. +
+
+ + + + ); +}; + +export default App; \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 539e9ad..ee68463 100644 --- a/yarn.lock +++ b/yarn.lock @@ -40,18 +40,7 @@ resolved "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz" integrity sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA== -"@ant-design/icons@^5.3.7": - version "5.4.0" - resolved "https://registry.npmjs.org/@ant-design/icons/-/icons-5.4.0.tgz" - integrity sha512-QZbWC5xQYexCI5q4/fehSEkchJr5UGtvAJweT743qKUQQGs9IH2DehNLP49DJ3Ii9m9CijD2HN6fNy3WKhIFdA== - dependencies: - "@ant-design/colors" "^7.0.0" - "@ant-design/icons-svg" "^4.4.0" - "@babel/runtime" "^7.24.8" - classnames "^2.2.6" - rc-util "^5.31.1" - -"@ant-design/icons@^5.4.0": +"@ant-design/icons@^5.3.7", "@ant-design/icons@^5.4.0": version "5.4.0" resolved "https://registry.yarnpkg.com/@ant-design/icons/-/icons-5.4.0.tgz#4bd8f335c68207cc06fe9943d164a81cdfcfbeac" integrity sha512-QZbWC5xQYexCI5q4/fehSEkchJr5UGtvAJweT743qKUQQGs9IH2DehNLP49DJ3Ii9m9CijD2HN6fNy3WKhIFdA==