This commit is contained in:
ct
2025-07-15 04:35:25 +08:00
parent 369d5b22b4
commit f718bb4aaa
8 changed files with 23 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { Head } from '@inertiajs/react';
import AuthUser from '@/modules/auth/auth-user'; import AuthUser from '@/modules/auth/auth-user';
import Footer from '@/pages/home/partials/Footer.jsx'; import Footer from '@/pages/front/partials/Footer.jsx';
import { Head } from '@inertiajs/react';
import React from 'react';
interface PrivacyProps { interface PrivacyProps {
content: string; content: string;
@@ -12,22 +12,19 @@ const Privacy: React.FC<PrivacyProps> = ({ content, title }) => {
return ( return (
<div className="min-h-[100vh] bg-neutral-50 dark:bg-black"> <div className="min-h-[100vh] bg-neutral-50 dark:bg-black">
<Head title={title} /> <Head title={title} />
<div className="container mx-auto px-4 py-8"> <div className="container mx-auto px-4 py-8">
<div className="max-w-4xl mx-auto"> <div className="mx-auto max-w-4xl">
<div className="bg-white dark:bg-neutral-900 rounded-lg shadow-lg p-8"> <div className="rounded-lg bg-white p-8 shadow-lg dark:bg-neutral-900">
<div <div className="max-w-none" dangerouslySetInnerHTML={{ __html: content }} />
className="max-w-none"
dangerouslySetInnerHTML={{ __html: content }}
/>
</div> </div>
</div> </div>
</div> </div>
<Footer /> <Footer />
<AuthUser /> <AuthUser />
</div> </div>
); );
}; };
export default Privacy; export default Privacy;

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { Head } from '@inertiajs/react';
import AuthUser from '@/modules/auth/auth-user'; import AuthUser from '@/modules/auth/auth-user';
import Footer from '@/pages/home/partials/Footer.jsx'; import Footer from '@/pages/front/partials/Footer.jsx';
import { Head } from '@inertiajs/react';
import React from 'react';
interface TermsProps { interface TermsProps {
content: string; content: string;
@@ -12,22 +12,19 @@ const Terms: React.FC<TermsProps> = ({ content, title }) => {
return ( return (
<div className="min-h-[100vh] bg-neutral-50 dark:bg-black"> <div className="min-h-[100vh] bg-neutral-50 dark:bg-black">
<Head title={title} /> <Head title={title} />
<div className="container mx-auto px-4 py-8"> <div className="container mx-auto px-4 py-8">
<div className="max-w-4xl mx-auto"> <div className="mx-auto max-w-4xl">
<div className="bg-white dark:bg-neutral-900 rounded-lg shadow-lg p-8"> <div className="rounded-lg bg-white p-8 shadow-lg dark:bg-neutral-900">
<div <div className="max-w-none" dangerouslySetInnerHTML={{ __html: content }} />
className="max-w-none"
dangerouslySetInnerHTML={{ __html: content }}
/>
</div> </div>
</div> </div>
</div> </div>
<Footer /> <Footer />
<AuthUser /> <AuthUser />
</div> </div>
); );
}; };
export default Terms; export default Terms;

View File

@@ -1,9 +1,9 @@
import AuthUser from '@/modules/auth/auth-user'; import AuthUser from '@/modules/auth/auth-user';
import FAQDiscord from '@/pages/front/partials/FAQDiscord.jsx';
import Features from '@/pages/front/partials/Features.jsx';
import Footer from '@/pages/front/partials/Footer.jsx';
import Hero from '@/pages/front/partials/Hero.jsx';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import FAQDiscord from './_home/partials/FAQDiscord.jsx';
import Features from './_home/partials/Features.jsx';
import Footer from './_home/partials/Footer.jsx';
import Hero from './_home/partials/Hero.jsx';
const Home = () => { const Home = () => {
const [isClient, setIsClient] = useState(false); const [isClient, setIsClient] = useState(false);

File diff suppressed because one or more lines are too long