選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

page.tsx 4.1KB

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