Skip to content

Commit

Permalink
code highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Nov 4, 2024
1 parent eb0a531 commit 15a747a
Show file tree
Hide file tree
Showing 28 changed files with 799 additions and 728 deletions.
2 changes: 1 addition & 1 deletion components/utils/tailwinds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const mainShardGradation =
'bg-gradient-to-b from-zinc-800 via-zinc-700 to-zinc-500 bg-clip-text text-transparent dark:from-white dark:via-zinc-100 dark:to-zinc-300'

export const basicTextColor = 'text-zinc-950 dark:text-white'
export const blightTextColor = 'text-zinc-700 dark:text-zinc-300'
export const blightTextColor = 'text-zinc-600 dark:text-zinc-300'
export const lightTextColor = 'text-zinc-500 dark:text-zinc-400'
export const linkBaseColor = 'text-zinc-700 dark:text-zinc-200 hover:opacity-70'
export const linkMenuColor = 'text-zinc-500 dark:text-zinc-400 hover:opacity-70'
Expand Down
54 changes: 24 additions & 30 deletions posts/doc/en/building-your-application/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: Deploy Https Endpoint Skeet Framework

_Italic Text_

~Strikethrough Text~
~~Strikethrough Text~~

- Unordered List Item 1
- Unordered List Item 2
Expand All @@ -39,36 +39,30 @@ console.log('Hello, World!')

## Code Sample

```tsx:/src/app/[locale]/(default)/layout.tsx

import { unstable_setRequestLocale } from 'next-intl/server'
import DefaultHeader from './DefaultHeader'
import DefaultFooter from './DefaultFooter'

type Props = {
children: React.ReactNode
params: {
locale: string
}
```ts main.ts
import { App, fsRoutes, staticFiles, trailingSlashes } from 'fresh'
import { i18nPlugin } from 'fresh-i18n'
import type { ExtendedState } from '@/utils/state.ts'

export const app = new App<ExtendedState>({
root: import.meta.url,
})
.use(staticFiles())
.use(trailingSlashes('never'))
.use(i18nPlugin({
languages: ['en', 'ja'],
defaultLanguage: 'en',
localesDir: './locales',
}))

await fsRoutes(app, {
loadIsland: (path) => import(`./islands/${path}`),
loadRoute: (path) => import(`./routes/${path}`),
})

if (import.meta.main) {
await app.listen()
}

export default async function DefaultLayout({
children,
params: { locale },
}: Props) {
unstable_setRequestLocale(locale)

return (
<>
<div className="flex flex-col">
<DefaultHeader />
<main className="min-h-screen">{children}</main>
<DefaultFooter />
</div>
</>
)
}

```

## YouTube Embed
Expand Down
54 changes: 24 additions & 30 deletions posts/doc/en/building-your-application/api/rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: Deploy RPC Endpoint Skeet Framework

_Italic Text_

~Strikethrough Text~
~~Strikethrough Text~~

- Unordered List Item 1
- Unordered List Item 2
Expand All @@ -39,36 +39,30 @@ console.log('Hello, World!')

## Code Sample

```tsx:/src/app/[locale]/(default)/layout.tsx

import { unstable_setRequestLocale } from 'next-intl/server'
import DefaultHeader from './DefaultHeader'
import DefaultFooter from './DefaultFooter'

