Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

page.tsx 4.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. "use client";
  2. import React from 'react';
  3. import { Flex, Typography, Divider, Layout, Button, Row, Col, Image } 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. import PrimaryButton from '@/components/ui/PrimaryButton';
  9. const { Title, Text } = Typography;
  10. const page = () => {
  11. return (
  12. <Layout className="!space-y-4 !bg-white">
  13. <PageTitle title="DASHBOARD" />
  14. {/* Plan Details */}
  15. <Row>
  16. <Col span={24}>
  17. <SectionTitle title="Plan Details" />
  18. </Col>
  19. <Col span={24} className="px-4">
  20. <Row className="border-2 rounded border-cyan-500 px-4 py-2" >
  21. <Col span={24}>
  22. <Text strong>Plan: </Text>
  23. <Text type="success">Free Plan</Text>
  24. <Text className="!text-xs block mb-1">
  25. This product is still in beta testing. There might be some issues. Use at your own risk.
  26. </Text>
  27. </Col>
  28. <Col span={24} className='mb-2'>
  29. <PhoneOutlined className="me-1" style={{ color: 'red' }} />
  30. <Text strong className="!text-xs">Contact: </Text>
  31. <Text className="!text-blue-500 !text-xs">Aliff Akmal Bahri</Text>
  32. </Col>
  33. <Col span={24} className='mb-2'>
  34. <PrimaryButton onClick={()=>{}}>
  35. Upgrade Button <RightOutlined />
  36. </PrimaryButton>
  37. </Col>
  38. {/* Ruccan AI Labs Section */}
  39. <Col span={24} className="border-2 rounded border-cyan-500 !bg-cyan-600 !px-2 py-2 !mb-4">
  40. <Row>
  41. <Col span={12}>
  42. <Text strong className="!text-xs !text-white block mb-2">Ruccan AI Labs</Text>
  43. <Text className="!text-xs !text-white block mb-2">Explore our latest AI experiments</Text>
  44. <Text className="!text-xs block !text-[#f7ea8e]">New tools added regularly!</Text>
  45. </Col>
  46. <Col span={12} className="text-center mt-2 flex flex-col">
  47. <Image
  48. src="/flask.png"
  49. width={70}
  50. preview={false}
  51. className="mb-2 mx-auto"
  52. alt="Ruccan AI Labs"
  53. />
  54. <PrimaryButton outline={true} onClick={()=>{alert("Hello")}}>
  55. Explore Lab <RightOutlined />
  56. </PrimaryButton>
  57. </Col>
  58. </Row>
  59. </Col>
  60. </Row>
  61. </Col>
  62. </Row>
  63. {/* Usage Limits */}
  64. <Row className='mb-5'>
  65. <Col span={24}>
  66. <SectionTitle title="Usage Limits" />
  67. </Col>
  68. <Col span={24} className="px-4">
  69. <Layout className="border-2 rounded border-cyan-500 px-4 py-2 bg-white">
  70. <LoadingMeter title="AI Persona" progress={3} total={3} />
  71. <LoadingMeter title="Monthly Messages" progress={12} total={100} />
  72. <LoadingMeter title="Knowledge Base Scans" progress={1} total={10} />
  73. </Layout>
  74. </Col>
  75. </Row>
  76. </Layout>
  77. );
  78. };
  79. export default page;