Skip to content

Commit 56621c0

Browse files
committed
🧹 chore: move fern back to landing page
1 parent 59b50b2 commit 56621c0

File tree

2 files changed

+67
-67
lines changed

2 files changed

+67
-67
lines changed

docs/index.md

Lines changed: 14 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,9 @@ head:
1717
---
1818

1919
<script setup>
20-
import Fern from './components/oiia/fern.vue'
20+
import Fern from './components/fern/fern.vue'
2121
</script>
2222

23-
<div id="oiia-herta" class="z-50 fixed bottom-0 right-0 w-36 h-36 bg-transparent opacity-0" aria-hidden="true" />
24-
25-
<img id="oiia" src="/oiia/oiia-static.webp" class="fixed bottom-0 right-6 h-24 z-50" />
26-
27-
<img id="herta" src="/oiia/herta.webp" class="z-50 fixed bottom-28 right-6 h-60 opacity-0 rounded-2xl shadow-2xl" />
28-
29-
<style>
30-
#oiia {
31-
animation: oiia-in 30s cubic-bezier(0.7, 0, 0.84, 0);
32-
transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
33-
}
34-
35-
#herta {
36-
transform: scale(0.5) translateX(6rem) translateY(9rem);
37-
transition: all 0.3s cubic-bezier(0.7, 0, 0.84, 0);
38-
pointer-events: none;
39-
}
40-
41-
#oiia:hover,
42-
#oiia-herta:hover ~ #oiia {
43-
opacity: 1 !important;
44-
}
45-
46-
#herta:hover,
47-
#oiia:hover ~ #herta,
48-
#oiia-herta:hover ~ #herta {
49-
@apply opacity-100 scale-100;
50-
transform: scale(1) translateX(0) translateY(0);
51-
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
52-
pointer-events: auto;
53-
}
54-
55-
@keyframes oiia-in {
56-
from {
57-
opacity: .025;
58-
}
59-
}
60-
</style>
61-
6223
<Fern>
6324

6425
<template v-slot:type-1>
@@ -168,15 +129,15 @@ new Elysia()
168129
import { Elysia, file } from 'elysia'
169130

170131
new Elysia()
171-
.get('/', 'LIMBUS COMPANY!!')
172-
.get('/said', file('don-quixote.gif'))
132+
.get('/', 'Hello World')
133+
.get('/image', file('mika.webp'))
173134
.get('/stream', function* () {
174-
while(true)
175-
yield 'LIMBUS COMPANY!!'
135+
yield 'Hello'
136+
yield 'World'
176137
})
177138
.ws('/realtime', {
178139
message(ws, message) {
179-
ws.send('This is truly ideal')
140+
ws.send('got:' + message)
180141
}
181142
})
182143
.listen(3000)
@@ -192,8 +153,8 @@ import swagger from '@elysiajs/swagger'
192153

193154
new Elysia()
194155
.use(swagger())
195-
.use(I_am_a_teapot_418)
196-
.use(nagisa)
156+
.use(character)
157+
.use(auth)
197158
.listen(3000)
198159
```
199160

@@ -249,12 +210,12 @@ import { Elysia, t } from 'elysia'
249210

250211
export const app = new Elysia()
251212
.put(
252-
'/cats',
213+
'/user',
253214
({ body, error }) => {
254215
if(body.username === 'mika')
255216
return error(400, {
256217
success: false,
257-
message: 'Cat is already oiia'
218+
message: 'Username already taken'
258219
} as const)
259220

260221
return {
@@ -278,14 +239,14 @@ import { test, expect } from 'bun:test'
278239

279240
const server = treaty(app)
280241

281-
test('should handle spinning oiia', async () => {
282-
const { error } = await server.cats.put({
283-
username: 'oiia',
242+
test('should handle duplicated user', async () => {
243+
const { error } = await server.user.put({
244+
username: 'mika',
284245
})
285246

286247
expect(error?.value).toEqual({
287248
success: false,
288-
message: 'Cat is already oiia'
249+
message: 'Username already taken'
289250
})
290251
})
291252
```

