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

Commit b7232ef

Browse files
committed
chore: add hello-world-md example
1 parent 2d87682 commit b7232ef

File tree

5 files changed

+132
-0
lines changed

5 files changed

+132
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import css from '../../plugins/css.ts'
2+
import markdown from '../../plugins/markdown.ts'
3+
import type { Config } from '../../types.ts'
4+
5+
export default (): Config => ({
6+
plugins: [
7+
css({
8+
postcss: { plugins: ['autoprefixer'] }
9+
}),
10+
markdown(),
11+
]
12+
})

examples/hello-world-md/app.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React, { ComponentType } from 'https://esm.sh/[email protected]'
2+
3+
type Metadata = {
4+
title?: string
5+
url?: string
6+
}
7+
8+
export default function App({ Page, pageProps }: { Page: ComponentType<any> & { meta: Metadata }, pageProps: any }) {
9+
return (
10+
<main>
11+
<head>
12+
<title>{Page.meta.title}</title>
13+
<link rel="stylesheet" href="./style/index.css" />
14+
</head>
15+
<Page {...pageProps} />
16+
</main>
17+
)
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Aleph.js
3+
url: https://alephjs.org
4+
---
5+
6+
![Aleph.js](/logo.svg)
7+
8+
# Welcome to use Aleph.js!
9+
10+
<p>
11+
<a href="https://alephjs.org" target="_blank">Website</a>
12+
<span> · </span>
13+
<a href="https://alephjs.org/docs/get-started" target="_blank">Get Started</a>
14+
<span> · </span>
15+
<a href="https://alephjs.org/docs" target="_blank">Docs</a>
16+
<span> · </span>
17+
<a href="https://github.com/alephjs/aleph.js" target="_blank">Github</a>
18+
</p>
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
border: none;
5+
outline: none;
6+
font: inherit;
7+
font-size: 100%;
8+
vertical-align: baseline;
9+
background: transparent;
10+
}
11+
12+
body {
13+
font-family: "Helvetica Neue", Helvetica, Arial sans-serif;
14+
font-size: 16px;
15+
}
16+
17+
main {
18+
display: flex;
19+
align-items: center;
20+
justify-content: center;
21+
height: 100vh;
22+
}
23+
24+
h1 {
25+
margin: 0;
26+
line-height: 1.5;
27+
font-size: 18px;
28+
font-weight: 400;
29+
text-align: center;
30+
color: #000;
31+
}
32+
33+
p {
34+
margin: 0;
35+
line-height: 1.5;
36+
text-align: center;
37+
color: #333;
38+
}
39+
40+
P + p {
41+
margin-top: 6px;
42+
}
43+
44+
p img {
45+
width: auto;
46+
height: 75px;
47+
}
48+
49+
p span,
50+
p a {
51+
display: inline-block;
52+
vertical-align: middle;
53+
}
54+
55+
p span {
56+
color: #999;
57+
}
58+
59+
p a {
60+
margin: 0 9px;
61+
color: #777;
62+
text-decoration: none;
63+
border-bottom: 1px dashed #ccc;
64+
}
65+
66+
p a:hover {
67+
color: #333;
68+
border-bottom-color: transparent;
69+
}

0 commit comments

Comments
 (0)