Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main
- feat/napi-binding
# Stacked Korean translation PRs; remove once they merge.
- feat/ko-shell
- feat/ko-home

# Pull requests and every job below run read-only. Only the `release` and
# `deploy-pages` jobs get write permissions, and they run on pushes to main
Expand Down
47 changes: 47 additions & 0 deletions apps/landing/src/app/(detail)/page.ko.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { Box } from '@devup-ui/react'
import type { Metadata } from 'next'

import { Bench } from '@/app/Bench'
import { Feature } from '@/app/Feature'
import { TopBanner } from '@/app/TopBanner'
import { Container } from '@/components/Container'
import { Discord } from '@/components/Discord'

const description =
'Zero Config, Zero FOUC, Zero Runtime을 실현하는 CSS-in-JS 전처리기'

export const metadata: Metadata = {
description,
alternates: {
canonical: '/ko',
languages: {
en: '/',
ko: '/ko',
'x-default': '/',
},
},
openGraph: {
title: 'Devup UI',
description,
images: ['https://devup-ui.com/og-image.png'],
locale: 'ko_KR',
siteName: 'Devup UI',
type: 'website',
url: '/ko',
},
}

export default function HomePage() {
return (
<>
<TopBanner locale="ko" />
<Bench locale="ko" />
<Feature locale="ko" />
<Container>
<Box px={4} py="40px">
<Discord locale="ko" />
</Box>
</Container>
</>
)
}
5 changes: 5 additions & 0 deletions apps/landing/src/app/(detail)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import { TopBanner } from '../TopBanner'
export const metadata: Metadata = {
alternates: {
canonical: '/',
languages: {
en: '/',
ko: '/ko',
'x-default': '/',
},
},
}

Expand Down
50 changes: 50 additions & 0 deletions apps/landing/src/app/(detail)/showcase/page.ko.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { Text, VStack } from '@devup-ui/react'
import type { Metadata } from 'next'

import { SHOWCASE_LIST } from '@/components/showcase/showcase-list'
import { ShowcaseContent } from '@/components/showcase/ShowcaseContent'

export const metadata: Metadata = {
title: 'Devup UI 쇼케이스',
description: 'Devup UI로 만든 웹사이트와 앱을 소개합니다.',
alternates: {
canonical: '/ko/showcase',
languages: {
en: '/showcase',
ko: '/ko/showcase',
'x-default': '/showcase',
},
},
openGraph: {
title: 'Devup UI 쇼케이스',
description: 'Devup UI로 만든 웹사이트와 앱을 소개합니다.',
url: '/ko/showcase',
siteName: 'Devup UI',
images: ['/og-image.png'],
locale: 'ko_KR',
},
}

export default function Page() {
return (
<VStack
gap="30px"
maxW="1032px"
mx="auto"
overflow="hidden"
px={['20px', '30px', null, '40px', '60px']}
py="40px"
w="100%"
>
<VStack gap="12px">
<Text as="h1" color="$title" m="0" typography="h4">
쇼케이스
</Text>
<Text color="$text" typography="bodyReg">
Devup UI로 만든 다양한 웹사이트를 소개합니다
</Text>
</VStack>
<ShowcaseContent list={SHOWCASE_LIST} />
</VStack>
)
}
93 changes: 6 additions & 87 deletions apps/landing/src/app/(detail)/showcase/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { Text, VStack } from '@devup-ui/react'
import type { Metadata } from 'next'

import { SHOWCASE_LIST } from '@/components/showcase/showcase-list'
import { ShowcaseContent } from '@/components/showcase/ShowcaseContent'