docs/fern.md renamed to docs/oiia.md

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,48 @@ head:
1717
---
1818

1919
<script setup>
20-
import Fern from './components/fern/fern.vue'
20+
import Fern from './components/oiia/fern.vue'
2121
</script>
2222

23+
<div id="oiia-herta" class="z-50 fixed bottom-0 right-0 w-36 h-36 bg-transparent opacity-0" aria-hidden="true" />
24+
25+
<img id="oiia" src="/oiia/oiia-static.webp" class="fixed bottom-0 right-6 h-24 z-50" />
26+
27+
<img id="herta" src="/oiia/herta.webp" class="z-50 fixed bottom-28 right-6 h-60 opacity-0 rounded-2xl shadow-2xl" />
28+
29+
<style>
30+
#oiia {
31+
animation: oiia-in 30s cubic-bezier(0.7, 0, 0.84, 0);
32+
transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
33+
}
34+
35+
#herta {
36+
transform: scale(0.5) translateX(6rem) translateY(9rem);
37+
transition: all 0.3s cubic-bezier(0.7, 0, 0.84, 0);
38+
pointer-events: none;
39+
}
40+
41+
#oiia:hover,
42+
#oiia-herta:hover ~ #oiia {
43+
opacity: 1 !important;
44+
}
45+
46+
#herta:hover,
47+
#oiia:hover ~ #herta,
48+
#oiia-herta:hover ~ #herta {
49+
@apply opacity-100 scale-100;
50+
transform: scale(1) translateX(0) translateY(0);
51+
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
52+
pointer-events: auto;
53+
}
54+
55+
@keyframes oiia-in {
56+
from {
57+
opacity: .025;
58+
}
59+
}
60+
</style>
61+
2362
<Fern>
2463

2564
<template v-slot:type-1>
@@ -129,15 +168,15 @@ new Elysia()
129168
import { Elysia, file } from 'elysia'
130169

131170
new Elysia()
132-
.get('/', 'Hello World')
133-
.get('/image', file('mika.webp'))
171+
.get('/', 'LIMBUS COMPANY!!')
172+
.get('/said', file('don-quixote.gif'))
134173
.get('/stream', function* () {
135-
yield 'Hello'
136-
yield 'World'
174+
while(true)
175+
yield 'LIMBUS COMPANY!!'
137176
})
138177
.ws('/realtime', {
139178
message(ws, message) {
140-
ws.send('got:' + message)
179+
ws.send('This is truly ideal')
141180
}
142181
})
143182
.listen(3000)
@@ -153,8 +192,8 @@ import swagger from '@elysiajs/swagger'
153192

154193
new Elysia()
155194
.use(swagger())
156-
.use(character)
157-
.use(auth)
195+
.use(I_am_a_teapot_418)
196+
.use(nagisa)
158197
.listen(3000)
159198
```
160199

@@ -210,12 +249,12 @@ import { Elysia, t } from 'elysia'
210249

211250
export const app = new Elysia()
212251
.put(
213-
'/user',
252+
'/cats',
214253
({ body, error }) => {
215254
if(body.username === 'mika')
216255
return error(400, {
217256
success: false,
218-
message: 'Username already taken'
257+
message: 'Cat is already oiia'
219258
} as const)
220259

221260
return {
@@ -239,14 +278,14 @@ import { test, expect } from 'bun:test'
239278

240279
const server = treaty(app)
241280

242-
test('should handle duplicated user', async () => {
243-
const { error } = await server.user.put({
244-
username: 'mika',
281+
test('should handle spinning oiia', async () => {
282+
const { error } = await server.cats.put({
283+
username: 'oiia',
245284
})
246285

247286
expect(error?.value).toEqual({
248287
success: false,
249-
message: 'Username already taken'
288+
message: 'Cat is already oiia'
250289
})
251290
})
252291
```

0 commit comments

Comments
 (0)