diff --git a/apps/dashboard/src/app/(home)/layout.tsx b/apps/dashboard/src/app/(home)/layout.tsx index c909d7a..b7f55a7 100644 --- a/apps/dashboard/src/app/(home)/layout.tsx +++ b/apps/dashboard/src/app/(home)/layout.tsx @@ -1,5 +1,5 @@ import { Footer } from '@/components/footer'; -import { NavigationBar } from '@/components/navigation-bar/navigation-bar'; +import { HomeNavigation } from '@/components/home-navigation'; import './home.css'; export default function Layout({ @@ -11,7 +11,7 @@ export default function Layout({ <>
- +
{children} diff --git a/apps/dashboard/src/app/app/integrations/page.tsx b/apps/dashboard/src/app/app/integrations/page.tsx index 8f2066a..91e4c1f 100644 --- a/apps/dashboard/src/app/app/integrations/page.tsx +++ b/apps/dashboard/src/app/app/integrations/page.tsx @@ -1,6 +1,14 @@ import { MainContent } from '@/components'; import { GithubProvider } from './providers/github/_components'; -import { FigmaProvider } from './providers/figma/_components'; +import { FigmaBanner } from './providers/figma/_components'; +import { + Icons, + Tabs, + TabsContent, + TabsList, + TabsTrigger, + Text, +} from '@ds-project/components'; export default function Page() { return ( @@ -8,10 +16,36 @@ export default function Page() { description="Authorize and manage integrations" title="Integrations" > -
- - -
+
+ + + Inputs + Outputs + Monitoring + + + + + + + + +
+ +
+ +

Discord

+
+ +

+ Send notifications about changes, releases or issues with your + configuration. +

+
+
+
+
+
); } diff --git a/apps/dashboard/src/app/app/integrations/providers/figma/_components/banner.tsx b/apps/dashboard/src/app/app/integrations/providers/figma/_components/banner.tsx new file mode 100644 index 0000000..db3108a --- /dev/null +++ b/apps/dashboard/src/app/app/integrations/providers/figma/_components/banner.tsx @@ -0,0 +1,29 @@ +import { Button, Icons, Text } from '@ds-project/components'; +import Link from 'next/link'; +export function FigmaBanner() { + return ( +
+ +
+ +

Figma

+
+ +

+ Install DS Pro widget in your Figma file to synchronize Figma + Variables +

+
+
+ + +
+ ); +} diff --git a/apps/dashboard/src/app/app/integrations/providers/figma/_components/index.ts b/apps/dashboard/src/app/app/integrations/providers/figma/_components/index.ts index 03be03e..f9017e0 100644 --- a/apps/dashboard/src/app/app/integrations/providers/figma/_components/index.ts +++ b/apps/dashboard/src/app/app/integrations/providers/figma/_components/index.ts @@ -1 +1,2 @@ export * from './provider'; +export * from './banner'; diff --git a/apps/dashboard/src/app/app/integrations/providers/github/_components/provider.tsx b/apps/dashboard/src/app/app/integrations/providers/github/_components/provider.tsx index be366d4..acdfaa9 100644 --- a/apps/dashboard/src/app/app/integrations/providers/github/_components/provider.tsx +++ b/apps/dashboard/src/app/app/integrations/providers/github/_components/provider.tsx @@ -1,7 +1,9 @@ import { Button, + FormItem, Icons, Input, + Label, Select, SelectContent, SelectItem, @@ -49,22 +51,25 @@ export async function GithubProvider() {
{githubIntegration ? ( -
- + + + + + ) : null} - - - {/* */} ); } diff --git a/apps/dashboard/src/app/app/layout.tsx b/apps/dashboard/src/app/app/layout.tsx index c42582f..7ad1cd1 100644 --- a/apps/dashboard/src/app/app/layout.tsx +++ b/apps/dashboard/src/app/app/layout.tsx @@ -1,11 +1,7 @@ import type { Metadata } from 'next'; -import { Inter } from 'next/font/google'; -import '../globals.css'; import { AppNavigation } from '@/components'; import { api } from '@ds-project/api/rsc'; -const inter = Inter({ subsets: ['latin'] }); - export const metadata: Metadata = { title: 'DS Project', description: 'Manage Design System', diff --git a/apps/dashboard/src/app/app/page.tsx b/apps/dashboard/src/app/app/page.tsx index 7e0d2eb..ee90fea 100644 --- a/apps/dashboard/src/app/app/page.tsx +++ b/apps/dashboard/src/app/app/page.tsx @@ -1,7 +1,5 @@ +import { redirect } from 'next/navigation'; + export default function Home() { - return ( -
-

Home page

-
- ); + return redirect('/app/integrations'); } diff --git a/apps/dashboard/src/components/app-navigation/navigation.tsx b/apps/dashboard/src/components/app-navigation/app-navigation.tsx similarity index 96% rename from apps/dashboard/src/components/app-navigation/navigation.tsx rename to apps/dashboard/src/components/app-navigation/app-navigation.tsx index 24cf77f..ed6b6b6 100644 --- a/apps/dashboard/src/components/app-navigation/navigation.tsx +++ b/apps/dashboard/src/components/app-navigation/app-navigation.tsx @@ -16,6 +16,7 @@ import { cn } from '@/lib/css'; import { HomeButton } from '../home-button'; import type { SelectProjects } from '@ds-project/database/schema'; import { AccountMenu } from '../account-menu/acocunt-menu'; +import { config } from '@/config'; interface AppNavigationProps { className?: string; @@ -59,16 +60,16 @@ export function AppNavigation({ - + - Tokens + Integrations - + - Integrations + Tokens @@ -88,7 +89,7 @@ export function AppNavigation({ diff --git a/apps/dashboard/src/components/app-navigation/index.ts b/apps/dashboard/src/components/app-navigation/index.ts index 701e505..202f5fd 100644 --- a/apps/dashboard/src/components/app-navigation/index.ts +++ b/apps/dashboard/src/components/app-navigation/index.ts @@ -1 +1 @@ -export * from './navigation'; +export * from './app-navigation'; diff --git a/apps/dashboard/src/components/banners/community-banner/community-banner.tsx b/apps/dashboard/src/components/banners/community-banner/community-banner.tsx index d214570..5447340 100644 --- a/apps/dashboard/src/components/banners/community-banner/community-banner.tsx +++ b/apps/dashboard/src/components/banners/community-banner/community-banner.tsx @@ -3,6 +3,7 @@ import Link from 'next/link'; import Image from 'next/image'; import discordIcon from './discord-icon.png'; import { Button } from '@/components/button'; +import { config } from '@/config'; export function CommunityBanner() { return ( @@ -17,7 +18,7 @@ export function CommunityBanner() {
diff --git a/apps/dashboard/src/components/footer/footer.tsx b/apps/dashboard/src/components/footer/footer.tsx index 7c75026..70694b0 100644 --- a/apps/dashboard/src/components/footer/footer.tsx +++ b/apps/dashboard/src/components/footer/footer.tsx @@ -2,6 +2,7 @@ import { Icons, Text } from '@ds-project/components'; import Link from 'next/link'; import { Button } from '../button'; import { CommunityBanner } from '../banners/community-banner'; +import { config } from '@/config'; export function Footer() { return ( @@ -11,7 +12,7 @@ export function Footer() {
diff --git a/apps/dashboard/src/components/navigation-bar/assets/ds-logo.svg b/apps/dashboard/src/components/home-navigation/assets/ds-logo.svg similarity index 100% rename from apps/dashboard/src/components/navigation-bar/assets/ds-logo.svg rename to apps/dashboard/src/components/home-navigation/assets/ds-logo.svg diff --git a/apps/dashboard/src/components/navigation-bar/navigation-bar.tsx b/apps/dashboard/src/components/home-navigation/home-navigation.tsx similarity index 96% rename from apps/dashboard/src/components/navigation-bar/navigation-bar.tsx rename to apps/dashboard/src/components/home-navigation/home-navigation.tsx index 26e289b..8ee2216 100644 --- a/apps/dashboard/src/components/navigation-bar/navigation-bar.tsx +++ b/apps/dashboard/src/components/home-navigation/home-navigation.tsx @@ -13,7 +13,7 @@ const navigationItems = [ href: '#community', }, ]; -export function NavigationBar() { +export function HomeNavigation() { return (