diff --git a/apps/dashboard/src/pages/landing.tsx b/apps/dashboard/src/pages/landing.tsx index 4040c0a8..67773fc3 100644 --- a/apps/dashboard/src/pages/landing.tsx +++ b/apps/dashboard/src/pages/landing.tsx @@ -1,177 +1,87 @@ import { Button, GithubMark, LinkButton } from '@codraoss/ui'; -import { Sun, Moon, ExternalLink } from 'lucide-react'; +import { Sun, Moon } from 'lucide-react'; import { useTheme } from '@codraoss/ui/theme'; -import codraDark from '@/assets/codra-fullicon-dark.svg'; -import codraLight from '@/assets/codra-fullicon-light.svg'; -const FEATURES = [ - { - title: 'Understands your codebase', - desc: 'Reviews diffs with full context from the surrounding code, not just the changed lines.', - }, - { - title: 'Flags real issues', - desc: 'Security vulnerabilities, logic errors, and pattern violations - surfaced before merge.', - }, - { - title: 'Configurable per repo', - desc: 'Set review depth, model chain, and strictness from the dashboard. No config files.', - }, -]; +const TERMS_URL = 'https://codra.run/terms'; +const PRIVACY_URL = 'https://codra.run/privacy'; -/** Faint dotted-grid texture, faded out toward the bottom - the "control panel" backdrop. */ const dotGrid = { backgroundImage: - 'radial-gradient(circle, color-mix(in oklch, var(--ui-line) 75%, transparent) 1px, transparent 1px)', + 'radial-gradient(circle, var(--ui-line) 1px, transparent 1.5px)', backgroundSize: '22px 22px', - maskImage: 'radial-gradient(ellipse 90% 80% at 30% 0%, black, transparent 80%)', - WebkitMaskImage: 'radial-gradient(ellipse 90% 80% at 30% 0%, black, transparent 80%)', + maskImage: + 'radial-gradient(ellipse 85% 75% at 50% 45%, black 35%, rgba(0, 0, 0, 0.35) 100%)', + WebkitMaskImage: + 'radial-gradient(ellipse 85% 75% at 50% 45%, black 35%, rgba(0, 0, 0, 0.35) 100%)', }; function DotGrid() { return
; } +const legalLink = + 'rounded-sm text-ui-default underline-offset-2 transition-colors hover:text-ui-strong hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ui-brand'; + export function LandingPage() { const { theme, toggleTheme } = useTheme(); return ( -
- -
-
- Codra -
- - - - - - Sign in - -
-
-
- -
- -
- +
+ + + + +
+
+
+
+ Codra +
-
-

- AI code review
- on every PR. +

+ Sign in to Codra

- -

- Codra reviews pull requests automatically, checking for bugs, - security issues, and code patterns specific to your repository. +

+ Use your GitHub account to open the dashboard.

- -
- } - className="!rounded-sm" - > - Get started with GitHub - - - Read the docs - -
- + . +

- -
- - -
- - What it does - - -
- -
- {FEATURES.map((item, i) => ( -
- - -
- - {String(i + 1).padStart(2, '0')} - -

{item.title}

-
- -

- {item.desc} -

-
- ))} -
-
-
); -} +} \ No newline at end of file