type Props = {
children: React.ReactNode
params: {
locale: string
}
```ts main.ts
import { App, fsRoutes, staticFiles, trailingSlashes } from 'fresh'
import { i18nPlugin } from 'fresh-i18n'
import type { ExtendedState } from '@/utils/state.ts'

export const app = new App<ExtendedState>({
root: import.meta.url,
})
.use(staticFiles())
.use(trailingSlashes('never'))
.use(i18nPlugin({
languages: ['en', 'ja'],
defaultLanguage: 'en',
localesDir: './locales',
}))

await fsRoutes(app, {
loadIsland: (path) => import(`./islands/${path}`),
loadRoute: (path) => import(`./routes/${path}`),
})

if (import.meta.main) {
await app.listen()
}

export default async function DefaultLayout({
children,
params: { locale },
}: Props) {
unstable_setRequestLocale(locale)

return (
<>
<div className="flex flex-col">
<DefaultHeader />
<main className="min-h-screen">{children}</main>
<DefaultFooter />
</div>
</>
)
}

```

## YouTube Embed
Expand Down
54 changes: 24 additions & 30 deletions posts/doc/en/building-your-application/cli/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: CLI Skeet Framework

_Italic Text_

~Strikethrough Text~
~~Strikethrough Text~~

- Unordered List Item 1
- Unordered List Item 2
Expand All @@ -39,36 +39,30 @@ console.log('Hello, World!')

## Code Sample

```tsx:/src/app/[locale]/(default)/layout.tsx

import { unstable_setRequestLocale } from 'next-intl/server'
import DefaultHeader from './DefaultHeader'
import DefaultFooter from './DefaultFooter'

type Props = {
children: React.ReactNode
params: {
locale: string
}
```ts main.ts
import { App, fsRoutes, staticFiles, trailingSlashes } from 'fresh'
import { i18nPlugin } from 'fresh-i18n'
import type { ExtendedState } from '@/utils/state.ts'

export const app = new App<ExtendedState>({
root: import.meta.url,
})
.use(staticFiles())
.use(trailingSlashes('never'))
.use(i18nPlugin({
languages: ['en', 'ja'],
defaultLanguage: 'en',
localesDir: './locales',
}))

await fsRoutes(app, {
loadIsland: (path) => import(`./islands/${path}`),
loadRoute: (path) => import(`./routes/${path}`),
})

if (import.meta.main) {
await app.listen()
}

export default async function DefaultLayout({
children,
params: { locale },
}: Props) {
unstable_setRequestLocale(locale)

return (
<>
<div className="flex flex-col">
<DefaultHeader />
<main className="min-h-screen">{children}</main>
<DefaultFooter />
</div>
</>
)
}

```

## YouTube Embed
Expand Down
54 changes: 24 additions & 30 deletions posts/doc/en/building-your-application/frontend/solana.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: Deploy Solana dApp Skeet Framework

_Italic Text_

~Strikethrough Text~
~~Strikethrough Text~~

- Unordered List Item 1
- Unordered List Item 2
Expand All @@ -39,36 +39,30 @@ console.log('Hello, World!')

## Code Sample

```tsx:/src/app/[locale]/(default)/layout.tsx

import { unstable_setRequestLocale } from 'next-intl/server'
import DefaultHeader from './DefaultHeader'
import DefaultFooter from './DefaultFooter'

type Props = {
children: React.ReactNode
params: {
locale: string
}
```ts main.ts
import { App, fsRoutes, staticFiles, trailingSlashes } from 'fresh'
import { i18nPlugin } from 'fresh-i18n'
import type { ExtendedState } from '@/utils/state.ts'

export const app = new App<ExtendedState>({
root: import.meta.url,
})
.use(staticFiles())
.use(trailingSlashes('never'))
.use(i18nPlugin({
languages: ['en', 'ja'],
defaultLanguage: 'en',
localesDir: './locales',
}))

await fsRoutes(app, {
loadIsland: (path) => import(`./islands/${path}`),
loadRoute: (path) => import(`./routes/${path}`),
})

if (import.meta.main) {
await app.listen()
}

export default async function DefaultLayout({
children,
params: { locale },
}: Props) {
unstable_setRequestLocale(locale)

return (
<>
<div className="flex flex-col">
<DefaultHeader />
<main className="min-h-screen">{children}</main>
<DefaultFooter />
</div>
</>
)
}

```

## YouTube Embed
Expand Down
54 changes: 24 additions & 30 deletions posts/doc/en/building-your-application/frontend/ssg.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: Deploy Static Site Skeet Framework

_Italic Text_

~Strikethrough Text~
~~Strikethrough Text~~

- Unordered List Item 1
- Unordered List Item 2
Expand All @@ -39,36 +39,30 @@ console.log('Hello, World!')

## Code Sample

```tsx:/src/app/[locale]/(default)/layout.tsx

import { unstable_setRequestLocale } from 'next-intl/server'
import DefaultHeader from './DefaultHeader'
import DefaultFooter from './DefaultFooter'

type Props = {
children: React.ReactNode
params: {
locale: string
}
```ts main.ts
import { App, fsRoutes, staticFiles, trailingSlashes } from 'fresh'
import { i18nPlugin } from 'fresh-i18n'
import type { ExtendedState } from '@/utils/state.ts'

export const app = new App<ExtendedState>({
root: import.meta.url,
})
.use(staticFiles())
.use(trailingSlashes('never'))
.use(i18nPlugin({
languages: ['en', 'ja'],
defaultLanguage: 'en',
localesDir: './locales',
}))

await fsRoutes(app, {
loadIsland: (path) => import(`./islands/${path}`),
loadRoute: (path) => import(`./routes/${path}`),
})

if (import.meta.main) {
await app.listen()
}

export default async function DefaultLayout({
children,
params: { locale },
}: Props) {
unstable_setRequestLocale(locale)

return (
<>
<div className="flex flex-col">
<DefaultHeader />
<main className="min-h-screen">{children}</main>
<DefaultFooter />
</div>
</>
)
}

```

## YouTube Embed
Expand Down
Loading

0 comments on commit 15a747a

Please sign in to comment.