Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 42903e0

Browse files
committed
Update examples
1 parent 1159932 commit 42903e0

File tree

5 files changed

+60
-1
lines changed

5 files changed

+60
-1
lines changed

examples/remote-css/aleph.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import markdown from 'aleph/plugins/markdown.ts'
2+
import type { Config } from 'aleph/types'
3+
4+
export default <Config>{
5+
css: {
6+
cache: false
7+
}
8+
}

examples/remote-css/app.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { FC } from 'react'
2+
import 'https://esm.sh/tailwindcss/dist/tailwind.min.css'
3+
4+
export default function App({ Page, pageProps }: { Page: FC, pageProps: any }) {
5+
return (
6+
<main>
7+
<head>
8+
<meta name="viewport" content="width=device-width" />
9+
</head>
10+
<Page {...pageProps} />
11+
</main>
12+
)
13+
}

examples/remote-css/pages/index.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react'
2+
3+
export default function Index() {
4+
return (
5+
<div className="w-screen h-screen flex items-center justify-center">
6+
<div className="py-8 px-8 max-w-md mx-auto bg-white rounded-xl shadow-md space-y-6 sm:(py-4 space-y-0 space-x-6)">
7+
<img className="block mx-auto h-24 rounded-full sm:(mx-0 flex-shrink-0)" src="/logo.svg" alt="Aleph.js" />
8+
<div className="text-center space-y-2 sm:text-left">
9+
<div className="space-y-0.1">
10+
<p className="text-lg text-black font-semibold">Aleph.js</p>
11+
<p className="text-gray-500 font-medium">CSS Powered by TailwindCSS.</p>
12+
</div>
13+
<a
14+
href="https://alephjs.org/docs/get-started"
15+
className="inline-block px-4 py-1 text-sm text-purple-600 font-semibold rounded-full border border-purple-200 hover:text-white hover:bg-purple-600 hover:border-transparent) "
16+
>
17+
Get started
18+
</a>
19+
</div>
20+
</div>
21+
</div>
22+
)
23+
}

examples/remote-css/public/logo.svg

Lines changed: 15 additions & 0 deletions
Loading

examples/windicss/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function Index() {
1212
</div>
1313
<a
1414
href="https://alephjs.org/docs/get-started"
15-
className="inline-block px-4 py-1 text-sm text-purple-600 font-semibold rounded-full border border-purple-200 hover:(text-white bg-purple-600 border-transparent) focus:(outline-none ring-2 ring-purple-600 ring-offset-2)"
15+
className="inline-block px-4 py-1 text-sm text-purple-600 font-semibold rounded-full border border-purple-200 hover:text-white hover:bg-purple-600 hover:border-transparent"
1616
>
1717
Get started
1818
</a>

0 commit comments

Comments
 (0)