diff --git a/website/src/app/icon.png b/website/src/app/icon.png new file mode 100644 index 0000000..8ea57c3 Binary files /dev/null and b/website/src/app/icon.png differ diff --git a/website/src/app/page.tsx b/website/src/app/page.tsx index b733e53..b378e2a 100644 --- a/website/src/app/page.tsx +++ b/website/src/app/page.tsx @@ -20,9 +20,9 @@ export default function Home() {
unicord
diff --git a/website/src/components/Feature.tsx b/website/src/components/Feature.tsx deleted file mode 100644 index 0f6b5e4..0000000 --- a/website/src/components/Feature.tsx +++ /dev/null @@ -1,38 +0,0 @@ -'use client'; - -import { ReactNode } from 'react'; -import styles from '../app/page.module.css'; -import dynamic from 'next/dynamic'; - -const CodeExample = dynamic( - () => import('./CodeExample'), - { ssr: false } -); - -type FeatureProps = { - title: string; - description: ReactNode; - code: string; - codeHeight?: number; - reversed?: boolean; -} - -export function Feature({ title, description, code, codeHeight, reversed = false }: FeatureProps) { - const content = ( - <> -
-

{title}

- {description} -
-
- -
- - ); - - return ( -
- {reversed ? content : content} -
- ); -} diff --git a/website/src/components/Logo.module.css b/website/src/components/Logo.module.css deleted file mode 100644 index b1e21c0..0000000 --- a/website/src/components/Logo.module.css +++ /dev/null @@ -1,32 +0,0 @@ -.logo { - display: flex; - align-items: center; - gap: 0px; - font-weight: 600; -} - -.logo img { - margin-right: 8px; -} - -.small { - font-size: 32px; -} - -.small img { - width: 40px; - height: 40px; -} - -.large { - font-size: 48px; -} - -.large img { - width: 60px; - height: 60px; -} - -.highlight { - color: var(--color-primary); -} diff --git a/website/src/components/Logo.tsx b/website/src/components/Logo.tsx deleted file mode 100644 index 06e3b2b..0000000 --- a/website/src/components/Logo.tsx +++ /dev/null @@ -1,17 +0,0 @@ -'use client'; - -import styles from '../app/page.module.css'; - -type LogoProps = { - size?: 'small' | 'large'; - showImage?: boolean; -} - -export function Logo({ size = 'small', showImage = true }: LogoProps) { - return ( -
- {showImage && Unicord logo} -
unicord
-
- ); -} diff --git a/website/src/components/PackageManager.tsx b/website/src/components/PackageManager.tsx deleted file mode 100644 index c81c396..0000000 --- a/website/src/components/PackageManager.tsx +++ /dev/null @@ -1,44 +0,0 @@ -'use client'; - -import { useState } from 'react'; -import styles from '../app/page.module.css'; - -const PACKAGE_MANAGERS = { - npm: 'npm install unicord', - yarn: 'yarn add unicord', - pnpm: 'pnpm add unicord', - bun: 'bun add unicord' -} as const; - -type PackageManagerType = keyof typeof PACKAGE_MANAGERS; - -export function PackageManager() { - const [activeTab, setActiveTab] = useState('npm'); - - return ( -
-
- {(Object.keys(PACKAGE_MANAGERS) as PackageManagerType[]).map(manager => ( - - ))} -
-
- - {PACKAGE_MANAGERS[activeTab]} - - -
-
- ); -} diff --git a/website/src/components/Section.module.css b/website/src/components/Section.module.css deleted file mode 100644 index ad86f53..0000000 --- a/website/src/components/Section.module.css +++ /dev/null @@ -1,23 +0,0 @@ -.section { - padding: 6rem 12em; - min-height: 50vh; - display: flex; - align-items: center; - justify-content: center; - position: relative; -} - -.dark { - background: var(--gray-alpha-100); - border-top: 1px solid var(--gray-alpha-200); -} - -.light { - border-top: 1px solid var(--gray-alpha-200); -} - -@media (max-width: 1200px) { - .section { - padding: 4rem 2rem; - } -} diff --git a/website/src/components/Section.tsx b/website/src/components/Section.tsx deleted file mode 100644 index 1131e48..0000000 --- a/website/src/components/Section.tsx +++ /dev/null @@ -1,21 +0,0 @@ -'use client'; - -import { ReactNode } from 'react'; -import styles from '../app/page.module.css'; - -type SectionProps = { - children: ReactNode; - background?: 'light' | 'dark'; - className?: string; -} - -export function Section({ children, background = 'light', className = '' }: SectionProps) { - return ( -
- {children} -
- ); -}