export const metadata: Metadata = {
title: 'Devup UI Showcase',
description: 'Websites and apps built with Devup UI.',
alternates: {
canonical: '/showcase',
languages: {
en: '/showcase',
ko: '/ko/showcase',
'x-default': '/showcase',
},
},
openGraph: {
title: 'Devup UI Showcase',
Expand All @@ -18,93 +24,6 @@ export const metadata: Metadata = {
},
}

const SHOWCASE_LIST = [
{
id: 'devfive',
name: 'Devfive',
image: '/showcase/devfive.webp',
type: 'website',
link: 'https://devfive.kr',
},
{
id: 'braillify',
name: 'Braillify',
image: '/showcase/braillify.webp',
type: 'website',
link: 'https://braillify.kr',
},
{
id: 'ideocean',
name: 'IDeOcean',
image: '/showcase/ideocean.webp',
type: 'website',
link: 'https://ideaocean.ai/',
},
{
id: 'ongle',
name: 'Ongle',
image: '/showcase/ongle.webp',
type: 'website',
link: 'https://easy-read.co.kr',
},
{
id: 'laon_singcraft',
name: 'Laon Singcraft',
image: '/showcase/laon_singcraft.webp',
type: 'website',
link: 'https://laonswingcraft.com/',
},
{
id: 'point_park',
name: 'PointPark',
image: '/showcase/point_park.webp',
type: 'mobile',
link: 'https://play.google.com/store/apps/details?id=com.pointpark.popaArdApp&hl=ko',
},
{
id: 'nh_allone_bank',
name: 'NH Allone Bank',
image: '/showcase/nh_allone_bank.webp',
type: 'mobile',
link: 'https://play.google.com/store/apps/details?id=com.nonghyup.nhallonebank',
},
{
id: 'your_test',
name: 'Your Test',
image: '/showcase/your_test.webp',
type: 'website',
link: 'https://www.yourtest.kr/',
},
{
id: 'util_support',
name: 'Util Support',
image: '/showcase/util_support.webp',
type: 'website',
link: 'https://util.support/',
},
{
id: 'justq',
name: 'Justq',
image: '/showcase/justq.webp',
type: 'website',
link: 'https://www.justq.com/',
},
{
id: 'kavia',
name: 'Kavia',
image: '/showcase/kavia.webp',
type: 'website',
link: 'https://kavia.org/',
},
{
id: 'boratial',
name: 'Boratial',
image: '/showcase/boratial.webp',
type: 'website',
link: 'https://www.boratr.co.kr',
},
]

export default function Page() {
return (
<VStack
Expand Down
45 changes: 27 additions & 18 deletions apps/landing/src/app/Bench.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { css, Flex, Text, VStack } from '@devup-ui/react'
import type { Locale } from 'next-intl'
import { getTranslations } from 'next-intl/server'

import { BenchBox } from './BenchBox'
import { BENCHMARK_SOURCE, benchmarkResults as results } from './benchmark-data'
Expand Down Expand Up @@ -55,7 +57,8 @@ const DEVUP_CARD = {

const link = css({ color: 'inherit' })

export function Bench() {
export async function Bench({ locale = 'en' }: { locale?: Locale }) {
const t = await getTranslations({ locale, namespace: 'Home' })
return (
<VStack
alignItems="center"
Expand All @@ -77,27 +80,33 @@ export function Bench() {
wordBreak="keep-all"
>
<Text as="h2" color="$title" m="0" typography="h4">
Comparison Benchmarks
{t('benchmarksTitle')}
</Text>
<Text color="$text" typography="textL">
Next.js {results.run.next} cold build, median of {results.samples}{' '}
(GitHub Actions{' '}
<a className={link} href={results.run.url}>
run {results.run.id}
</a>
, commit{' '}
<a
className={link}
href={`https://github.com/dev-five-git/devup-ui/commit/${results.run.sha}`}
>
{results.run.commit}
</a>
)
{t.rich('benchmarksCaption', {
commit: results.run.commit,
id: results.run.id,
next: results.run.next,
samples: results.samples,
commitLink: (chunks) => (
<a
className={link}
href={`https://github.com/dev-five-git/devup-ui/commit/${results.run.sha}`}
>
{chunks}
</a>
),
runLink: (chunks) => (
<a className={link} href={results.run.url}>
{chunks}
</a>
),
})}
</Text>
</VStack>

<Flex display={[null, null, null, null, 'none']}>
<DevupUICard {...DEVUP_CARD} />
<DevupUICard {...DEVUP_CARD} locale={locale} />
</Flex>
<BenchBox>
<Flex
Expand All @@ -109,10 +118,10 @@ export function Bench() {
w="fit-content"
>
<Flex display={['none', null, null, null, 'flex']}>
<DevupUICard {...DEVUP_CARD} />
<DevupUICard {...DEVUP_CARD} locale={locale} />
</Flex>
{OTHER_CARDS.map((item) => (
<OtherCard key={item.title} {...item} />
<OtherCard key={item.title} {...item} locale={locale} />
))}
</Flex>
</BenchBox>
Expand Down
11 changes: 8 additions & 3 deletions apps/landing/src/app/DevupUICard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Box, Flex, Image, Text, VStack } from '@devup-ui/react'
import type { Locale } from 'next-intl'
import { getTranslations } from 'next-intl/server'

interface DevupUICardProps {
version: string
Expand All @@ -8,6 +10,7 @@ interface DevupUICardProps {
fastest: boolean
/** Whether Devup UI builds smaller than every other card */
smallest: boolean
locale?: Locale
}

function Crown({ shown }: { shown: boolean }) {
Expand All @@ -26,13 +29,15 @@ function Crown({ shown }: { shown: boolean }) {
)
}

export function DevupUICard({
export async function DevupUICard({
version,
buildTime,
buildSize,
fastest,
smallest,
locale = 'en',
}: DevupUICardProps) {
const t = await getTranslations({ locale, namespace: 'Home' })
return (
<Flex
bg="$containerBackground"
Expand Down Expand Up @@ -68,7 +73,7 @@ export function DevupUICard({
<VStack alignItems="flex-end" gap="20px">
<VStack alignItems="flex-end" gap="6px" justifyContent="center">
<Text color="$text" typography="textSbold">
Next.js Build Time (single CSS)
{t('devupBuildTime')}
</Text>
<Flex gap="10px">
<Crown shown={fastest} />
Expand All @@ -84,7 +89,7 @@ export function DevupUICard({
</VStack>
<VStack alignItems="flex-end" gap="6px" justifyContent="center">
<Text color="$text" typography="textSbold">
Build Size
{t('buildSize')}
</Text>
<Flex gap="10px">
<Crown shown={smallest} />
Expand Down
Loading
Loading