From f56df0e956f2665a1af4a2dae12466a7e1f80b1a Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Sat, 22 Nov 2025 16:14:49 +0800 Subject: [PATCH] update pay function --- src/components/PricingList/index.js | 138 --------- src/components/PricingList/index.tsx | 138 --------- src/templates/FeaturesPage/Benefits/index.js | 83 ------ src/templates/FeaturesPage/Benefits/index.tsx | 83 ------ src/templates/FeaturesPage/Community/index.js | 107 ------- .../FeaturesPage/Community/index.tsx | 107 ------- src/templates/FeaturesPage/Features/index.js | 101 ------- src/templates/FeaturesPage/Features/index.tsx | 101 ------- src/templates/FeaturesPage/Hero/index.js | 38 --- src/templates/FeaturesPage/Hero/index.tsx | 38 --- src/templates/FeaturesPage/index.js | 24 -- src/templates/FeaturesPage/index.tsx | 24 -- src/templates/HomePage/Benefits/index.js | 165 ----------- src/templates/HomePage/Collaboration/index.js | 130 --------- .../HomePage/Collaboration/index.tsx | 130 --------- src/templates/HomePage/Features/index.js | 99 ------- src/templates/HomePage/Features/index.tsx | 91 ------ src/templates/HomePage/Hero/index.js | 236 ---------------- src/templates/HomePage/HowItWorks/index.js | 152 ---------- src/templates/HomePage/HowItWorks/index.tsx | 152 ---------- src/templates/HomePage/Pricing/index.js | 69 ----- src/templates/HomePage/Pricing/index.tsx | 69 ----- src/templates/HomePage/Roadmap/index.js | 97 ------- src/templates/HomePage/Roadmap/index.tsx | 97 ------- src/templates/HomePage/Testimonials/index.js | 90 ------ src/templates/HomePage/Testimonials/index.tsx | 90 ------ src/templates/HomePage/index.js | 30 -- src/templates/HomePage/index.tsx | 31 --- src/templates/HowToUsePage/Help/index.js | 62 ----- src/templates/HowToUsePage/Help/index.tsx | 62 ----- src/templates/HowToUsePage/HowToUse/index.js | 261 ------------------ src/templates/HowToUsePage/HowToUse/index.tsx | 261 ------------------ src/templates/HowToUsePage/index.js | 16 -- src/templates/HowToUsePage/index.tsx | 16 -- src/templates/LoginPage/index.js | 152 ---------- src/templates/LoginPage/index.tsx | 152 ---------- .../PricingPage/Community/Carousel.js | 64 ----- .../PricingPage/Community/Carousel.tsx | 64 ----- .../PricingPage/Community/Comment.js | 28 -- .../PricingPage/Community/Comment.tsx | 28 -- src/templates/PricingPage/Community/Grid.js | 25 -- src/templates/PricingPage/Community/Grid.tsx | 25 -- src/templates/PricingPage/Community/index.js | 50 ---- src/templates/PricingPage/Community/index.tsx | 50 ---- src/templates/PricingPage/Comparison/index.js | 101 ------- .../PricingPage/Comparison/index.tsx | 101 ------- src/templates/PricingPage/Faq/index.js | 78 ------ src/templates/PricingPage/Faq/index.tsx | 78 ------ src/templates/PricingPage/Pricing/index.js | 50 ---- src/templates/PricingPage/Pricing/index.tsx | 50 ---- src/templates/PricingPage/index.js | 22 -- src/templates/PricingPage/index.tsx | 22 -- src/templates/RoadmapPage/Hero/index.js | 58 ---- src/templates/RoadmapPage/Hero/index.tsx | 58 ---- src/templates/RoadmapPage/Roadmap/index.js | 60 ---- src/templates/RoadmapPage/Roadmap/index.tsx | 60 ---- src/templates/RoadmapPage/index.js | 18 -- src/templates/RoadmapPage/index.tsx | 18 -- 58 files changed, 4800 deletions(-) delete mode 100644 src/components/PricingList/index.js delete mode 100644 src/components/PricingList/index.tsx delete mode 100644 src/templates/FeaturesPage/Benefits/index.js delete mode 100644 src/templates/FeaturesPage/Benefits/index.tsx delete mode 100644 src/templates/FeaturesPage/Community/index.js delete mode 100644 src/templates/FeaturesPage/Community/index.tsx delete mode 100644 src/templates/FeaturesPage/Features/index.js delete mode 100644 src/templates/FeaturesPage/Features/index.tsx delete mode 100644 src/templates/FeaturesPage/Hero/index.js delete mode 100644 src/templates/FeaturesPage/Hero/index.tsx delete mode 100644 src/templates/FeaturesPage/index.js delete mode 100644 src/templates/FeaturesPage/index.tsx delete mode 100644 src/templates/HomePage/Benefits/index.js delete mode 100644 src/templates/HomePage/Collaboration/index.js delete mode 100644 src/templates/HomePage/Collaboration/index.tsx delete mode 100644 src/templates/HomePage/Features/index.js delete mode 100644 src/templates/HomePage/Features/index.tsx delete mode 100644 src/templates/HomePage/Hero/index.js delete mode 100644 src/templates/HomePage/HowItWorks/index.js delete mode 100644 src/templates/HomePage/HowItWorks/index.tsx delete mode 100644 src/templates/HomePage/Pricing/index.js delete mode 100644 src/templates/HomePage/Pricing/index.tsx delete mode 100644 src/templates/HomePage/Roadmap/index.js delete mode 100644 src/templates/HomePage/Roadmap/index.tsx delete mode 100644 src/templates/HomePage/Testimonials/index.js delete mode 100644 src/templates/HomePage/Testimonials/index.tsx delete mode 100644 src/templates/HomePage/index.js delete mode 100644 src/templates/HomePage/index.tsx delete mode 100644 src/templates/HowToUsePage/Help/index.js delete mode 100644 src/templates/HowToUsePage/Help/index.tsx delete mode 100644 src/templates/HowToUsePage/HowToUse/index.js delete mode 100644 src/templates/HowToUsePage/HowToUse/index.tsx delete mode 100644 src/templates/HowToUsePage/index.js delete mode 100644 src/templates/HowToUsePage/index.tsx delete mode 100644 src/templates/LoginPage/index.js delete mode 100644 src/templates/LoginPage/index.tsx delete mode 100644 src/templates/PricingPage/Community/Carousel.js delete mode 100644 src/templates/PricingPage/Community/Carousel.tsx delete mode 100644 src/templates/PricingPage/Community/Comment.js delete mode 100644 src/templates/PricingPage/Community/Comment.tsx delete mode 100644 src/templates/PricingPage/Community/Grid.js delete mode 100644 src/templates/PricingPage/Community/Grid.tsx delete mode 100644 src/templates/PricingPage/Community/index.js delete mode 100644 src/templates/PricingPage/Community/index.tsx delete mode 100644 src/templates/PricingPage/Comparison/index.js delete mode 100644 src/templates/PricingPage/Comparison/index.tsx delete mode 100644 src/templates/PricingPage/Faq/index.js delete mode 100644 src/templates/PricingPage/Faq/index.tsx delete mode 100644 src/templates/PricingPage/Pricing/index.js delete mode 100644 src/templates/PricingPage/Pricing/index.tsx delete mode 100644 src/templates/PricingPage/index.js delete mode 100644 src/templates/PricingPage/index.tsx delete mode 100644 src/templates/RoadmapPage/Hero/index.js delete mode 100644 src/templates/RoadmapPage/Hero/index.tsx delete mode 100644 src/templates/RoadmapPage/Roadmap/index.js delete mode 100644 src/templates/RoadmapPage/Roadmap/index.tsx delete mode 100644 src/templates/RoadmapPage/index.js delete mode 100644 src/templates/RoadmapPage/index.tsx diff --git a/src/components/PricingList/index.js b/src/components/PricingList/index.js deleted file mode 100644 index ecdcdfea..00000000 --- a/src/components/PricingList/index.js +++ /dev/null @@ -1,138 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; - -import { pricing } from "@/mocks/pricing"; - -type PricingListProps = { - monthly?: boolean; -}; - -const PricingList = ({ monthly = true }: PricingListProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( - setActiveIndex(newIndex)} - hasTrack={false} - ref={ref} - > - - {pricing.map((item, index) => ( - -
-

- {item.title} -

-

- {item.description} -

-
- {item.price && ( - <> -
$
-
- {monthly - ? item.price - : item.price !== "0" - ? ( - +item.price * - 12 * - 0.9 - ).toFixed(1) - : item.price} -
- - )} -
- -
    - {item.features.map((feature, index) => ( -
  • - Check -

    {feature}

    -
  • - ))} -
-
-
- ))} -
-
- {pricing.map((item, index) => ( - - ))} -
-
- ); -}; - -export default PricingList; diff --git a/src/components/PricingList/index.tsx b/src/components/PricingList/index.tsx deleted file mode 100644 index ecdcdfea..00000000 --- a/src/components/PricingList/index.tsx +++ /dev/null @@ -1,138 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; - -import { pricing } from "@/mocks/pricing"; - -type PricingListProps = { - monthly?: boolean; -}; - -const PricingList = ({ monthly = true }: PricingListProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( - setActiveIndex(newIndex)} - hasTrack={false} - ref={ref} - > - - {pricing.map((item, index) => ( - -
-

- {item.title} -

-

- {item.description} -

-
- {item.price && ( - <> -
$
-
- {monthly - ? item.price - : item.price !== "0" - ? ( - +item.price * - 12 * - 0.9 - ).toFixed(1) - : item.price} -
- - )} -
- -
    - {item.features.map((feature, index) => ( -
  • - Check -

    {feature}

    -
  • - ))} -
-
-
- ))} -
-
- {pricing.map((item, index) => ( - - ))} -
-
- ); -}; - -export default PricingList; diff --git a/src/templates/FeaturesPage/Benefits/index.js b/src/templates/FeaturesPage/Benefits/index.js deleted file mode 100644 index b47b4cd3..00000000 --- a/src/templates/FeaturesPage/Benefits/index.js +++ /dev/null @@ -1,83 +0,0 @@ -import { useRef, useState } from "react"; -import Link from "next/link"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; - -import { benefits } from "@/mocks/benefits"; - -type BenefitsProps = {}; - -const Benefits = ({}: BenefitsProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( -
-
- setActiveIndex(newIndex)} - hasTrack={false} - ref={ref} - > - - {benefits.map((item) => ( - -
- {item.title} -
-
{item.title}
-

{item.text}

-
- ))} -
-
-
- {benefits.map((item, index) => ( - - ))} -
-
-
- ); -}; - -export default Benefits; diff --git a/src/templates/FeaturesPage/Benefits/index.tsx b/src/templates/FeaturesPage/Benefits/index.tsx deleted file mode 100644 index b47b4cd3..00000000 --- a/src/templates/FeaturesPage/Benefits/index.tsx +++ /dev/null @@ -1,83 +0,0 @@ -import { useRef, useState } from "react"; -import Link from "next/link"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; - -import { benefits } from "@/mocks/benefits"; - -type BenefitsProps = {}; - -const Benefits = ({}: BenefitsProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( -
-
- setActiveIndex(newIndex)} - hasTrack={false} - ref={ref} - > - - {benefits.map((item) => ( - -
- {item.title} -
-
{item.title}
-

{item.text}

-
- ))} -
-
-
- {benefits.map((item, index) => ( - - ))} -
-
-
- ); -}; - -export default Benefits; diff --git a/src/templates/FeaturesPage/Community/index.js b/src/templates/FeaturesPage/Community/index.js deleted file mode 100644 index 52df9a02..00000000 --- a/src/templates/FeaturesPage/Community/index.js +++ /dev/null @@ -1,107 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; - -import { community } from "@/mocks/community"; - -type CommunityProps = {}; - -const Community = ({}: CommunityProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( -
-
-
-
- setActiveIndex(newIndex)} - ref={ref} - > - {community.map((comment) => ( - -
-
- {comment.text} -
-
-
- {comment.name} -
-
-
- {comment.name} -
-
- {comment.role} -
-
-
-
-
- ))} -
-
- {community.map((item: any, index: number) => ( - - ))} -
-
-
- “ -
-
- - - -
-
-
-
- ); -}; - -export default Community; diff --git a/src/templates/FeaturesPage/Community/index.tsx b/src/templates/FeaturesPage/Community/index.tsx deleted file mode 100644 index 52df9a02..00000000 --- a/src/templates/FeaturesPage/Community/index.tsx +++ /dev/null @@ -1,107 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; - -import { community } from "@/mocks/community"; - -type CommunityProps = {}; - -const Community = ({}: CommunityProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( -
-
-
-
- setActiveIndex(newIndex)} - ref={ref} - > - {community.map((comment) => ( - -
-
- {comment.text} -
-
-
- {comment.name} -
-
-
- {comment.name} -
-
- {comment.role} -
-
-
-
-
- ))} -
-
- {community.map((item: any, index: number) => ( - - ))} -
-
-
- “ -
-
- - - -
-
-
-
- ); -}; - -export default Community; diff --git a/src/templates/FeaturesPage/Features/index.js b/src/templates/FeaturesPage/Features/index.js deleted file mode 100644 index 4c415983..00000000 --- a/src/templates/FeaturesPage/Features/index.js +++ /dev/null @@ -1,101 +0,0 @@ -import Section from "@/components/Section"; -import Image from "@/components/Image"; - -type FeaturesProps = {}; - -const Features = ({}: FeaturesProps) => { - const content = [ - { - id: "0", - title: "Seamless Integration", - text: "With smart automation and top-notch security, it's the perfect solution for teams looking to work smarter.", - }, - { - id: "1", - title: "Smart Automation", - }, - { - id: "2", - title: "Top-notch Security", - }, - ]; - - return ( -
-
-
- {[ - { id: "0", imageUrl: "/images/features/image-1.jpg" }, - { id: "1", imageUrl: "/images/features/image-1.jpg" }, - { id: "2", imageUrl: "/images/features/image-1.jpg" }, - ].map((item, index) => ( -
-
- Image -
-
-
-
-
-
-

- Customization Options -

-
    - {content.map((item) => ( -
  • -
    - Check -
    - {item.title} -
    -
    - {item.text && ( -

    - {item.text} -

    - )} -
  • - ))} -
-
-
- ))} -
-
-
- ); -}; - -export default Features; diff --git a/src/templates/FeaturesPage/Features/index.tsx b/src/templates/FeaturesPage/Features/index.tsx deleted file mode 100644 index 4c415983..00000000 --- a/src/templates/FeaturesPage/Features/index.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import Section from "@/components/Section"; -import Image from "@/components/Image"; - -type FeaturesProps = {}; - -const Features = ({}: FeaturesProps) => { - const content = [ - { - id: "0", - title: "Seamless Integration", - text: "With smart automation and top-notch security, it's the perfect solution for teams looking to work smarter.", - }, - { - id: "1", - title: "Smart Automation", - }, - { - id: "2", - title: "Top-notch Security", - }, - ]; - - return ( -
-
-
- {[ - { id: "0", imageUrl: "/images/features/image-1.jpg" }, - { id: "1", imageUrl: "/images/features/image-1.jpg" }, - { id: "2", imageUrl: "/images/features/image-1.jpg" }, - ].map((item, index) => ( -
-
- Image -
-
-
-
-
-
-

- Customization Options -

-
    - {content.map((item) => ( -
  • -
    - Check -
    - {item.title} -
    -
    - {item.text && ( -

    - {item.text} -

    - )} -
  • - ))} -
-
-
- ))} -
-
-
- ); -}; - -export default Features; diff --git a/src/templates/FeaturesPage/Hero/index.js b/src/templates/FeaturesPage/Hero/index.js deleted file mode 100644 index a1ba963a..00000000 --- a/src/templates/FeaturesPage/Hero/index.js +++ /dev/null @@ -1,38 +0,0 @@ -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -import Section from "@/components/Section"; - -type HeroProps = {}; - -const Hero = ({}: HeroProps) => ( -
-
- -
- Features -
- Grid -
-
-
-
-); - -export default Hero; diff --git a/src/templates/FeaturesPage/Hero/index.tsx b/src/templates/FeaturesPage/Hero/index.tsx deleted file mode 100644 index a1ba963a..00000000 --- a/src/templates/FeaturesPage/Hero/index.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -import Section from "@/components/Section"; - -type HeroProps = {}; - -const Hero = ({}: HeroProps) => ( -
-
- -
- Features -
- Grid -
-
-
-
-); - -export default Hero; diff --git a/src/templates/FeaturesPage/index.js b/src/templates/FeaturesPage/index.js deleted file mode 100644 index ed091efe..00000000 --- a/src/templates/FeaturesPage/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import Services from "@/components/Services"; -import Join from "@/components/Join"; -import Hero from "./Hero"; -import Benefits from "./Benefits"; -import Features from "./Features"; -import Community from "./Community"; - -const FeaturesPage = () => { - return ( - - - - - - - - - ); -}; - -export default FeaturesPage; diff --git a/src/templates/FeaturesPage/index.tsx b/src/templates/FeaturesPage/index.tsx deleted file mode 100644 index ed091efe..00000000 --- a/src/templates/FeaturesPage/index.tsx +++ /dev/null @@ -1,24 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import Services from "@/components/Services"; -import Join from "@/components/Join"; -import Hero from "./Hero"; -import Benefits from "./Benefits"; -import Features from "./Features"; -import Community from "./Community"; - -const FeaturesPage = () => { - return ( - - - - - - - - - ); -}; - -export default FeaturesPage; diff --git a/src/templates/HomePage/Benefits/index.js b/src/templates/HomePage/Benefits/index.js deleted file mode 100644 index 5a81c0ad..00000000 --- a/src/templates/HomePage/Benefits/index.js +++ /dev/null @@ -1,165 +0,0 @@ -import { useRef, useState } from "react"; -import { Link } from "react-router-dom"; -// import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "../../../components/Section"; -import Heading from "../../../components/Heading/index.js"; -import Image from "../../../components/Image"; - -// 简化版数据,避免依赖外部mock文件 -const benefits = [ - { - id: "0", - title: "智能问答", - text: "让用户能够快速找到问题答案,无需在多个信息源中搜索,提升投研效率。", - backgroundUrl: "/images/benefits/card-1.svg", - iconUrl: "/images/benefits/icon-1.svg", - imageUrl: "/images/benefits/image-2.png", - light: true, - }, - { - id: "1", - title: "持续学习", - text: "系统采用自然语言处理技术理解用户查询,提供准确相关的投研分析结果。", - backgroundUrl: "/images/benefits/card-2.svg", - iconUrl: "/images/benefits/icon-2.svg", - imageUrl: "/images/benefits/image-2.png", - }, - { - id: "2", - title: "全域连接", - text: "随时随地连接AI投研助手,支持多设备访问,让专业分析更便捷。", - backgroundUrl: "/images/benefits/card-3.svg", - iconUrl: "/images/benefits/icon-3.svg", - imageUrl: "/images/benefits/image-2.png", - }, - { - id: "3", - title: "快速响应", - text: "毫秒级响应速度,让用户快速获得投研洞察,把握市场先机。", - backgroundUrl: "/images/benefits/card-4.svg", - iconUrl: "/images/benefits/icon-4.svg", - imageUrl: "/images/benefits/image-2.png", - light: true, - }, - { - id: "4", - title: "深度分析", - text: "基于海量数据训练的专业投研模型,提供超越传统分析工具的深度洞察。", - backgroundUrl: "/images/benefits/card-5.svg", - iconUrl: "/images/benefits/icon-1.svg", - imageUrl: "/images/benefits/image-2.png", - }, - { - id: "5", - title: "智能预测", - text: "结合机器学习算法,为投资决策提供智能预测和风险评估建议。", - backgroundUrl: "/images/benefits/card-6.svg", - iconUrl: "/images/benefits/icon-2.svg", - imageUrl: "/images/benefits/image-2.png", - }, -]; - -const Benefits = () => { - const [activeIndex, setActiveIndex] = useState(0); - - const handleClick = (index) => { - setActiveIndex(index); - }; - - return ( -
-
- - - {/* 简化版网格布局,暂时不使用Splide */} -
- {benefits.map((item, index) => ( -
- -
-
- {item.title} -
-

- {item.text} -

-
- {item.title} -
- 了解更多 -
- - - -
-
- {item.light && ( -
- )} -
-
- {item.imageUrl && ( - {item.title} - )} -
-
- -
- ))} -
- - {/* 指示器 */} -
- {benefits.map((item, index) => ( - - ))} -
-
-
- ); -}; - -export default Benefits; diff --git a/src/templates/HomePage/Collaboration/index.js b/src/templates/HomePage/Collaboration/index.js deleted file mode 100644 index 4d0624e4..00000000 --- a/src/templates/HomePage/Collaboration/index.js +++ /dev/null @@ -1,130 +0,0 @@ -import Section from "@/components/Section"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; - -import { text, content, apps } from "@/mocks/collaboration"; - -type CollaborationProps = {}; - -const Collaboration = ({}: CollaborationProps) => { - return ( -
-
-
-

- AI chat app for seamless collaboration -

-
    - {content.map((item) => ( -
  • -
    - Check -
    - {item.title} -
    -
    - {item.text && ( -

    - {item.text} -

    - )} -
  • - ))} -
- -
-
-
-

- {text} -

-
-
-
-
- Brainwave -
-
-
-
    - {apps.map((app, index) => ( -
  • -
    - {app.title} -
    -
  • - ))} -
-
- Curve 1 -
-
- Curve 2 -
-
-
-
-
-
- ); -}; - -export default Collaboration; diff --git a/src/templates/HomePage/Collaboration/index.tsx b/src/templates/HomePage/Collaboration/index.tsx deleted file mode 100644 index 4d0624e4..00000000 --- a/src/templates/HomePage/Collaboration/index.tsx +++ /dev/null @@ -1,130 +0,0 @@ -import Section from "@/components/Section"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; - -import { text, content, apps } from "@/mocks/collaboration"; - -type CollaborationProps = {}; - -const Collaboration = ({}: CollaborationProps) => { - return ( -
-
-
-

- AI chat app for seamless collaboration -

-
    - {content.map((item) => ( -
  • -
    - Check -
    - {item.title} -
    -
    - {item.text && ( -

    - {item.text} -

    - )} -
  • - ))} -
- -
-
-
-

- {text} -

-
-
-
-
- Brainwave -
-
-
-
    - {apps.map((app, index) => ( -
  • -
    - {app.title} -
    -
  • - ))} -
-
- Curve 1 -
-
- Curve 2 -
-
-
-
-
-
- ); -}; - -export default Collaboration; diff --git a/src/templates/HomePage/Features/index.js b/src/templates/HomePage/Features/index.js deleted file mode 100644 index cfeeead9..00000000 --- a/src/templates/HomePage/Features/index.js +++ /dev/null @@ -1,99 +0,0 @@ -import { useRef, useState } from "react"; -import Section from "../../../components/Section"; -import Button from "../../../components/Button"; -import Image from "../../../components/Image"; -import Notification from "../../../components/Notification"; - -// 简化版特性数据 -const features = [ - { - id: "0", - title: "智能投研分析", - text: "利用先进的AI技术,为您提供全面的投资研究分析,包括市场趋势、公司基本面、技术指标等多维度分析,帮助您做出更明智的投资决策。", - imageUrl: "/images/features/features.png", - iconUrl: "/images/icons/recording-01.svg", - notification: "AI分析完成 - 发现3个潜在投资机会", - }, - { - id: "1", - title: "实时市场监控", - text: "24/7全天候监控全球金融市场动态,实时捕捉市场变化和投资机会。智能预警系统会在关键时刻及时提醒您,确保不错过任何重要的投资时机。", - imageUrl: "/images/features/image-1.jpg", - iconUrl: "/images/icons/chrome-cast.svg", - notification: "市场异动提醒 - 科技股出现上涨信号", - }, -]; - -const Features = () => { - const [currentFeature, setCurrentFeature] = useState(0); - - return ( -
-
- {features.map((item, index) => ( -
-
-
-

- {item.title} -

-

- {item.text} -

- -
- -
-
- Feature -
-
- -
-
- Icon -
-
-
-
-
- ))} - - {/* 简化版导航 */} -
- {features.map((_, index) => ( -
-
-
- ); -}; - -export default Features; diff --git a/src/templates/HomePage/Features/index.tsx b/src/templates/HomePage/Features/index.tsx deleted file mode 100644 index 1459358f..00000000 --- a/src/templates/HomePage/Features/index.tsx +++ /dev/null @@ -1,91 +0,0 @@ -import { useRef } from "react"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; -import Notification from "@/components/Notification"; - -import { features } from "@/mocks/features"; -import Arrows from "@/components/Arrows"; - -type FeaturesProps = {}; - -const Features = ({}: FeaturesProps) => { - const ref = useRef(null); - - return ( -
-
- - - {features.map((item) => ( - -
-
-

- {item.title} -

-

- {item.text} -

- -
- ref.current?.go("<")} - onNext={() => ref.current?.go(">")} - /> -
-
- Figure -
- -
- Icon -
-
-
-
-
- ))} -
- ref.current?.go("<")} - onNext={() => ref.current?.go(">")} - /> -
-
-
- ); -}; - -export default Features; diff --git a/src/templates/HomePage/Hero/index.js b/src/templates/HomePage/Hero/index.js deleted file mode 100644 index 0f42649c..00000000 --- a/src/templates/HomePage/Hero/index.js +++ /dev/null @@ -1,236 +0,0 @@ -import { useEffect, useRef, useState } from "react"; -// import { MouseParallax, ScrollParallax } from "react-just-parallax"; -import Section from "../../../components/Section"; -import Button from "../../../components/Button"; -import Image from "../../../components/Image"; -import Generating from "../../../components/Generating"; -import Notification from "../../../components/Notification"; -import Logos from "../../../components/Logos"; - -const Hero = () => { - const [mounted, setMounted] = useState(false); - - useEffect(() => { - setMounted(true); - }, []); - - const parallaxRef = useRef(null); - - return ( -
- {/* 添加深色渐变背景 */} -
-
-
-
-

