Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

page.tsx 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. "use client";
  2. import React from 'react'
  3. import { Flex, Typography, Divider, Layout, Button } from 'antd';
  4. import { RightOutlined, PhoneOutlined } from '@ant-design/icons';
  5. import SectionTitle from '@/components/ui/SectionTitle';
  6. import PageTitle from '@/components/ui/PageTitle';
  7. import LoadingMeter from '@/components/ui/LoadingMeter';
  8. const { Title, Text } = Typography;
  9. /* Main Dashboard */
  10. const page = () => {
  11. return (
  12. <section className="space-y-4">
  13. <PageTitle title='DASHBOARD' />
  14. <div className='px-4'>
  15. <SectionTitle title='Plan Details' />
  16. <Layout className='border-2 rounded border-cyan-500 px-4 py-2'>
  17. <div>
  18. <Text strong>Plan: </Text>
  19. <Text className='!text-blue-500'>Free Plan</Text>
  20. </div>
  21. <Text className='!text-xs mb-2'>
  22. This product is still in beta testing. There might be some issue, use at your own risk.
  23. </Text>
  24. <div className='mb-2'>
  25. <PhoneOutlined className='me-1' style={{ color: "red" }} />
  26. <Text strong className='!text-xs'>Contact: </Text>
  27. <Text className='!text-blue-500 !text-xs'>Aliff Akmal Bahri</Text>
  28. </div>
  29. <div className='!mb-2'>
  30. <Button className='!w-fit !rounded-full !text-xs !bg-[#b64fb1] !text-white'>Upgrade Plan <RightOutlined /> </Button>
  31. </div>
  32. <div className='border-2 rounded border-cyan-500 !bg-cyan-500 px-4 py-2 flex flex-row flex-wrap'>
  33. <div className='text-white'>
  34. <p className='text-xs font-bold mb-2'>Ruccan AI Labs </p>
  35. <p className='text-xs'>Explore our latest AI experiments </p>
  36. <p className='text-xs text-[#ebda5a]'>New tools added regularly!</p>
  37. </div>
  38. <div className='mx-auto text-center'>
  39. <img src={"/flask.png"} width="75" className='mb-2 mx-auto'/>
  40. <button className='w-fit rounded-lg text-xs px-4 py-2 bg-[#369cc1] hover:bg-[#436d86] text-white shadow border-0'>
  41. <span className='me-1'>Upgrade Plan</span> <RightOutlined />
  42. </button>
  43. </div>
  44. </div>
  45. </Layout>
  46. <SectionTitle title='Usage Limits' />
  47. <Layout className='border-2 rounded border-cyan-500 px-4 py-2 bg-white'>
  48. <LoadingMeter title='AI Persona' progress={3} total={3} />
  49. <LoadingMeter title='Monthly Messages' progress={12} total={100} />
  50. <LoadingMeter title='Knowledge Base Scans' progress={1} total={10} />
  51. </Layout>
  52. </div>
  53. </section>
  54. )
  55. }
  56. export default page