Marvin Hagemeister
da858d0b34
www: improve error page design ( #2463 )
...
<img width="978" alt="Screenshot 2024-05-24 at 23 46 38"
src="https://github.com/denoland/fresh/assets/1062408/3ec2bdc5-e5fb-41f3-827e-7fd791569673 ">
2024-05-25 08:14:17 +02:00
Luca Casonato
f2162d24bf
feat: add render function ( #2454 )
2024-05-24 18:31:34 +02:00
Marvin Hagemeister
484d918307
www: port error pages to Fresh 2 ( #2456 )
...
Forgot to port the `_500.tsx` and `_400.tsx` error pages to Fresh 2
2024-05-24 17:31:52 +02:00
Luca Casonato
c9f0ccdce7
feat: rename helpers to define ( #2453 )
2024-05-24 11:48:32 +02:00
Marvin Hagemeister
287929e4d2
major: import Fresh 2.0 code ( #2449 )
...
🎉
2024-05-24 09:40:08 +02:00
Josh Collinsworth
990357629e
Chore: styling and verbiage cleanup ( #2451 )
...
- Better responsive styling of header, logo, nav menu and docs sidebar
- Specify UTC on homepage (since we can't localize server-side)
- Minor copy updates
2024-05-23 12:12:47 -05:00
Josh Collinsworth
8ef3e89a8c
Change side-by-side sections to sticky ( #2445 )
2024-05-22 12:08:41 -05:00
Marvin Hagemeister
e4981d30ad
www: rework docs layout ( #2429 )
...
- Re-enable partials
- clean up layout a bit
2024-05-21 17:38:32 +02:00
Marvin Hagemeister
46f6c280ed
www: social meta tag bot detection ( #2441 )
2024-05-21 17:14:05 +02:00
Marvin Hagemeister
ec10ad59a4
www: fix home partial changing doc title ( #2432 )
...
Fixes https://github.com/denoland/fresh/issues/2431
2024-05-17 20:18:42 +02:00
Josh Collinsworth
e126196fe5
Update og image ( #2428 )
2024-05-17 11:19:23 -05:00
Josh Collinsworth and Marvin Hagemeister
e8d1a68b58
www: refresh home page ( #2418 )
...
Overhauls the Fresh homepage with a new design, new demos, and new
sections highlighting Fresh's capabilities.
---------
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2024-05-17 16:08:55 +02:00
Marvin Hagemeister
0e5962ce37
www: remov no build step from marketing ( #2407 )
...
We've been moving away from that for a couple of months now, so
featuring the "no build step" prominently in our marketing feels wrong.
2024-04-18 17:29:27 +02:00
Marvin Hagemeister
240252fdb4
Revert "feat: add ctx.redirect() helper ( #2358 )" ( #2372 )
...
Mostly so that it's easier to cut the next patch release for Fresh.
This reverts commit e3508c3054 .
2024-03-21 10:27:53 +01:00
Marvin Hagemeister
e3508c3054
feat: add ctx.redirect() helper ( #2358 )
...
This PR adds a `ctx.redirect(path, status)` helper that aims to reduce
the verbosity of having to manually create a `Response` obejct for a
mere redirect.
```ts
// Before
new Response(null, {
status: 307,
headers: {
Location: "/foo/bar"
},
})
// After
ctx.redirect("/foo/bar", 307)
```
If the second parameter is not passed, it will default to `302`.
2024-03-12 17:36:34 +01:00
Marvin Hagemeister
4a175dc680
docs: disable partial nav temporarily ( #2330 )
...
We can re-enable once https://github.com/preactjs/preact/pull/4287 is
fixed.
Fixes https://github.com/denoland/fresh/issues/2322
2024-02-22 08:28:15 +01:00
Marvin Hagemeister
46eaef0181
docs: fix potential null errors ( #2324 )
2024-02-20 01:19:08 +01:00
Marvin Hagemeister
f63752062a
chore: change assert to with for import attributes ( #2231 )
2024-01-10 10:25:07 +01:00
Casey Ydenberg and Marvin Hagemeister
25afcae943
docs: Merge data fetching pages ( #1974 ) ( #2107 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-12-07 10:50:50 +01:00
Reed von Redwitz
35da45bff1
chore: update types in tests, init, update ( #2122 )
...
Of particular note is the change to
`tests/fixture_plugin/routes/test.tsx`. Note how I do this:
```diff
- async GET(_req, ctx: HandlerContext<unknown, { test: string }>) {
+ async GET(_req, ctx: FreshContext<{ test: string }, unknown>) {
```
I find it strange and confusing that the order of the type parameters
has "changed". This makes it impossible to do a simple search and
replace, because people now have to change order as well.
Most of the types have been declared as `<T, S>`, i.e. data before
state:
* `PageProps<T = any, S = Record<string, unknown>>`
* `RouteContext<T = any, S = Record<string, unknown>>`
* `Handler<T = any, State = Record<string, unknown>>`
* `Handlers<T = any, State = Record<string, unknown>> `
* `AsyncRoute<T = any, S = Record<string, unknown>>`
* `PageComponent<T = any, S = Record<string, unknown>> `
* `AsyncLayout<T = any, S = Record<string, unknown>>`
And then `FreshContext` comes around like
```
export interface FreshContext<
State = Record<string, unknown>,
// deno-lint-ignore no-explicit-any
Data = any,
NotFoundData = Data,
>
```
and switches it all up.
Not a huge issue, but just something to be aware of that others might
report.
2023-12-02 10:33:59 +01:00
Marvin Hagemeister
8fecb589ba
docs: fix release post link ( #2114 )
2023-12-01 16:38:38 +01:00
Marvin Hagemeister
dace008611
chore: release 1.6.0 ( #2113 )
2023-12-01 16:20:40 +01:00
Marvin Hagemeister
8ddc21eb90
Router cleanup ( #2099 )
2023-11-30 14:08:05 +01:00
Marvin Hagemeister
de55d80dee
docs: improve design ( #2097 )
2023-11-29 22:50:51 +01:00
Marvin Hagemeister
dd76addb9f
docs: minor code cleanup ( #2084 )
2023-11-28 18:37:57 +01:00
Marvin Hagemeister
bb035ae8da
docs: port over to TailwindCSS ( #2058 )
2023-11-22 11:12:21 +01:00
Marvin Hagemeister
f86a525418
docs: inline gfm-css ( #1939 )
2023-10-15 08:43:15 +02:00
Birk Skyum and Marvin Hagemeister
eb41b65d4c
docs: Enhanced CSR Layout ( #1908 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-10-12 12:23:37 +00:00
Marvin Hagemeister
1d12853889
fix: docs header nav not working ( #1904 )
2023-10-11 07:53:30 +02:00
Marvin Hagemeister
ded23e0a94
www: update header ( #1900 )
2023-10-10 18:29:59 +02:00
Marvin Hagemeister
534a0d87b3
docs: improve sidebar active style ( #1888 )
2023-10-07 21:05:54 +02:00
Marvin Hagemeister
01e5f71058
docs: improve admonition styles ( #1880 )
2023-10-06 22:56:11 +02:00
Marvin Hagemeister
776a721332
docs: switch to partial navigation ( #1865 )
2023-10-05 12:33:27 +02:00
Marvin Hagemeister
5ba9262f00
fix: docs nav not working ( #1854 )
2023-10-04 15:43:58 +02:00
Marvin Hagemeister
be1c15f8f3
fix: throw error when no partials found ( #1853 )
2023-10-04 15:38:43 +02:00
Marvin Hagemeister
9fdb0d5b01
docs: use builtin active link detection ( #1850 )
2023-10-04 14:34:42 +02:00
Marvin Hagemeister
ced9171690
docs: improve code blocks mobile layout ( #1846 )
2023-10-04 12:07:31 +02:00
Marvin Hagemeister
bc415f6d04
docs: fix anchor links ( #1845 )
2023-10-04 10:07:09 +02:00
Asher Gomez
06fac31e6b
docs(www): update hello bar for Fresh 1.4 ( #1653 )
2023-08-17 05:30:03 +02:00
Marvin Hagemeister
477364c567
feat: prebundle code + restore from snapshot ( #1604 )
2023-08-16 16:47:51 +02:00
Marvin Hagemeister
6a599dbed5
www: new fenced code block design ( #1629 )
2023-08-13 10:52:41 +02:00
Lino Le Van
5ba19abe13
fix: typos ( #1526 )
2023-07-26 13:09:42 +00:00
Tim Hårek Andreassen
9cae8fdd5c
www: improve accessbility ( #1507 )
2023-07-22 20:23:42 +02:00
Roj
16453b4dc9
style: fix remaining inconsistencies ( #1505 )
2023-07-22 14:09:25 +02:00
Roj
95d352d1dd
www: use smart quotes ( #1502 )
2023-07-22 13:03:03 +02:00
Roj
d1e78095be
www: consistently spell Fresh ( #1504 )
2023-07-22 13:02:31 +02:00
Marvin Hagemeister
2575ca5cad
chore: release 1.3.0 ( #1460 )
2023-07-18 18:09:13 +02:00
Will B and will berry
45b273dc45
www: improve wording on main page ( #1470 )
...
Co-authored-by: will berry <willberry@wills-MBP.attlocal.net >
2023-07-18 13:12:09 +00:00
Brian Knight
42c7ecc7d5
www: fix spelling error on homepage ( #1469 )
2023-07-18 11:25:52 +00:00
Lino Le Van and Marvin Hagemeister
e2a1bf8643
feat: move to Deno.serve ( #1427 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-12 14:37:53 +02:00