From 951788296798db3cda0fc38037f662086f93b23d Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Mon, 20 Jan 2025 17:29:57 +0900 Subject: [PATCH] Base landing --- apps/landing/public/menu-arrow.svg | 5 + .../src/app/(detail)/{ => docs}/LeftMenu.tsx | 8 +- .../src/app/(detail)/docs/RightIndex.tsx | 68 ++++++++++++ apps/landing/src/app/(detail)/docs/layout.tsx | 22 ++++ .../src/app/(detail)/docs/overview/page.mdx | 14 +++ apps/landing/src/app/(detail)/layout.tsx | 22 ---- apps/landing/src/app/(detail)/team/layout.tsx | 15 +++ apps/landing/src/app/(detail)/team/page.mdx | 14 +++ apps/landing/src/app/layout.tsx | 2 + apps/landing/src/app/page.tsx | 37 ++++--- apps/landing/src/components/DetailHeader.tsx | 63 ----------- apps/landing/src/components/Discord.tsx | 33 +++--- .../src/components/Header/HeaderWrap.tsx | 42 ++++++++ apps/landing/src/components/Header/index.tsx | 102 +++++++++++------- apps/landing/src/mdx-components.tsx | 7 ++ 15 files changed, 300 insertions(+), 154 deletions(-) create mode 100644 apps/landing/public/menu-arrow.svg rename apps/landing/src/app/(detail)/{ => docs}/LeftMenu.tsx (94%) create mode 100644 apps/landing/src/app/(detail)/docs/RightIndex.tsx create mode 100644 apps/landing/src/app/(detail)/docs/layout.tsx create mode 100644 apps/landing/src/app/(detail)/docs/overview/page.mdx delete mode 100644 apps/landing/src/app/(detail)/layout.tsx create mode 100644 apps/landing/src/app/(detail)/team/layout.tsx create mode 100644 apps/landing/src/app/(detail)/team/page.mdx delete mode 100644 apps/landing/src/components/DetailHeader.tsx create mode 100644 apps/landing/src/components/Header/HeaderWrap.tsx create mode 100644 apps/landing/src/mdx-components.tsx diff --git a/apps/landing/public/menu-arrow.svg b/apps/landing/public/menu-arrow.svg new file mode 100644 index 00000000..8ef65e2e --- /dev/null +++ b/apps/landing/public/menu-arrow.svg @@ -0,0 +1,5 @@ + + + diff --git a/apps/landing/src/app/(detail)/LeftMenu.tsx b/apps/landing/src/app/(detail)/docs/LeftMenu.tsx similarity index 94% rename from apps/landing/src/app/(detail)/LeftMenu.tsx rename to apps/landing/src/app/(detail)/docs/LeftMenu.tsx index 7363eb74..fbc79520 100644 --- a/apps/landing/src/app/(detail)/LeftMenu.tsx +++ b/apps/landing/src/app/(detail)/docs/LeftMenu.tsx @@ -24,7 +24,7 @@ export function LeftMenu() { 개념 - + @@ -50,13 +50,13 @@ export function LeftMenu() { 구성 요소 - + API - + @@ -77,7 +77,7 @@ export function LeftMenu() { 테마 - + diff --git a/apps/landing/src/app/(detail)/docs/RightIndex.tsx b/apps/landing/src/app/(detail)/docs/RightIndex.tsx new file mode 100644 index 00000000..72a633a3 --- /dev/null +++ b/apps/landing/src/app/(detail)/docs/RightIndex.tsx @@ -0,0 +1,68 @@ +import { Box, Flex, Image, Text, VStack } from '@devup-ui/react' + +export function RightIndex() { + return ( + + + + + Contents + + + + + + Installation + + + + + General Guides + + + + + Framework Guides + + + + + Next Steps + + + + + Playground + + + + + Acknowledgement + + + + + + + Edit this page + + + + + ) +} diff --git a/apps/landing/src/app/(detail)/docs/layout.tsx b/apps/landing/src/app/(detail)/docs/layout.tsx new file mode 100644 index 00000000..b2d0fb94 --- /dev/null +++ b/apps/landing/src/app/(detail)/docs/layout.tsx @@ -0,0 +1,22 @@ +import { Box, Flex } from '@devup-ui/react' + +import { LeftMenu } from './LeftMenu' +import { RightIndex } from './RightIndex' + +export default function DetailLayout({ + children, +}: Readonly<{ + children: React.ReactNode +}>) { + return ( + <> + + + + {children} + + + + + ) +} diff --git a/apps/landing/src/app/(detail)/docs/overview/page.mdx b/apps/landing/src/app/(detail)/docs/overview/page.mdx new file mode 100644 index 00000000..40415f35 --- /dev/null +++ b/apps/landing/src/app/(detail)/docs/overview/page.mdx @@ -0,0 +1,14 @@ +## What is Devup UI? +a +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? diff --git a/apps/landing/src/app/(detail)/layout.tsx b/apps/landing/src/app/(detail)/layout.tsx deleted file mode 100644 index 34d2f3bd..00000000 --- a/apps/landing/src/app/(detail)/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import 'sanitize.css' - -import { Flex } from '@devup-ui/react' - -import { DetailHeader } from '../../components/DetailHeader' -import { LeftMenu } from './LeftMenu' - -export default function DetailLayout({ - children, -}: Readonly<{ - children: React.ReactNode -}>) { - return ( - <> - - - - {children} - - - ) -} diff --git a/apps/landing/src/app/(detail)/team/layout.tsx b/apps/landing/src/app/(detail)/team/layout.tsx new file mode 100644 index 00000000..6815532f --- /dev/null +++ b/apps/landing/src/app/(detail)/team/layout.tsx @@ -0,0 +1,15 @@ +import { Box } from '@devup-ui/react' + +export default function TeamLayout({ + children, +}: Readonly<{ + children: React.ReactNode +}>) { + return ( + <> + + {children} + + + ) +} diff --git a/apps/landing/src/app/(detail)/team/page.mdx b/apps/landing/src/app/(detail)/team/page.mdx new file mode 100644 index 00000000..788f860d --- /dev/null +++ b/apps/landing/src/app/(detail)/team/page.mdx @@ -0,0 +1,14 @@ +## Team +a +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? +## What is Devup UI? diff --git a/apps/landing/src/app/layout.tsx b/apps/landing/src/app/layout.tsx index a6b38098..2dfbca76 100644 --- a/apps/landing/src/app/layout.tsx +++ b/apps/landing/src/app/layout.tsx @@ -3,6 +3,7 @@ import 'sanitize.css' import type { Metadata } from 'next' import { Footer } from '../components/Footer' +import { Header } from '../components/Header' export const metadata: Metadata = { title: 'Devup UI', @@ -22,6 +23,7 @@ export default function RootLayout({ /> +
{children}