-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Design-System-Project/feat/landing-page
add landing page placeholder
- Loading branch information
Showing
97 changed files
with
922 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ dist/ | |
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
certificates | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Footer } from '@/components/footer'; | ||
import { NavigationBar } from '@/components/navigation-bar/navigation-bar'; | ||
|
||
export default function Layout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<> | ||
<header className="sticky top-0 w-full flex justify-center"> | ||
<NavigationBar /> | ||
</header> | ||
<main className="flex min-h-screen w-full flex-col items-center py-2"> | ||
{children} | ||
</main> | ||
<Footer /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { GetStartedBanner } from '@/components/banners/get-started-banner/get-started-banner'; | ||
import { VisionBanner } from '@/components/banners/vision-banner/vision-banner'; | ||
import { Hero } from '@/components/hero'; | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<div className="mx-4"> | ||
<Hero /> | ||
</div> | ||
<div className="max-w-screen-lg mx-4"> | ||
<VisionBanner /> | ||
<GetStartedBanner /> | ||
</div> | ||
</> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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', | ||
}; | ||
|
||
export default async function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
const projects = await api.projects.account(); | ||
const user = await api.users.current(); | ||
|
||
return ( | ||
<> | ||
<header className="sticky top-0 w-full"> | ||
<AppNavigation | ||
className="px-2 pt-2" | ||
projects={projects} | ||
email={user?.email ?? 'Account'} | ||
/> | ||
</header> | ||
<main className="flex min-h-screen w-full flex-col items-center py-2"> | ||
{children} | ||
</main> | ||
</> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { Metadata } from 'next'; | ||
import { Inter } from 'next/font/google'; | ||
import './globals.css'; | ||
import { cn } from '@/lib/css'; | ||
|
||
const inter = Inter({ subsets: ['latin'] }); | ||
|
||
export const metadata: Metadata = { | ||
title: 'DS Project', | ||
description: 'Manage Design System', | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body | ||
className={cn( | ||
'flex flex-col items-center bg-zinc-100 min-h-screen', | ||
inter.className | ||
)} | ||
> | ||
{children} | ||
</body> | ||
</html> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
apps/dashboard/src/components/banners/community-banner/community-banner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Icons, Text } from '@ds-project/components'; | ||
import Link from 'next/link'; | ||
import Image from 'next/image'; | ||
import discordIcon from './discord-icon.png'; | ||
import { Button } from '@/components/button'; | ||
|
||
export function CommunityBanner() { | ||
return ( | ||
<article | ||
id="community" | ||
className="relative overflow-hidden flex flex-col gap-4 border border-zinc-600 rounded-md p-10 bg-zinc-900 text-zinc-50" | ||
> | ||
<header> | ||
<Text size="lg"> | ||
<h3>Join the community</h3> | ||
</Text> | ||
</header> | ||
<div className="flex gap-2"> | ||
<Button asChild> | ||
<Link href="https://discord.gg/AKza6Mqr"> | ||
<Icons.DiscordLogoIcon className="mr-2" /> Join our Discord | ||
</Link> | ||
</Button> | ||
<Button asChild mode="dark"> | ||
<Link href="https://github.com/Design-System-Project/platform"> | ||
<Icons.GitHubLogoIcon className="mr-2" /> Star us on GitHub | ||
</Link> | ||
</Button> | ||
</div> | ||
<Image | ||
src={discordIcon} | ||
alt="" | ||
className="object-cover absolute size-64 -right-0 -top-10" | ||
/> | ||
</article> | ||
); | ||
} |
Binary file added
BIN
+2.14 MB
apps/dashboard/src/components/banners/community-banner/discord-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
apps/dashboard/src/components/banners/community-banner/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './community-banner'; |
25 changes: 25 additions & 0 deletions
25
apps/dashboard/src/components/banners/get-started-banner/get-started-banner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Button } from '@/components/button'; | ||
import { Icons, Text } from '@ds-project/components'; | ||
import Link from 'next/link'; | ||
|
||
export function GetStartedBanner() { | ||
return ( | ||
<section className="w-full min-h-[40vh] flex justify-center items-center"> | ||
<div className="flex w-full flex-col gap-4 border border-zinc-200 rounded-md p-10 bg-zinc-50 text-zinc-950 items-center"> | ||
<Text size="lg" align={'center'}> | ||
<h4> | ||
Get started with DS and elevate the developer experience and | ||
productivity across your design and engineering teams | ||
</h4> | ||
</Text> | ||
<div> | ||
<Button asChild mode="dark"> | ||
<Link href="/app"> | ||
Get Started <Icons.ArrowRightIcon /> | ||
</Link> | ||
</Button> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} |
1 change: 1 addition & 0 deletions
1
apps/dashboard/src/components/banners/get-started-banner/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './get-started-banner'; |
19 changes: 19 additions & 0 deletions
19
apps/dashboard/src/components/banners/vision-banner/_components/card.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Text } from '@ds-project/components'; | ||
|
||
interface CardProps { | ||
title: string; | ||
description: string; | ||
} | ||
export function Card({ description, title }: CardProps) { | ||
return ( | ||
<div className="h-full p-4 rounded-md border bg-white border-zinc-300 flex gap-4 flex-col"> | ||
<div className="w-full h-44 bg-zinc-800 rounded-md"></div> | ||
<Text size="base" weight="medium" leading="tight"> | ||
<h2>{title}</h2> | ||
</Text> | ||
<Text size="sm" weight="light" leading="loose"> | ||
<p>{description}</p> | ||
</Text> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './vision-banner'; |
Oops, something went wrong.