Commit Graph
133 Commits
Author SHA1 Message Date
Marvin Hagemeister 4fe0199c9f www: port fresh.deno.dev to vite (#3227)
This PR ports fresh.deno.dev to use our vite plugin.
2025-08-29 16:41:16 +02:00
Christian Svensson 349372ad82 style: fix horizontal scrollbar for some screen sizes (#3177)
On the Fresh docs, I get a vertical scrollbar for a small range of
viewport size of the browser. This is annoying me, since I get it when I
place two windows next to each other on a 21:9 screen.

The issue seems to stem from a button using `p-1 -m-1`. But the negative
margin is there to address the increased space due to making the button
easier to click (most likely for touch/mobile). But this makes the
button overflow when there is no right-margin (`2xl:mr-0`).

<img width="1637" height="661" alt="image"
src="https://github.com/user-attachments/assets/48773cf5-316d-41f3-99e0-54f49b1f2cc9"
/>

## Solution

The simplest and easiest fix here is just to increase the margin to
cover for this case. `2xl:mr-1` seems to do the trick. But it might be a
good idea to have a little more gap towards the edge of the screen, e.g.
`2xl-mr-2`.
2025-08-05 23:49:13 +02:00
Shoaib Hossain b120245332 showcase: add developer portfolio (#3148)
This is a developer portfolio. And I hope it is suitable for showcasing
fresh.
2025-08-01 14:53:23 +02:00
Christian Svensson a2de5154ec fix(docs): improve and increase consistency for code blocks (#3163)
Follow-up from #3162.

This PR does various tweaks, mostly related to code blocks.

- Adds missing titles to code blocks, and updates titles to be more
consistent
- Adds filenames to most ` ```tsx` blocks with e.g. `main.ts`, `dev.ts`
or a suitable example (e.g. `routes/greeting.tsx`) based on the code
- Adds filenames to ` ```diff` blocks if there's a relevant file, to
make the icon e.g. TS over Diff icon
  - Code blocks with Fresh code (e.g. interfaces) uses ` ```tsx fresh 🍋`
- Changes most ` ```sh` blocks with example terminal commands to ` ```sh
Terminal`
- Updates ` ```txt Project Structure` or ` ```diff Project Structure`
blocks to be more consistent
- Changes `sh` or `txt` to `txt-files` which improves highlighting and
makes icon consistent
- Renames `<project dir>` to `<project root>` to match builder `root`
option terminology
- Adds `<project root>` root folder to most/all overview folder
overviews
  - Makes the structure blocks more consistently displayed
- Tried to make some "bare" examples more complete

## Comparison

Here's a small curated set of before/after changes.

### Deployment

- `deno` highlighted in terminal commands
- `.gitignore` syntax highlighting works without using `sh` as language

<img width="1641" height="1009" alt="image"
src="https://github.com/user-attachments/assets/170cf833-1f6a-4b0d-8d2d-a081bc28a967"
/>

### File routing

Updated icon, comments same as before, but root and hierarchy have new
colors (`operator`/`function`).

<img width="1647" height="588" alt="image"
src="https://github.com/user-attachments/assets/f28db51b-4bee-45e4-be1c-e137a6d3ae3d"
/>
2025-08-01 09:07:42 +02:00
Christian Svensson c9b43ea32b feat(docs): add file/language type icons to code blocks (#3162)
I originally wanted to make it clearer the distinction between "files"
and e.g. `` ```tsx foo.tsx `` compared to `` ```sh Terminal `` or ``
```txt Project structure``. I originally started just trying to add a 📝
icon or something. But instead I ended showing file types of all
markdown languages.

I took the file type icons for the SVG's from
https://github.com/vscode-icons/vscode-icons, which has a MIT license.

I think the icons make it a even more clear what the language of the
code snippet is.

I have a follow-up PR for improving code block titles and making
examples more consistent in #3163.


## Comparisons

<details>

<summary><strong>Open &mdash; Before | After</strong></summary>


### TS + Shell icons - Hover tooltips and alt text

<img width="1504" height="639" alt="image"
src="https://github.com/user-attachments/assets/636838a3-f38c-4048-a536-52c1cdd6b6d4"
/>


### TS + Shell icons 2

<img width="1511" height="761" alt="image"
src="https://github.com/user-attachments/assets/2ad6d25c-3995-433a-ad93-162830ca55a1"
/>

### Shell + Dockerfile icons

<img width="1500" height="780" alt="image"
src="https://github.com/user-attachments/assets/88010749-d0d2-4498-9eb2-9bd971e48365"
/>

### Nested blocks + Git icon

<img width="1513" height="634" alt="image"
src="https://github.com/user-attachments/assets/400c27f8-d0b4-40bd-801d-611e1e8a8e36"
/>

</details>
2025-07-31 23:48:00 +02:00
e4d9160a92 docs: add daisyUI setup to examples (#3144)
Add a page to the docs on how to use https://daisyui.com/ with Fresh. 
---------

Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2025-07-26 12:28:02 +00:00
bb23643779 feat: support tailwindcss v4 (#3054)
update /www and tailwind-plugin to support tailwind v4.

Thanks to the merge of #3034, the work of integrating and advancing
#2903 is promoted.

related #3034 
related #2903 

close #3056
close #2819

--patch-1 
based on review,

1. del compiler and make it more clean and simple,
2.  fix init tailwind part,
3. fix test tailwind part

--patch-2

1. fix the docs 
2. fix the docs of plugin and version

--patch-3
1. Addressed various maintenance tasks (chores)
2. Updated the Tailwind CSS plugin to align with this release. Generated
a fresh project using the updated init configuration and
3. deployed it via Deno Deploy EA. Deployment is functioning correctly.

--patch-4
Move postcss imports to Tailwind section in init script

--patch-5
Refactored Tailwind plugin type definitions by copying PluginOptions
properties from @tailwindcss/postcss and adding Fresh-specific exclude
option, while exporting types from package entrypoint for better
accessibility.

Test Project: https://fresh.fresh-press.deno.net/
Test Project Repository:
https://github.com/SisyphusZheng/fresh-tailwindv4
Test Plugin: https://jsr.io/@freshpress/fresh-plugin-tailwind@1.0.0

---------

Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2025-07-21 16:13:34 +02:00
MoatezandMarvin Hagemeister 2d308f6b9e showcase: fix MoatezNg screenshot (#3119)
Fixing preview

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2025-07-20 16:03:42 +00:00
NanoEdit bf2098a75e showcase: add pubgitems.info (#2692)
Using Deno 2 and Fresh 2
2025-07-20 17:41:19 +02:00
Moatez ad5262480d showcase: add Moatez showcase (#3118)
Hi! i just added a new showcase :)
2025-07-20 17:40:30 +02:00
Marvin Hagemeister 35b696d870 docs: update canary error handling (#3109) 2025-07-18 18:21:58 +02:00
Marvin Hagemeister 776a275b5d docs: design updates (#3098)
Update colors, spacing and fix the toc animation.
2025-07-16 14:01:30 +02:00
Marvin Hagemeister b00175fafd fix(core): don't rely on strict esbuild version (#3073) 2025-07-02 12:38:42 +02:00
zhizhengand李嘉图·M·路 9eaefd5be0 showcase: add zhi's blog build by fresh (#2918)
Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
2025-05-26 14:13:32 +02:00
Marvin Hagemeister 613c19221f docs: fix dark mode info background (#2991) 2025-05-22 11:52:33 +02:00
Marvin Hagemeister dbb76623a4 Revert "feat: update the tailwind plugin to suuport tailwindv4 #2819 (#2903)" (#2988)
Reverts tailwind v4 update. Something is wrong with the CSS files on
fresh.deno.dev 😢
2025-05-21 16:07:51 +02:00
40e7747228 feat: update the tailwind plugin to suuport tailwindv4 #2819 (#2903)
Inspired by #2819, #2829, and
https://github.com/pakornv/fresh-plugin-tailwindcss, I made minimal
modifications to the plugin-tailwind, I originally intended to update
based on #2829, but I was informed by the system that I couldn't push.

Due to the breaking changes in Tailwind v4, some PostCSS plugins are no
longer required. Additionally, I updated the syntax in the /www
directory. The /www directory now uses the updated plugin supported by
Tailwind v4.I think this has made initial progress.

# What This PR Solves
The Tailwind plugin has been updated to support Tailwind v4, and it is
currently functioning well both in the repository's www directory and in
the initialized project which for test.

## --patch-1

### 1. Dependency Optimization
- Removed `cssnano` dependency, using Tailwind v4's built-in
optimization(Based on @csvn 's suggestion)
- Removed `autoprefixer` dependency
- Updated `tailwind-plugin` version number
### 2. Build Configuration Adjustments
- Added `--node-modules-dir` parameter to `/www` task for Tailwind v4
support (Based on @marvinhagemeister 's suggestion)
- Added `--allow-scripts` parameter to enable `@tailwindcss/oxide`
execution
### 3. Code Adaptation
- Modified Tailwind-related code in `/www` to support Tailwind v4
- Updated dependency configuration in `deno.json`
### 4. Feature Restoration
- Added `imagescript` and `astral` dependencies to restore screenshot
functionality lost in previous PR updates
- Fixed the issue where the `tailwind-plugin` dependency was incorrectly
pointing to the JSR package instead of the local repository source code
in previous PR.

## --patch-2
- Upgraded Tailwind CSS to the latest version.
- Removed unnecessary dependencies.
- Enabled CSS minification by default when Fresh is in production mode.
- Updated docs/canary/examples/migration-guide.md to support the new
Tailwind plugin format.
- Updated init/src/init.ts to support the new Tailwind version and
plugin version, use new `@import "tailwindcss"`, and generate the new
plugin format.
- Updated init/src/init_test.ts: tests now expect `css` to match
`/tailwindcss/` instead of `/@tailwind/`.
- Removed plugin-tailwindcss/src/types.ts as it is no longer needed, and
updated plugin-tailwindcss/src/mod.ts and www/dev.ts to support the new
format.

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

## --patch-3
Addressing @marvinhagemeister feedback, this patch reverts the
unintended loss of PR #2960's changes caused by merge conflicts.

## --patch-4

I initialized a project according to the migration documentation and
used @fresh/update to test whether the plugin works properly with
v2-alpha-34. The results show that it works fine.

- The plugin is published at
jsr:@freshpress/fresh-plugin-tailwind@0.0.1-alpha.8.

- The test project is published at
https://github.com/SisyphusZheng/fresh-project-test/tree/main/fresh-project.

# How Testing Was Conducted

## Local Environment Testing
1. Environment Cleanup
```bash
rm -rf ./.cache/deno deno.lock node_modules
```

2. Test Execution
```bash
deno task www
```

3. Result Verification
- Checked functionality in local `/www` environment
- Confirmed all features working properly

## Code Inspection
- Passed `deno task ok` check

## This forked /www website is hosted and running on GitHub Codespaces,
with support for the latest code changes. You can check it out at:
https://silver-trout-pjr4jw7xx5x9299x6-8000.app.github.dev/

---------

Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
Co-authored-by: deno-deploy[bot] <75045203+deno-deploy[bot]@users.noreply.github.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2025-05-21 16:01:57 +02:00
Marvin Hagemeister d7c9ce9bc5 docs: fix dark mode background flash (#2825)
Fixes
https://github.com/denoland/fresh/issues/2823#issuecomment-2661711235
2025-02-17 10:43:59 +01:00
David MonaghanandMarvin Hagemeister b1f2a989a5 www: docs: feat: add dark mode (#2820)
- Added CSS vars for dark/light colors.
- Added dark/light theme toggle as Island

Fixes #2648

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2025-02-04 11:58:05 +01:00
Mackie Burgess dd555580e1 docs: fix admonition regular expression (#2702)
From #2699, Co-authored by @monooleate

Added `margin-bottom` to better visually align icon with title.
2024-10-10 20:23:08 +02:00
Marvin HagemeisterandLuca Casonato de8f1b0c59 feat: update for Deno 2 (#2655)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-09-30 18:30:30 +02:00
Ryan Blake b5389f69a3 showcase: add wtfiscongressdoingnow.us (#2651)
Just adding in my Deno Fresh project. "WTF Is Congress Doing Now?" is a
non-partisan up-to-date source of bills introduced congress. Information
includes bill metadata, sponsors, links to affected codes and links to
PDF copies of bills.
2024-09-18 17:37:56 +02:00
Trid3r 03ef0e5347 showcase: add Ticoxs (#2636)
Hi everyone
Fresh seemed like a really interesting framework, so I wanted to
contribute in some way.
So, i created this mini-game to showcase the capabilities of Deno and
Fresh.

Although it's currently just a beta but i'm considering increasing the
complexity of the game in the future.
I hope you'll give me the opportunity to set an example and maybe even
inspire someone to create something even bigger.
Thx!
2024-09-05 08:41:12 +02:00
Stephen Melnicki de0b4d2e6e showcase: rename 'Deno Paste' to 'Denopaste' (#2607)
Hello fresh team! 👋 🍋 

I was poking around the fresh canary version and thought I'd try it out
by updating my showcase app, Deno Paste. Super pleased with the canary
updates so far, by the way. Really looking forward to the 2.0 release!

Anyway, while making the update, I decided to rename the title of the
app from "Deno Paste" to "Denopaste" and make some UI changes. Included
here are the updates to the `showcase.json` and some new screenshots.

Thanks!
2024-08-14 09:42:27 +02:00
Hoai Tong Xuan bd16a65587 showcase: add 2coffee's blog (#2608)
Hello!
Thank you to everyone who created this amazing tool. I started from
scratch with Fresh to rebuild this blog. The result is fantastic, it's
very fast and clean. So, I thought I should share it with more people.
Thanks!
2024-07-26 11:27:14 +02:00
Octo8080X 0f83c8b998 showcase: add 'Pile-Up' (#2583)
Hello, Deno team!

I have created a service using Fresh and would like you to register with
showcase.
[Pile-Up](https://pile-up.deno.dev/)

Best regards.
2024-07-08 08:50:35 +02:00
Octo8080X 476b4c75a7 showcase: add 'Thoth-Doc' (#2455)
Hello, Deno team!

I have created document site using Fresh and would like you to register
with showcase.
[Thoth-Doc](https://thoth-doc.deno.dev/)

Best regards.Hello, Deno team!
2024-05-24 19:53:21 +02:00
Marvin Hagemeister 82d027cbcd www: fix fragment links hidden under sticky header (#2457) 2024-05-24 18:01:57 +02:00
Marvin Hagemeister baac482cf0 chore: remove .DS_Store (#2448) 2024-05-22 21:34:33 +02:00
Josh Collinsworth f26e6c778b Add JSR and Deno.com to showcase (#2447) 2024-05-22 14:30:54 -05:00
Josh Collinsworth e126196fe5 Update og image (#2428) 2024-05-17 11:19:23 -05:00
Josh CollinsworthandMarvin 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
Daniel G. Aubert 3b68a5d455 showcase: add dgaubert's showcase (#2422) 2024-05-07 12:38:04 +02:00
epangelias 9c1e5239b6 showcase: Add virtualfreight.software (#2415) 2024-04-29 10:18:05 +02:00
Octo8080X 5865c8246f showcase: fix incorrect repository link + screenshot (#2384)
Hello, Deno team!

The settings were not appropriate and have been corrected.

Best regards.
2024-03-25 15:08:04 +01:00
Stephen Melnicki 2c0a1480d8 showcase: update deno paste (#2378)
Hello fresh team! 👋 🦕 🍋 

I've registered a standalone domain for my showcase application, Deno
Paste, and made a small change to the github repository name.

This pull request updates the `showcase.json` configuration accordingly
and adds some more recent screenshots to boot.

Thanks!
2024-03-25 13:11:53 +01:00
Roj 8187189037 showcase: Remove non-Fresh sites + sites returning errors (#2374)
These items are no longer Fresh.
2024-03-21 11:48:36 +01:00
Adam Zerner 8ffe3d32aa showcase: add rfui.deno.dev (#2205)
Add RFUI (https://rfui.deno.dev/)
2024-01-08 11:03:16 +01:00
Marvin Hagemeister f95df1d7b7 showcase: fix missing screenshots (#2211) 2024-01-04 11:07:06 +01:00
Casey Ydenberg 579709159d showcase: add Living Pixel (#2165) 2023-12-11 18:14:29 +01:00
Marvin Hagemeister de55d80dee docs: improve design (#2097) 2023-11-29 22:50:51 +01:00
Marvin Hagemeister 79fd85ef93 docs: Add migrating to Tailwind CSS page (#2077) 2023-11-28 13:39:05 +01:00
Marvin Hagemeister bb035ae8da docs: port over to TailwindCSS (#2058) 2023-11-22 11:12:21 +01:00
Zbynek Zundalek 15678f8b38 showcase: add MergePanic (#2052) 2023-11-21 11:08:16 +00:00
Jon WrightandJon Wright 1b767233f4 showcase: streamdal.com (#2028)
Co-authored-by: Jon Wright <jon@streamdal.com>
2023-11-08 09:01:03 +00:00
Stephen Melnicki 25470159b1 showcase: update deno paste screenshots (#2029) 2023-11-08 09:52:07 +01:00
Paul Jacks d06f88cd24 showcase: add jacks.se (#2001) 2023-11-03 13:49:14 +00:00
Enric Perpinyà Pitarch 5de34aac93 showcase: add perpinya.eu to the showcase (#1979) 2023-10-30 17:08:28 +00:00
NanoEdit 77ad01d184 showcase: Add CS2 Items (#1968) 2023-10-21 21:09:14 +00:00
Marvin Hagemeister f86a525418 docs: inline gfm-css (#1939) 2023-10-15 08:43:15 +02:00