Skip to content

Commit

Permalink
Merge pull request #480 from VitNode/policies
Browse files Browse the repository at this point in the history
feat: Add Legal & Policies
  • Loading branch information
aXenDeveloper authored Sep 5, 2024
2 parents 45c1778 + bf147ff commit d2a4443
Show file tree
Hide file tree
Showing 392 changed files with 4,296 additions and 1,936 deletions.
19 changes: 19 additions & 0 deletions apps/backend/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ type Mutation {
admin__core_styles__nav__create(description: [TextLanguageInput!]!, external: Boolean!, href: String!, icon: String, name: [TextLanguageInput!]!): ShowCoreNav!
admin__core_styles__nav__delete(id: Int!): String!
admin__core_styles__nav__edit(description: [TextLanguageInput!]!, external: Boolean!, href: String!, icon: String, id: Int!, name: [TextLanguageInput!]!): ShowCoreNav!
admin__core_terms_settings__create(code: String!, content: [TextLanguageInput!]!, href: String, title: [TextLanguageInput!]!): ShowCoreTerms!
admin__core_terms_settings__delete(id: Int!): String!
admin__core_terms_settings__edit(code: String!, content: [TextLanguageInput!]!, href: String, id: Float!, title: [TextLanguageInput!]!): ShowCoreTerms!
admin__core_theme_editor__edit(colors: ColorsEditAdminThemeEditor, logos: LogosEditAdminThemeEditor!): String!
admin__install__create_database: String!
admin_sessions__sign_out: String!
Expand Down Expand Up @@ -311,6 +314,7 @@ type Query {
core_sessions__authorization: AuthorizationCoreSessionsObj!
core_sessions__devices__show: [ShowCoreSessionDevicesObj!]!
core_settings__show: ShowSettingsObj!
core_terms__show(code: String, cursor: Int, first: Int, last: Int): ShowCoreTermsObj!
core_theme_editor__show: ShowCoreThemeEditorObj!
}

Expand Down Expand Up @@ -687,6 +691,21 @@ type ShowCoreSessionDevicesObj {
uagent_version: String!
}

type ShowCoreTerms {
code: String!
content: [TextLanguage!]!
created: DateTime!
href: String
id: Float!
title: [TextLanguage!]!
updated: DateTime!
}

type ShowCoreTermsObj {
edges: [ShowCoreTerms!]!
pageInfo: PageInfo!
}

type ShowCoreThemeEditorObj {
colors: ColorsShowCoreThemeEditor
logos: LogoShowCoreThemeEditor!
Expand Down
135 changes: 45 additions & 90 deletions apps/docs/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,107 +1,62 @@
import { BackgroundNet } from '@/components/background-net';
import { Button, buttonVariants } from '@/components/ui/button';
import { cn } from '@/utils/classnames';
import { Button } from '@/components/ui/button';
import { FeaturesHome } from '@/views/home/features';
import Link from 'fumadocs-core/link';
import { Check } from 'lucide-react';
import { AnimatedBeamHome } from '../../components/animated-beam-home';
import { PreviewHome } from '@/views/home/preview/preview';
import { MoreFeaturesHome } from '@/views/home/more-features/more-features';
import { MarketplaceHome } from '@/views/home/marketplace';

export default function Page() {
return (
<>
<div className="container my-10 flex max-w-6xl flex-wrap items-center justify-between gap-8 px-8 sm:px-16 md:flex-nowrap">
<div className="max-w-md space-y-4">
<div className="bg-muted-foreground/10 mb-6 flex w-fit items-center gap-2 rounded-full px-4 py-2 font-medium">
<Check className="size-5" />
<span>Free & Open-source</span>
<div className="relative overflow-hidden">
<BackgroundNet className="pointer-events-none absolute opacity-50" />
<div className="bg-primary pointer-events-none absolute size-60 rounded-full blur-[12rem]" />

<div className="container relative flex max-w-6xl animate-[fade-in-down_1.25s] flex-wrap items-center justify-between gap-8 px-8 py-10 sm:px-16 sm:py-20 md:flex-nowrap">
<div className="max-w-md space-y-4">
<div className="bg-muted-foreground/10 mb-6 flex w-fit items-center gap-2 rounded-full px-4 py-2 font-medium">
<Check className="size-5" />
<span>Free & Open-source</span>
</div>

<h1 className="text-balance text-3xl font-bold tracking-tight md:text-5xl">
Making <span className="text-primary">Community Apps</span> with{' '}
<span className="text-primary">Power</span>
</h1>

<p className="text-muted-foreground text-pretty">
Community Management System, SEO-friendly, customize with ease and
enjoy security, speed, and efficiency.
</p>

<div className="flex flex-wrap items-center gap-2 pt-4 md:gap-4">
<Button className="rounded-full px-6" asChild>
<Link href="/docs/dev">Get Started</Link>
</Button>

<Button className="rounded-full px-6" variant="ghost" asChild>
<Link
href="https://github.com/VitNode/vitnode"
target="_blank"
rel="noopener noreferrer"
>
Star on GitHub
</Link>
</Button>
</div>
</div>

<h1 className="text-balance text-3xl font-bold tracking-tight md:text-5xl">
Making <span className="text-primary">Community Apps</span> with{' '}
<span className="text-primary">Power</span>
</h1>

<p className="text-muted-foreground text-pretty">
SEO-friendly sites effortlessly, customize with ease, and enjoy
security, speed, and efficiency.
</p>

<div className="flex flex-wrap items-center gap-2 md:gap-4">
<Button className="rounded-full px-6" asChild>
<Link href="/docs/dev">Get Started</Link>
</Button>

<Button className="rounded-full px-6" variant="ghost" asChild>
<Link
href="https://github.com/VitNode/vitnode"
target="_blank"
rel="noopener noreferrer"
>
Star on GitHub
</Link>
</Button>
</div>
</div>

<div className="bg-card h-64 w-[20rem]">test</div>
</div>

<br />
<br />
<br />
<br />
<br />
<div className="relative -mt-16 flex w-full items-center justify-center overflow-hidden py-20 md:min-h-[50rem]">
<BackgroundNet className="absolute" />
<div className="bg-primary absolute size-60 rounded-full blur-[12rem]" />

<div className="container z-10 my-10 flex max-w-xl flex-col items-center text-center lg:my-20 lg:max-w-4xl">
<div className="bg-muted-foreground/10 mb-6 flex items-center gap-2 rounded-md px-4 py-2 font-medium">
<Check className="size-5" />
<span>Free & Open-source</span>
</div>

<h1 className="text-5xl font-bold tracking-tight sm:text-6xl xl:text-7xl">
Making <span className="text-primary">Community Apps</span> with{' '}
<span className="text-primary">Power</span>
</h1>

<p className="text-muted-foreground mt-6 text-lg font-normal leading-7 sm:text-xl lg:max-w-2xl xl:text-2xl xl:leading-9">
SEO-friendly sites effortlessly, customize with ease, and enjoy
security, speed, and efficiency.
</p>

<div className="mt-10 flex flex-1 flex-wrap items-center justify-center gap-2 sm:gap-6">
<Link
href="/docs/dev"
className={cn(
buttonVariants({
className: 'font-medium sm:h-12 sm:px-8 sm:text-lg',
size: 'lg',
}),
)}
>
Get Started
</Link>
<Link
href="https://github.com/VitNode/vitnode"
className={cn(
buttonVariants({
className:
'bg-transparent font-medium sm:h-12 sm:px-8 sm:text-lg',
size: 'lg',
variant: 'ghost',
}),
)}
target="_blank"
rel="noopener noreferrer"
>
Star on GitHub
</Link>
</div>
<AnimatedBeamHome />
</div>
</div>

<PreviewHome />
<FeaturesHome />
<MoreFeaturesHome />
<MarketplaceHome />
</>
);
}
8 changes: 4 additions & 4 deletions apps/docs/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@
}

.dark {
--background: 220 11% 7%;
--background: 220 11% 6%;
--foreground: 0 0% 98%;
--card: 225 11% 10%;
--card: 225 11% 8%;
--card-foreground: 0 0% 98%;
/* --popover: var(--card); */
/* --popover-foreground: var(--card-foreground); */
--primary: 220 83% 60%;
--primary-foreground: 220 40% 98%;
--secondary: 216 10% 18%;
--secondary-foreground: 0 0% 98%;
--muted: 228 11% 15%;
--muted: 228 11% 12%;
--muted-foreground: 216 0% 68%;
--accent: 216 3% 18%;
--accent: 228 11% 14%;
--accent-foreground: 0 0% 98%;
--destructive: 359 75% 60%;
--destructive-foreground: 210 40% 98%;
Expand Down
1 change: 1 addition & 0 deletions apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default function Layout({ children }: { children: ReactNode }) {
<html lang="en" className={GeistSans.className} suppressHydrationWarning>
<Body>
<RootProvider>{children}</RootProvider>
<footer className="container my-10">Footer</footer>
</Body>
</html>
);
Expand Down
151 changes: 151 additions & 0 deletions apps/docs/components/animated-beam-home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
'use client';

import React, { forwardRef, useRef } from 'react';
import { AnimatedBeam } from './animated-beam';
import { cn } from '@/utils/classnames';
import Image from 'next/image';
import logo from '@/public/logo.svg';
import {
AtSign,
Database,
Languages,
Paintbrush,
Plug,
Search,
ShieldCheck,
Sparkle,
Users,
} from 'lucide-react';

const Circle = forwardRef<
HTMLDivElement,
{ className?: string; children?: React.ReactNode }
>(({ className, children }, ref) => {
return (
<div
ref={ref}
className={cn(
'bg-card z-10 flex size-12 items-center justify-center rounded-md border p-3',
className,
)}
>
{children}
</div>
);
});

Circle.displayName = 'Circle';

export function AnimatedBeamHome() {
const containerRef = useRef<HTMLDivElement>(null);
const div1Ref = useRef<HTMLDivElement>(null);
const div2Ref = useRef<HTMLDivElement>(null);
const div3Ref = useRef<HTMLDivElement>(null);
const div4Ref = useRef<HTMLDivElement>(null);
const div5Ref = useRef<HTMLDivElement>(null);
const div6Ref = useRef<HTMLDivElement>(null);
const div7Ref = useRef<HTMLDivElement>(null);
const div8Ref = useRef<HTMLDivElement>(null);
const div9Ref = useRef<HTMLDivElement>(null);

return (
<div
className="relative flex w-full items-center justify-center overflow-hidden sm:max-w-md"
ref={containerRef}
>
<div className="flex size-full max-w-lg flex-col items-stretch justify-between gap-10">
<div className="flex flex-row items-center justify-between">
<Circle ref={div1Ref}>
<Users />
</Circle>
<Circle ref={div8Ref}>
<AtSign />
</Circle>
<Circle ref={div5Ref}>
<Plug />
</Circle>
</div>
<div className="flex flex-row items-center justify-between">
<Circle ref={div2Ref}>
<Languages />
</Circle>
<Circle ref={div4Ref} className="size-16">
<Image
alt="VitNode"
src={logo}
className="w-10"
aria-label="VitNode"
/>
</Circle>
<Circle ref={div6Ref}>
<Paintbrush />
</Circle>
</div>
<div className="flex flex-row items-center justify-between">
<Circle ref={div3Ref}>
<ShieldCheck />
</Circle>
<Circle ref={div9Ref}>
<Sparkle />
</Circle>
<Circle ref={div7Ref}>
<Database />
</Circle>
</div>
</div>

<AnimatedBeam
containerRef={containerRef}
fromRef={div1Ref}
toRef={div4Ref}
curvature={-75}
endYOffset={-10}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div2Ref}
toRef={div4Ref}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div3Ref}
toRef={div4Ref}
curvature={75}
endYOffset={10}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div5Ref}
toRef={div4Ref}
curvature={-75}
endYOffset={-10}
reverse
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div6Ref}
toRef={div4Ref}
reverse
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div7Ref}
toRef={div4Ref}
curvature={75}
endYOffset={10}
reverse
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div8Ref}
toRef={div4Ref}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div9Ref}
curvature={75}
toRef={div4Ref}
/>
</div>
);
}
Loading

0 comments on commit d2a4443

Please sign in to comment.