- 探索  - - AI投研 - -  的无限可能性 {" "} - - - 价值前沿 - - Curve - -

-

- 释放AI的力量,升级您的投研效率。 - 体验专业的开放式AI投研平台,超越传统分析工具。 -

- -
-
-
-
-
-
- AI -
- - - {/* 简化版本,暂时不使用ScrollParallax */} -
- {[ - "/images/icons/home-smile.svg", - "/images/icons/file-02.svg", - "/images/icons/search-md.svg", - "/images/icons/plus-square.svg", - ].map((icon, index) => ( -
- {`Icon -
- ))} -
- -
- -
-
-
-
-
-
- Hero -
-
-
-
-
-
- - {/* 浮动装饰点 */} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - - - - - -
- ); -}; - -export default Hero; diff --git a/src/templates/HomePage/HowItWorks/index.js b/src/templates/HomePage/HowItWorks/index.js deleted file mode 100644 index 7d9dac4c..00000000 --- a/src/templates/HomePage/HowItWorks/index.js +++ /dev/null @@ -1,152 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; -import Button from "@/components/Button"; -import Tagline from "@/components/Tagline"; -import Arrows from "@/components/Arrows"; - -import { howItWorks } from "@/mocks/how-it-works"; - -type HowItWorksProps = {}; - -const HowItWorks = ({}: HowItWorksProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( -
-
- - - {howItWorks.map((item, index) => ( - -
-
- - How it work: 0{index + 1}. - -

- {item.title} -

-

- {item.text} -

- - ref.current?.go("<")} - onNext={() => ref.current?.go(">")} - /> -
-
-
-
- {item.title} -
-
- - - -
-
- Ask anything -
-
- Recording -
-
-
-
-
-
-
-
-
- ))} -
- ref.current?.go("<")} - onNext={() => ref.current?.go(">")} - /> -
- Gradient -
-
- {howItWorks.map((item, index) => ( -
handleClick(index)} - key={item.id} - > -
-
- 0{index + 1}. -
-

- {item.title} -

-

- {item.text} -

-
- ))} -
-
-
-
- ); -}; - -export default HowItWorks; diff --git a/src/templates/HomePage/HowItWorks/index.tsx b/src/templates/HomePage/HowItWorks/index.tsx deleted file mode 100644 index 7d9dac4c..00000000 --- a/src/templates/HomePage/HowItWorks/index.tsx +++ /dev/null @@ -1,152 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; -import Button from "@/components/Button"; -import Tagline from "@/components/Tagline"; -import Arrows from "@/components/Arrows"; - -import { howItWorks } from "@/mocks/how-it-works"; - -type HowItWorksProps = {}; - -const HowItWorks = ({}: HowItWorksProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( -
-
- - - {howItWorks.map((item, index) => ( - -
-
- - How it work: 0{index + 1}. - -

- {item.title} -

-

- {item.text} -

- - ref.current?.go("<")} - onNext={() => ref.current?.go(">")} - /> -
-
-
-
- {item.title} -
-
- - - -
-
- Ask anything -
-
- Recording -
-
-
-
-
-
-
-
-
- ))} -
- ref.current?.go("<")} - onNext={() => ref.current?.go(">")} - /> -
- Gradient -
-
- {howItWorks.map((item, index) => ( -
handleClick(index)} - key={item.id} - > -
-
- 0{index + 1}. -
-

- {item.title} -

-

- {item.text} -

-
- ))} -
-
-
-
- ); -}; - -export default HowItWorks; diff --git a/src/templates/HomePage/Pricing/index.js b/src/templates/HomePage/Pricing/index.js deleted file mode 100644 index 2b11497a..00000000 --- a/src/templates/HomePage/Pricing/index.js +++ /dev/null @@ -1,69 +0,0 @@ -import Link from "next/link"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; -import Heading from "@/components/Heading"; -import PricingList from "@/components/PricingList"; - -type PricingProps = {}; - -const Pricing = ({}: PricingProps) => { - return ( -
-
-
- Sphere -
- Stars -
-
- -
- -
- Lines -
-
- Lines -
-
-
- - See the full details - -
-
-
- ); -}; - -export default Pricing; diff --git a/src/templates/HomePage/Pricing/index.tsx b/src/templates/HomePage/Pricing/index.tsx deleted file mode 100644 index 2b11497a..00000000 --- a/src/templates/HomePage/Pricing/index.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import Link from "next/link"; -import Section from "@/components/Section"; -import Image from "@/components/Image"; -import Heading from "@/components/Heading"; -import PricingList from "@/components/PricingList"; - -type PricingProps = {}; - -const Pricing = ({}: PricingProps) => { - return ( -
-
-
- Sphere -
- Stars -
-
- -
- -
- Lines -
-
- Lines -
-
-
- - See the full details - -
-
-
- ); -}; - -export default Pricing; diff --git a/src/templates/HomePage/Roadmap/index.js b/src/templates/HomePage/Roadmap/index.js deleted file mode 100644 index 24d83b59..00000000 --- a/src/templates/HomePage/Roadmap/index.js +++ /dev/null @@ -1,97 +0,0 @@ -import Section from "@/components/Section"; -import Tagline from "@/components/Tagline"; -import Image from "@/components/Image"; - -import { roadmap } from "@/mocks/roadmap"; -import Button from "@/components/Button"; -import Heading from "@/components/Heading"; - -type RoadmapProps = {}; - -const Roadmap = ({}: RoadmapProps) => ( -
-
- -
- {roadmap.map((item, index) => ( -
-
-
- Grid -
-
-
- {item.date} -
- { -
- {item.status === "done" - ? "Done" - : "In progress"} -
-
-
-
-
- {item.title} -
-
-

{item.title}

-

{item.text}

-
-
-
- ))} -
-
- Gradient -
-
-
-
- -
-
-
-); - -export default Roadmap; diff --git a/src/templates/HomePage/Roadmap/index.tsx b/src/templates/HomePage/Roadmap/index.tsx deleted file mode 100644 index 24d83b59..00000000 --- a/src/templates/HomePage/Roadmap/index.tsx +++ /dev/null @@ -1,97 +0,0 @@ -import Section from "@/components/Section"; -import Tagline from "@/components/Tagline"; -import Image from "@/components/Image"; - -import { roadmap } from "@/mocks/roadmap"; -import Button from "@/components/Button"; -import Heading from "@/components/Heading"; - -type RoadmapProps = {}; - -const Roadmap = ({}: RoadmapProps) => ( -
-
- -
- {roadmap.map((item, index) => ( -
-
-
- Grid -
-
-
- {item.date} -
- { -
- {item.status === "done" - ? "Done" - : "In progress"} -
-
-
-
-
- {item.title} -
-
-

{item.title}

-

{item.text}

-
-
-
- ))} -
-
- Gradient -
-
-
-
- -
-
-
-); - -export default Roadmap; diff --git a/src/templates/HomePage/Testimonials/index.js b/src/templates/HomePage/Testimonials/index.js deleted file mode 100644 index 847b75d8..00000000 --- a/src/templates/HomePage/Testimonials/index.js +++ /dev/null @@ -1,90 +0,0 @@ -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Tagline from "@/components/Tagline"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; - -import { testimonials } from "@/mocks/testimonials"; -import Arrows from "@/components/Arrows"; -import Heading from "@/components/Heading"; - -type TestimonialsProps = {}; - -const Testimonials = ({}: TestimonialsProps) => ( -
-
- - - - {testimonials.map((item) => ( - -
-
-
-
- {item.name} -
-
-
-
-
- {item.name} -
-
{item.name}
-
- {item.role} -
-
-
-
-

- {item.text} -

- -
-
-
-
- ))} -
- -
-
-
-); - -export default Testimonials; diff --git a/src/templates/HomePage/Testimonials/index.tsx b/src/templates/HomePage/Testimonials/index.tsx deleted file mode 100644 index 847b75d8..00000000 --- a/src/templates/HomePage/Testimonials/index.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Section from "@/components/Section"; -import Tagline from "@/components/Tagline"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; - -import { testimonials } from "@/mocks/testimonials"; -import Arrows from "@/components/Arrows"; -import Heading from "@/components/Heading"; - -type TestimonialsProps = {}; - -const Testimonials = ({}: TestimonialsProps) => ( -
-
- - - - {testimonials.map((item) => ( - -
-
-
-
- {item.name} -
-
-
-
-
- {item.name} -
-
{item.name}
-
- {item.role} -
-
-
-
-

- {item.text} -

- -
-
-
-
- ))} -
- -
-
-
-); - -export default Testimonials; diff --git a/src/templates/HomePage/index.js b/src/templates/HomePage/index.js deleted file mode 100644 index c89749a0..00000000 --- a/src/templates/HomePage/index.js +++ /dev/null @@ -1,30 +0,0 @@ -import Layout from "../../components/Layout"; -import Hero from "./Hero/index.js"; -import Benefits from "./Benefits/index.js"; -import Features from "./Features/index.js"; -import Collaboration from "./Collaboration"; -import HowItWorks from "./HowItWorks"; -import Pricing from "./Pricing"; -import Testimonials from "./Testimonials"; -import Roadmap from "./Roadmap"; -import Services from "../../components/Services"; -import Join from "../../components/Join"; - -const HomePage = () => { - return ( - - - - - - - - - - - - - ); -}; - -export default HomePage; diff --git a/src/templates/HomePage/index.tsx b/src/templates/HomePage/index.tsx deleted file mode 100644 index 22256d0a..00000000 --- a/src/templates/HomePage/index.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import Layout from "../../components/Layout/index.js"; -import Hero from "./Hero/index.js"; -import Benefits from "./Benefits/index.js"; -import Features from "./Features/index.js"; -// import Collaboration from "./Collaboration"; -// import HowItWorks from "./HowItWorks"; -// import Pricing from "./Pricing"; -// import Testimonials from "./Testimonials"; -// import Roadmap from "./Roadmap"; -// import Services from "../../components/Services"; -// import Join from "../../components/Join"; - -const HomePage = () => { - return ( - - - - - {/* 其他组件将在后续逐步修复 */} - {/* - - - - - - */} - - ); -}; - -export default HomePage; diff --git a/src/templates/HowToUsePage/Help/index.js b/src/templates/HowToUsePage/Help/index.js deleted file mode 100644 index daa68b93..00000000 --- a/src/templates/HowToUsePage/Help/index.js +++ /dev/null @@ -1,62 +0,0 @@ -import Section from "@/components/Section"; -import Image from "@/components/Image"; -import Button from "@/components/Button"; - -type HelpProps = {}; - -const Help = ({}: HelpProps) => ( -
-
-
-
- Help -
-
-
-

Need help?

-

- Can’t find your answer, contact us -

-
    - {[ - { - id: "0", - title: "Join our community", - text: "Discuss anything with other users", - }, - { - id: "1", - title: "Email us", - text: "hello@brainwave.com", - }, - ].map((item) => ( -
  • -
    - Contact -
    -
    -
    {item.title}
    -

    {item.text}

    -
    -
  • - ))} -
-
-
-
-); - -export default Help; diff --git a/src/templates/HowToUsePage/Help/index.tsx b/src/templates/HowToUsePage/Help/index.tsx deleted file mode 100644 index daa68b93..00000000 --- a/src/templates/HowToUsePage/Help/index.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import Section from "@/components/Section"; -import Image from "@/components/Image"; -import Button from "@/components/Button"; - -type HelpProps = {}; - -const Help = ({}: HelpProps) => ( -
-
-
-
- Help -
-
-
-

Need help?

-

- Can’t find your answer, contact us -

-
    - {[ - { - id: "0", - title: "Join our community", - text: "Discuss anything with other users", - }, - { - id: "1", - title: "Email us", - text: "hello@brainwave.com", - }, - ].map((item) => ( -
  • -
    - Contact -
    -
    -
    {item.title}
    -

    {item.text}

    -
    -
  • - ))} -
-
-
-
-); - -export default Help; diff --git a/src/templates/HowToUsePage/HowToUse/index.js b/src/templates/HowToUsePage/HowToUse/index.js deleted file mode 100644 index 904bc443..00000000 --- a/src/templates/HowToUsePage/HowToUse/index.js +++ /dev/null @@ -1,261 +0,0 @@ -import { useState } from "react"; -import ScrollIntoView from "react-scroll-into-view"; -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -import Tagline from "@/components/Tagline"; -import Button from "@/components/Button"; - -import { navigation } from "@/mocks/how-to-use"; - -type HowToUseProps = {}; - -const HowToUse = ({}: HowToUseProps) => { - const [openNavigation, setOpenNavigation] = useState(false); - const [openGroupId, setOpenGroudId] = useState("g0"); - - return ( -
-
- -
- Search - -
-
-
-
setOpenNavigation(!openNavigation)} - > -
- Getting started -
- Arrow -
-
- {navigation.map((group) => ( -
- -
-
    - {group.items.map((item) => ( -
  • - - - {item.title} - - -
  • - ))} -
-
-
- ))} -
-
-
-

- Getting started -

-
-
-

Sign up

- 01 -
-
- Image 1 -
-
-

- {`To create an account with Brainwave - AI - chat app, all you need to do is provide - your name, email address, and password. - Once you have signed up, you will be - able to start exploring the app's - various features. Brainwave's AI chat - system is designed to provide you with - an intuitive, easy-to-use interface that - makes it simple to chat with friends and - family, or even with new acquaintances.`} -

-

- In addition, the app is constantly being - updated with new features and improvements, - so you can expect it to continue to evolve - and improve over time. Whether you are - looking for a simple chat app, or a more - advanced platform that can help you stay - connected with people from all over the - world, Brainwave is the perfect choice. -

-
-
-
-
-
-

- Connect with AI Chatbot -

- 02 -
-
- Image 2 -
-
-

- Connect with the AI chatbot to start the - conversation. The chatbot uses natural - language processing to understand your - queries and provide relevant responses. -

-
-
-
-
-
-

- Get Personalized Advices -

- 03 -
-
- Image 3 -
-
-

- Based on the conversation with the AI - chatbot, you will receive personalized - recommendations related to your queries. The - chatbot is trained to understand your - preferences and provide customized - suggestions. -

-
-
-
-
-
-

- Explore and Engage -

- 04 -
-
- Image 4 -
-
-

- Explore the recommendations provided by the - AI chatbot and engage with the app. You can - ask questions, provide feedback, and share - your experience with the chatbot. -

-
-
-
-
- -
-
-
-
-
- ); -}; - -export default HowToUse; diff --git a/src/templates/HowToUsePage/HowToUse/index.tsx b/src/templates/HowToUsePage/HowToUse/index.tsx deleted file mode 100644 index 904bc443..00000000 --- a/src/templates/HowToUsePage/HowToUse/index.tsx +++ /dev/null @@ -1,261 +0,0 @@ -import { useState } from "react"; -import ScrollIntoView from "react-scroll-into-view"; -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -import Tagline from "@/components/Tagline"; -import Button from "@/components/Button"; - -import { navigation } from "@/mocks/how-to-use"; - -type HowToUseProps = {}; - -const HowToUse = ({}: HowToUseProps) => { - const [openNavigation, setOpenNavigation] = useState(false); - const [openGroupId, setOpenGroudId] = useState("g0"); - - return ( -
-
- -
- Search - -
-
-
-
setOpenNavigation(!openNavigation)} - > -
- Getting started -
- Arrow -
-
- {navigation.map((group) => ( -
- -
-
    - {group.items.map((item) => ( -
  • - - - {item.title} - - -
  • - ))} -
-
-
- ))} -
-
-
-

- Getting started -

-
-
-

Sign up

- 01 -
-
- Image 1 -
-
-

- {`To create an account with Brainwave - AI - chat app, all you need to do is provide - your name, email address, and password. - Once you have signed up, you will be - able to start exploring the app's - various features. Brainwave's AI chat - system is designed to provide you with - an intuitive, easy-to-use interface that - makes it simple to chat with friends and - family, or even with new acquaintances.`} -

-

- In addition, the app is constantly being - updated with new features and improvements, - so you can expect it to continue to evolve - and improve over time. Whether you are - looking for a simple chat app, or a more - advanced platform that can help you stay - connected with people from all over the - world, Brainwave is the perfect choice. -

-
-
-
-
-
-

- Connect with AI Chatbot -

- 02 -
-
- Image 2 -
-
-

- Connect with the AI chatbot to start the - conversation. The chatbot uses natural - language processing to understand your - queries and provide relevant responses. -

-
-
-
-
-
-

- Get Personalized Advices -

- 03 -
-
- Image 3 -
-
-

- Based on the conversation with the AI - chatbot, you will receive personalized - recommendations related to your queries. The - chatbot is trained to understand your - preferences and provide customized - suggestions. -

-
-
-
-
-
-

- Explore and Engage -

- 04 -
-
- Image 4 -
-
-

- Explore the recommendations provided by the - AI chatbot and engage with the app. You can - ask questions, provide feedback, and share - your experience with the chatbot. -

-
-
-
-
- -
-
-
-
-
- ); -}; - -export default HowToUse; diff --git a/src/templates/HowToUsePage/index.js b/src/templates/HowToUsePage/index.js deleted file mode 100644 index e74a317e..00000000 --- a/src/templates/HowToUsePage/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import HowToUse from "./HowToUse"; -import Help from "./Help"; - -const HowToUsePage = () => { - return ( - - - - - ); -}; - -export default HowToUsePage; diff --git a/src/templates/HowToUsePage/index.tsx b/src/templates/HowToUsePage/index.tsx deleted file mode 100644 index e74a317e..00000000 --- a/src/templates/HowToUsePage/index.tsx +++ /dev/null @@ -1,16 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import HowToUse from "./HowToUse"; -import Help from "./Help"; - -const HowToUsePage = () => { - return ( - - - - - ); -}; - -export default HowToUsePage; diff --git a/src/templates/LoginPage/index.js b/src/templates/LoginPage/index.js deleted file mode 100644 index 43fbcf82..00000000 --- a/src/templates/LoginPage/index.js +++ /dev/null @@ -1,152 +0,0 @@ -"use client"; - -import { useSearchParams } from "next/navigation"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; -import Layout from "@/components/Layout"; -import Section from "@/components/Section"; - -const LoginPage = ({}) => { - const searchParams = useSearchParams(); - const signUp = searchParams.has("new"); - - return ( - -
-
-
-

- Join the AI revolution with Brainwave -

-

- Get started with Brainwave - AI chat app today and - experience the power of AI in your conversations! -

-
-
-
- {signUp && ( -
- Mail - -
- )} -
- Mail - -
-
- Lock - -
- -
-
- Or start your Brainwave with -
- -
-
-
-
-
-
-
-
-
- - - - - - -
- Background -
-
-
- ); -}; - -export default LoginPage; diff --git a/src/templates/LoginPage/index.tsx b/src/templates/LoginPage/index.tsx deleted file mode 100644 index 43fbcf82..00000000 --- a/src/templates/LoginPage/index.tsx +++ /dev/null @@ -1,152 +0,0 @@ -"use client"; - -import { useSearchParams } from "next/navigation"; -import Button from "@/components/Button"; -import Image from "@/components/Image"; -import Layout from "@/components/Layout"; -import Section from "@/components/Section"; - -const LoginPage = ({}) => { - const searchParams = useSearchParams(); - const signUp = searchParams.has("new"); - - return ( - -
-
-
-

- Join the AI revolution with Brainwave -

-

- Get started with Brainwave - AI chat app today and - experience the power of AI in your conversations! -

-
-
-
- {signUp && ( -
- Mail - -
- )} -
- Mail - -
-
- Lock - -
- -
-
- Or start your Brainwave with -
- -
-
-
-
-
-
-
-
-
- - - - - - -
- Background -
-
-
- ); -}; - -export default LoginPage; diff --git a/src/templates/PricingPage/Community/Carousel.js b/src/templates/PricingPage/Community/Carousel.js deleted file mode 100644 index 75fa2242..00000000 --- a/src/templates/PricingPage/Community/Carousel.js +++ /dev/null @@ -1,64 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Comment from "./Comment"; - -type CarouselProps = { - items: any; -}; - -const Carousel = ({ items }: CarouselProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( - setActiveIndex(newIndex)} - hasTrack={false} - ref={ref} - > - - {items.map((item: any) => ( - -
- -
-
- ))} -
-
- {items.map((item: any, index: number) => ( - - ))} -
-
- ); -}; - -export default Carousel; diff --git a/src/templates/PricingPage/Community/Carousel.tsx b/src/templates/PricingPage/Community/Carousel.tsx deleted file mode 100644 index 75fa2242..00000000 --- a/src/templates/PricingPage/Community/Carousel.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import { useRef, useState } from "react"; -import { Splide, SplideTrack, SplideSlide } from "@splidejs/react-splide"; -import Comment from "./Comment"; - -type CarouselProps = { - items: any; -}; - -const Carousel = ({ items }: CarouselProps) => { - const [activeIndex, setActiveIndex] = useState(0); - - const ref = useRef(null); - - const handleClick = (index: number) => { - setActiveIndex(index); - ref.current?.go(index); - }; - - return ( - setActiveIndex(newIndex)} - hasTrack={false} - ref={ref} - > - - {items.map((item: any) => ( - -
- -
-
- ))} -
-
- {items.map((item: any, index: number) => ( - - ))} -
-
- ); -}; - -export default Carousel; diff --git a/src/templates/PricingPage/Community/Comment.js b/src/templates/PricingPage/Community/Comment.js deleted file mode 100644 index a37e4b02..00000000 --- a/src/templates/PricingPage/Community/Comment.js +++ /dev/null @@ -1,28 +0,0 @@ -import Image from "@/components/Image"; - -type CommentProps = { - comment: any; -}; - -const Comment = ({ comment }: CommentProps) => ( -
-
{comment.text}
-
-
-
{comment.name}
-
{comment.role}
-
-
- {comment.name} -
-
-
-); - -export default Comment; diff --git a/src/templates/PricingPage/Community/Comment.tsx b/src/templates/PricingPage/Community/Comment.tsx deleted file mode 100644 index a37e4b02..00000000 --- a/src/templates/PricingPage/Community/Comment.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import Image from "@/components/Image"; - -type CommentProps = { - comment: any; -}; - -const Comment = ({ comment }: CommentProps) => ( -
-
{comment.text}
-
-
-
{comment.name}
-
{comment.role}
-
-
- {comment.name} -
-
-
-); - -export default Comment; diff --git a/src/templates/PricingPage/Community/Grid.js b/src/templates/PricingPage/Community/Grid.js deleted file mode 100644 index 5c1b3f1f..00000000 --- a/src/templates/PricingPage/Community/Grid.js +++ /dev/null @@ -1,25 +0,0 @@ -import Masonry, { ResponsiveMasonry } from "react-responsive-masonry"; -import Comment from "./Comment"; - -type GridProps = { - items: any; -}; - -const Grid = ({ items }: GridProps) => { - return ( - - - {items.map((item: any) => ( -
- -
- ))} -
-
- ); -}; - -export default Grid; diff --git a/src/templates/PricingPage/Community/Grid.tsx b/src/templates/PricingPage/Community/Grid.tsx deleted file mode 100644 index 5c1b3f1f..00000000 --- a/src/templates/PricingPage/Community/Grid.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import Masonry, { ResponsiveMasonry } from "react-responsive-masonry"; -import Comment from "./Comment"; - -type GridProps = { - items: any; -}; - -const Grid = ({ items }: GridProps) => { - return ( - - - {items.map((item: any) => ( -
- -
- ))} -
-
- ); -}; - -export default Grid; diff --git a/src/templates/PricingPage/Community/index.js b/src/templates/PricingPage/Community/index.js deleted file mode 100644 index 35e2408d..00000000 --- a/src/templates/PricingPage/Community/index.js +++ /dev/null @@ -1,50 +0,0 @@ -import dynamic from "next/dynamic"; -import { useMediaQuery } from "react-responsive"; -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -const Grid = dynamic(() => import("./Grid"), { ssr: false }); -const Carousel = dynamic(() => import("./Carousel"), { ssr: false }); - -import { community } from "@/mocks/community"; - -type CommunityProps = {}; - -const Community = ({}: CommunityProps) => { - const isTablet = useMediaQuery({ - query: "(min-width: 768px)", - }); - - return ( -
-
- -
- {isTablet ? ( - - ) : ( - - )} -
-
- Gradient -
-
-
-
-
- ); -}; - -export default Community; diff --git a/src/templates/PricingPage/Community/index.tsx b/src/templates/PricingPage/Community/index.tsx deleted file mode 100644 index 35e2408d..00000000 --- a/src/templates/PricingPage/Community/index.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import dynamic from "next/dynamic"; -import { useMediaQuery } from "react-responsive"; -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -const Grid = dynamic(() => import("./Grid"), { ssr: false }); -const Carousel = dynamic(() => import("./Carousel"), { ssr: false }); - -import { community } from "@/mocks/community"; - -type CommunityProps = {}; - -const Community = ({}: CommunityProps) => { - const isTablet = useMediaQuery({ - query: "(min-width: 768px)", - }); - - return ( -
-
- -
- {isTablet ? ( - - ) : ( - - )} -
-
- Gradient -
-
-
-
-
- ); -}; - -export default Community; diff --git a/src/templates/PricingPage/Comparison/index.js b/src/templates/PricingPage/Comparison/index.js deleted file mode 100644 index 3046ed3e..00000000 --- a/src/templates/PricingPage/Comparison/index.js +++ /dev/null @@ -1,101 +0,0 @@ -import Tippy from "@tippyjs/react"; -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -import Section from "@/components/Section"; - -import { comparison } from "@/mocks/comparison"; - -type ComparisonProps = {}; - -const Comparison = ({}: ComparisonProps) => { - const check = (value: any, enterprise?: boolean) => - typeof value === "boolean" ? ( - value === true ? ( - Check - ) : null - ) : ( - value - ); - - return ( -
-
- -
- - - - - - - - - {comparison.map((item) => ( - - - - - - - ))} - -
Features - Basic - - Premium - - Enterprise -
-
- {item.title} - -
- Help -
-
-
-
- {check( - item.pricing[0], - item.enterprise - )} - - {check( - item.pricing[1], - item.enterprise - )} - - {check( - item.pricing[2], - item.enterprise - )} -
-
-
-
- ); -}; - -export default Comparison; diff --git a/src/templates/PricingPage/Comparison/index.tsx b/src/templates/PricingPage/Comparison/index.tsx deleted file mode 100644 index 3046ed3e..00000000 --- a/src/templates/PricingPage/Comparison/index.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import Tippy from "@tippyjs/react"; -import Heading from "@/components/Heading"; -import Image from "@/components/Image"; -import Section from "@/components/Section"; - -import { comparison } from "@/mocks/comparison"; - -type ComparisonProps = {}; - -const Comparison = ({}: ComparisonProps) => { - const check = (value: any, enterprise?: boolean) => - typeof value === "boolean" ? ( - value === true ? ( - Check - ) : null - ) : ( - value - ); - - return ( -
-
- -
- - - - - - - - - {comparison.map((item) => ( - - - - - - - ))} - -
Features - Basic - - Premium - - Enterprise -
-
- {item.title} - -
- Help -
-
-
-
- {check( - item.pricing[0], - item.enterprise - )} - - {check( - item.pricing[1], - item.enterprise - )} - - {check( - item.pricing[2], - item.enterprise - )} -
-
-
-
- ); -}; - -export default Comparison; diff --git a/src/templates/PricingPage/Faq/index.js b/src/templates/PricingPage/Faq/index.js deleted file mode 100644 index 6b6d45fe..00000000 --- a/src/templates/PricingPage/Faq/index.js +++ /dev/null @@ -1,78 +0,0 @@ -import { useState } from "react"; -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; - -import { faq } from "@/mocks/faq"; - -type FaqProps = {}; - -const Faq = ({}: FaqProps) => { - const [activeId, setActiveId] = useState(faq[0].id); - - return ( -
-
- - Haven’t found what you’re looking for?{" "} - - Contact us - - - } - /> -
- {faq.map((item) => ( -
-
- setActiveId( - activeId === item.id ? null : item.id - ) - } - > -
- {item.title} -
-
-
-
-
-
-
-
-
{item.text}
-
-
-
- ))} -
-
-
- ); -}; - -export default Faq; diff --git a/src/templates/PricingPage/Faq/index.tsx b/src/templates/PricingPage/Faq/index.tsx deleted file mode 100644 index 6b6d45fe..00000000 --- a/src/templates/PricingPage/Faq/index.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import { useState } from "react"; -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; - -import { faq } from "@/mocks/faq"; - -type FaqProps = {}; - -const Faq = ({}: FaqProps) => { - const [activeId, setActiveId] = useState(faq[0].id); - - return ( -
-
- - Haven’t found what you’re looking for?{" "} - - Contact us - - - } - /> -
- {faq.map((item) => ( -
-
- setActiveId( - activeId === item.id ? null : item.id - ) - } - > -
- {item.title} -
-
-
-
-
-
-
-
-
{item.text}
-
-
-
- ))} -
-
-
- ); -}; - -export default Faq; diff --git a/src/templates/PricingPage/Pricing/index.js b/src/templates/PricingPage/Pricing/index.js deleted file mode 100644 index e6df7276..00000000 --- a/src/templates/PricingPage/Pricing/index.js +++ /dev/null @@ -1,50 +0,0 @@ -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import PricingList from "@/components/PricingList"; -import { useState } from "react"; -import Logos from "@/components/Logos"; - -type PricingProps = {}; - -const Pricing = ({}: PricingProps) => { - const [monthly, setMonthly] = useState(false); - - return ( -
-
- -
-
- - -
-
- - -
-
- ); -}; - -export default Pricing; diff --git a/src/templates/PricingPage/Pricing/index.tsx b/src/templates/PricingPage/Pricing/index.tsx deleted file mode 100644 index e6df7276..00000000 --- a/src/templates/PricingPage/Pricing/index.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import PricingList from "@/components/PricingList"; -import { useState } from "react"; -import Logos from "@/components/Logos"; - -type PricingProps = {}; - -const Pricing = ({}: PricingProps) => { - const [monthly, setMonthly] = useState(false); - - return ( -
-
- -
-
- - -
-
- - -
-
- ); -}; - -export default Pricing; diff --git a/src/templates/PricingPage/index.js b/src/templates/PricingPage/index.js deleted file mode 100644 index 10fe6141..00000000 --- a/src/templates/PricingPage/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import Pricing from "./Pricing"; -import Comparison from "./Comparison"; -import Community from "./Community"; -import Join from "@/components/Join"; -import Faq from "./Faq"; - -const PricingPage = () => { - return ( - - - - - - - - ); -}; - -export default PricingPage; diff --git a/src/templates/PricingPage/index.tsx b/src/templates/PricingPage/index.tsx deleted file mode 100644 index 10fe6141..00000000 --- a/src/templates/PricingPage/index.tsx +++ /dev/null @@ -1,22 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import Pricing from "./Pricing"; -import Comparison from "./Comparison"; -import Community from "./Community"; -import Join from "@/components/Join"; -import Faq from "./Faq"; - -const PricingPage = () => { - return ( - - - - - - - - ); -}; - -export default PricingPage; diff --git a/src/templates/RoadmapPage/Hero/index.js b/src/templates/RoadmapPage/Hero/index.js deleted file mode 100644 index 6a0e00c5..00000000 --- a/src/templates/RoadmapPage/Hero/index.js +++ /dev/null @@ -1,58 +0,0 @@ -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import Button from "@/components/Button"; -import Generating from "@/components/Generating"; -import Image from "@/components/Image"; - -type HeroProps = {}; - -const Hero = ({}: HeroProps) => ( -
-
- - - -
-
-
-
-
- Hero -
-
- Coins -
- -
-
-
-
-
-
-
-); - -export default Hero; diff --git a/src/templates/RoadmapPage/Hero/index.tsx b/src/templates/RoadmapPage/Hero/index.tsx deleted file mode 100644 index 6a0e00c5..00000000 --- a/src/templates/RoadmapPage/Hero/index.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import Section from "@/components/Section"; -import Heading from "@/components/Heading"; -import Button from "@/components/Button"; -import Generating from "@/components/Generating"; -import Image from "@/components/Image"; - -type HeroProps = {}; - -const Hero = ({}: HeroProps) => ( -
-
- - - -
-
-
-
-
- Hero -
-
- Coins -
- -
-
-
-
-
-
-
-); - -export default Hero; diff --git a/src/templates/RoadmapPage/Roadmap/index.js b/src/templates/RoadmapPage/Roadmap/index.js deleted file mode 100644 index 8fd46d67..00000000 --- a/src/templates/RoadmapPage/Roadmap/index.js +++ /dev/null @@ -1,60 +0,0 @@ -import Image from "@/components/Image"; -import Section from "@/components/Section"; -import Tagline from "@/components/Tagline"; -import { roadmapFull } from "@/mocks/roadmap"; - -type RoadmapProps = {}; - -const Roadmap = ({}: RoadmapProps) => ( -
-
-
    - {roadmapFull.map((item) => ( -
  • -
    - {item.date} -
    -
    -
    -
    - Done -
    -
    -
    -
    {item.title}
    - {item.status === "progress" && ( -
    - In progress -
    WIP
    -
    - )} -
    -

    {item.text}

    -
    -
    -
  • - ))} -
-
-
-); - -export default Roadmap; diff --git a/src/templates/RoadmapPage/Roadmap/index.tsx b/src/templates/RoadmapPage/Roadmap/index.tsx deleted file mode 100644 index 8fd46d67..00000000 --- a/src/templates/RoadmapPage/Roadmap/index.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import Image from "@/components/Image"; -import Section from "@/components/Section"; -import Tagline from "@/components/Tagline"; -import { roadmapFull } from "@/mocks/roadmap"; - -type RoadmapProps = {}; - -const Roadmap = ({}: RoadmapProps) => ( -
-
-
    - {roadmapFull.map((item) => ( -
  • -
    - {item.date} -
    -
    -
    -
    - Done -
    -
    -
    -
    {item.title}
    - {item.status === "progress" && ( -
    - In progress -
    WIP
    -
    - )} -
    -

    {item.text}

    -
    -
    -
  • - ))} -
-
-
-); - -export default Roadmap; diff --git a/src/templates/RoadmapPage/index.js b/src/templates/RoadmapPage/index.js deleted file mode 100644 index a4b114cd..00000000 --- a/src/templates/RoadmapPage/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import Join from "@/components/Join"; -import Hero from "./Hero"; -import Roadmap from "./Roadmap"; - -const RoadmapPage = () => { - return ( - - - - - - ); -}; - -export default RoadmapPage; diff --git a/src/templates/RoadmapPage/index.tsx b/src/templates/RoadmapPage/index.tsx deleted file mode 100644 index a4b114cd..00000000 --- a/src/templates/RoadmapPage/index.tsx +++ /dev/null @@ -1,18 +0,0 @@ -"use client"; - -import Layout from "@/components/Layout"; -import Join from "@/components/Join"; -import Hero from "./Hero"; -import Roadmap from "./Roadmap"; - -const RoadmapPage = () => { - return ( - - - - - - ); -}; - -export default RoadmapPage;