You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, follow the instructions of `create-react-router` to set up your project.
@@ -49,4 +53,23 @@ Arguments that can help you decide between SSR and CSR:
49
53
-**Development Experience**: If you are more comfortable with client-side rendering and have experience with it, CSR may be a better choice.
50
54
-**Ecosystem**: If you are already using a lot of client-side libraries and frameworks, switching to SSR might require a bit of mental gymnastics.
51
55
52
-
In the end, both SSR and CSR have their pros and cons and both approaches can be used to create the same application and features. If you feel more comfortable with one approach over the other, this could be an additional argument to base a decision on. As always, it depends.
56
+
In the end, both SSR and CSR have their pros and cons and both approaches can be used to create the same application and features. If you feel more comfortable with one approach over the other, this could be an additional argument to base a decision on. As always, it depends.
57
+
58
+
## But I want Shadcn UI because DaisyUI is not my jam! :`(
59
+
60
+
If you need more complex components, have a look at any headless UI library that provides good accessibility and style the components using daisyUI theme definitions and classes.
61
+
62
+
For example:
63
+
64
+
-**[Radix UI](https://www.radix-ui.com/)** - you can easily modify most Shadcn UI components because they heavily rely on Radix UI components. Copy them over, install the radix components they require and style them using daisyUI classes.
65
+
-**[Headless UI](https://headlessui.dev/)** - Another great library that provides unstyled, fully accessible UI components designed to integrate beautifully with Tailwind CSS.
66
+
-**[React Aria](https://react-spectrum.adobe.com/react-aria/)** - React components that provide accessible UI primitives for your design system.
67
+
68
+
For more specific and advanced components like date pickers, sliders, you can refer to the ones utilised by ShadCN UI and style them easily to fit your needs.
69
+
70
+
Or you rip out the DaisyUI theme and replace it with Shadcn UI theming and components. This is a bit more work but still possible. We suggest starting with DaisyUI and implementing headless components gradually, as needed, styling them on the go.
71
+
72
+
Another great option depending on your use case is [PrimeReact](https://primereact.org), which also comes with its own theme.
73
+
74
+
## Contributing
75
+
We welcome contributions to this project! If you have suggestions, improvements, or bug fixes, please feel free to open an issue or submit a pull request.
- name: Trying to install dependencies and build the application
20
+
run: |
21
+
yarn --version
22
+
yarn install
23
+
yarn run build
24
+
25
+
# notify:
26
+
# needs: build
27
+
# if: always()
28
+
# runs-on: ubuntu-latest
29
+
# steps:
30
+
# - name: Set Status Message
31
+
# id: set_status
32
+
# shell: bash
33
+
# run: |
34
+
# if [ "${{ needs.build.result }}" == "success" ]; then
35
+
# echo "STATUS_MESSAGE=Successfully built the app for the latest commit on main :white_check_mark:" >> $GITHUB_ENV
36
+
# else
37
+
# echo "STATUS_MESSAGE=:boom: :boom: :boom: Building the app based on the latest commit on main failed, more information is available in the GitHub action logs." >> $GITHUB_ENV
Copy file name to clipboardExpand all lines: packages/csr-daisyui/public/md-content/home.de.md
+22-24Lines changed: 22 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,49 +5,46 @@
5
5
Diese Starter-Vorlage wurde mit folgenden Technologien erstellt:
6
6
7
7
-**TypeScript**: Für typsichere JavaScript-Entwicklung
8
-
-**[React Router 7](https://reactrouter.com)**: Framework-Modus, konfiguriert für serverseitiges Rendering (SSR)
8
+
-**[React Router 7](https://reactrouter.com)**: Im Library-Modus, konfiguriert für Client-Side Rendering (CSR)
9
9
-**[React 19](https://react.dev/reference/react)**: Die neueste Version von React
10
10
-**[Tailwind 4](https://tailwindcss.com/docs/installation/using-vite)**: Für Utility-First CSS-Styling
11
-
-**[Vite](https://vite.dev/guide/)**: Für schnelle Entwicklung und Bauzeiten
11
+
-**[Vite](https://vite.dev/guide/)**: Für schnelle Entwicklung und Build-Zeiten
12
12
13
-
Bemerkenswerte Bibliotheken und Tools in diesem Projekt:
13
+
Bibliotheken und Tools in diesem Projekt:
14
14
15
-
-**[remix-i18next](https://sergiodxa.github.io/remix-i18next/)**: Internationalisierungs-Framework für mehrsprachige Unterstützung
16
-
-**[daisyui](https://daisyui.com/)**: Tailwind CSS-Komponentenbibliothek für minimalistische UI-Komponenten, die so nah wie möglich am Standard-HTML sind, und ausgearbeitetes Theming (siehe `/app/styles/tailwind.css`)
15
+
-**[react-i18next](https://react.i18next.com)**: Internationalisierungs-Framework für mehrsprachige Unterstützung
16
+
-**[daisyui](https://daisyui.com/)**: Tailwind CSS-Komponentenbibliothek für minimalistische UI-Komponenten, die so nah wie möglich an Vanilla-HTML sind, mit umfangreichen Theming-Möglichkeiten (siehe `/app/styles/tailwind.css`)
17
17
-**[class-variance-authority](https://cva.style)**: Für die Erstellung flexibler Komponentenvarianten
18
-
-**[remix-hook-form](https://github.com/forge-42/remix-hook-form)**: Zur Formularverarbeitung, mit `zod` für die Validierung
19
-
-**react-markdown**: Zum Rendern von Markdown-Inhalten in React
18
+
-**[react-hook-form](https://www.react-hook-form.com)**: Für Formularverarbeitung mit `zod` für die Validierung
19
+
-**react-markdown**: Für das Rendern von Markdown-Inhalten in React
20
20
-**lucide-react**: Alle Icons, die Sie wahrscheinlich jemals benötigen werden
21
21
-**@uidotdev/usehooks**: Eine Sammlung nützlicher React-Hooks
22
22
-**lodash-es**: Für Hilfsfunktionen
23
23
24
-
Weitere erwähnenswerte Aspekte:
24
+
Weitere erwähnenswerte Funktionen:
25
25
26
-
-**Selbst gehostete Schriftarten**: Open Sans vorinstalliert und einsatzbereit als Beispiel für
27
-
selbst gehostete Schriftarten. Die Schriftartendateien befinden sich in `/public/assets/open-sans/` und die CSS-
28
-
Datei befindet sich in `/app/styles/fonts.css`. Sie können Ihre eigenen Schriftarten hinzufügen, indem Sie
29
-
dieselbe Struktur befolgen.
30
-
-**[Plausible.io](https://plausible.io/) Integration**: Einsatzbereit mit
31
-
[Plausible](https://plausible.io/) für Analysen, Seitenaufrufe und Ereignisse; sowohl auf Server- als auch auf Client-Seite. Die Integration befindet sich in `/app/lib/plausible/`. Sie können Ihre eigene Plausible-Domain hinzufügen, indem Sie
32
-
die .env-Datei bearbeiten, wenn Sie selbst hosten. Ereignisse werden immer nur an eine enthaltene API-Route gesendet, damit Sie die Ereigniserfassung auf derselben Domain wie Ihre App ausführen können.
26
+
-**Selbstgehostete Schriften**: Open Sans vorinstalliert und einsatzbereit als Beispiel für
27
+
selbstgehostete Schriften. Die Schriftdateien befinden sich in `/public/assets/open-sans/` und die CSS-Datei
28
+
in `/app/styles/fonts.css`. Sie können Ihre eigenen Schriften hinzufügen, indem Sie
29
+
die gleiche Struktur befolgen.
30
+
-**[Plausible.io](https://plausible.io/) Integration**: Bereit zur Nutzung mit
31
+
[Plausible](https://plausible.io/) für Analytics, Seitenaufrufe und Events auf der Clientseite. Die Integration befindet sich in `/app/lib/plausible/`. Sie können Ihre eigene Plausible-Domain durch
32
+
Bearbeitung der .env-Datei festlegen, wenn Sie selbst hosten.
33
33
-**Eslint, Prettier**: Vorkonfiguriert mit sinnvollen Standardeinstellungen für TypeScript und React. Sie können
34
-
die Konfigurationsdateien nach Belieben anpassen. Das Projekt verwendet die von `@epic-web/config` bereitgestellten Voreinstellungen.
34
+
die Konfigurationsdateien nach Ihren Vorlieben anpassen. Das Projekt verwendet die von `@epic-web/config` bereitgestellten Voreinstellungen.
35
35
36
36
## Projektstruktur
37
37
38
-
-`/app/`: Hauptanwendungsverzeichnis
38
+
-`/app/`: Hauptverzeichnis der Anwendung
39
39
-`/components/`: Wiederverwendbare UI-Komponenten
40
40
-`/typography/`: Allgemeine Typografie-Komponenten wie Überschriften, Absätze usw.
41
-
-`/theme/`: Layout- und Theming-Komponenten, Kopfzeile, Fußzeile usw.
42
-
-`/ui/`: UI-Komponenten wie Schaltflächen, Eingabefelder usw.
43
-
-`/routes/`: Routenkomponenten und Seitendefinitionen
44
-
-`/files/`: Allgemeine dateibasierte Routen
45
-
-`/api/`: Routen, die nur API-Anfragen verarbeiten
41
+
-`/theme/`: Layout- und Theming-Komponenten, Header, Footer usw.
42
+
-`/ui/`: UI-Komponenten wie Buttons, Eingabefelder usw.
43
+
-`/routes/`: Routen-Komponenten und Seitendefinitionen
-`/styles/`: Globale Stile und CSS-Dateien für Tailwind
50
-
-`/middleware/`: React Router Middleware
51
48
-`/public/`: Statische Assets
52
49
53
50
## Entwicklung
@@ -58,6 +55,7 @@ yarn run build # Projekt bauen
58
55
yarn run up # Abhängigkeiten aktualisieren
59
56
yarn run i18n:extract # i18n-Schlüssel und Standardwerte extrahieren
60
57
```
58
+
61
59
## Bereitstellung
62
60
63
-
Sie können das enthaltene Dockerfile verwenden, um das Projekt zu bauen und bereitzustellen. Das Dockerfile befindet sich im Stammverzeichnis des Projekts. Das Projekt enthält auch eine Build-Pipeline für GitHub, um ein Image auf ghcr.io zu speichern.
61
+
Sie können das enthaltene Dockerfile verwenden, um das Projekt zu erstellen und bereitzustellen. Es startet einen Caddy-Webserver beim Start und stellt die App auf einer Domain bereit, die in der Caddyfile definiert ist. Das Dockerfile und die Caddyfile befinden sich im Wurzelverzeichnis des Projekts. Das Projekt enthält auch eine Build-Pipeline für GitHub, um ein Image auf ghcr.io zu speichern.
Copy file name to clipboardExpand all lines: packages/csr-daisyui/public/md-content/home.en.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,17 @@
5
5
This starter template is built using the following technologies:
6
6
7
7
-**TypeScript**: For type-safe JavaScript development
8
-
-**[React Router 7](https://reactrouter.com)**: Framework mode, configured for server-side rendering (SSR)
8
+
-**[React Router 7](https://reactrouter.com)**: Library mode, configured for client-side rendering (CSR)
9
9
-**[React 19](https://react.dev/reference/react)**: The latest version of React
10
10
-**[Tailwind 4](https://tailwindcss.com/docs/installation/using-vite)**: For utility-first CSS styling
11
11
-**[Vite](https://vite.dev/guide/)**: For fast development and build times
12
12
13
13
Notable libraries and tools used in this project include:
14
14
15
-
-**[remix-i18next](https://sergiodxa.github.io/remix-i18next/)**: Internationalization framework for multi-language support
15
+
-**[react-i18next](https://react.i18next.com)**: Internationalization framework for multi-language support
16
16
-**[daisyui](https://daisyui.com/)**: Tailwind CSS component library for minimalistic UI components as close as possible to vanilla HTML and elaborate theming (see `/app/styles/tailwind.css`)
17
17
-**[class-variance-authority](https://cva.style)**: For creating flexible component variants
18
-
-**[remix-hook-form](https://github.com/forge-42/remix-hook-form)**: For form handling, using `zod` for validation
18
+
-**[react-hook-form](https://www.react-hook-form.com)**: For form handling, using `zod` for validation
19
19
-**react-markdown**: For rendering Markdown content in React
20
20
-**lucide-react**: All the icons you will probably ever need
21
21
-**@uidotdev/usehooks**: A collection of useful React hooks
@@ -28,8 +28,8 @@ Other notable mentions:
28
28
file is located in `/app/styles/fonts.css`. You can add your own fonts by
29
29
following the same structure.
30
30
-**[Plausible.io](https://plausible.io/) Integration**: Ready to use with
31
-
[Plausible](https://plausible.io/) for analytics, page views and events; on the server and client side. The integration is located in `/app/lib/plausible/`. You can add your own Plausible domain by
32
-
editing the .env file if you're self-hosting. Events are only ever sent to an included api route so you can run event collection on the same domain as your app.
31
+
[Plausible](https://plausible.io/) for analytics, page views and events; on the client side. The integration is located in `/app/lib/plausible/`. You can add your own Plausible domain by
32
+
editing the .env file if you're self-hosting.
33
33
-**Eslint, Prettier**: Preconfigured with sensible defaults for TypeScript and React. You can
34
34
customize the configuration files to your liking. The project uses the presets provided by `@epic-web/config`.
35
35
@@ -41,13 +41,10 @@ Other notable mentions:
41
41
-`/theme/`: Layout and theming components, header, footer, etc.
42
42
-`/ui/`: UI components like buttons, inputs, etc.
43
43
-`/routes/`: Route components and page definitions
44
-
-`/files/`: Common file based routes
45
-
-`/api/`: Routes that are only handling API requests
46
44
-`/lib/`: Utility functions, API clients, helpers, ...
47
45
-`/hooks/`: Custom React hooks
48
46
-`/config/`: Various configuration files
49
47
-`/styles/`: Global styles and CSS files for tailwind
50
-
-`/middleware/`: React Router middleware
51
48
-`/public/`: Static assets
52
49
53
50
## Development
@@ -61,4 +58,4 @@ yarn run i18n:extract # extract i18n keys and default values
61
58
62
59
## Deployment
63
60
64
-
You can use the included Dockerfile to build and deploy the project. The Dockerfile is located in the root of the project. The project also includes a build pipeline for GitHub to store an image on ghcr.io.
61
+
You can use the included Dockerfile to build and deploy the project. It will start a caddy webserver when launched and serve the app on a domain that is defined in the `Caddyfile`. The `Dockerfile` and `Caddyfile` are located in the root of the project. The project also includes a build pipeline for GitHub to store an image on ghcr.io.
Copy file name to clipboardExpand all lines: packages/ssr-daisyui/app/md-content/home.de.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Diese Starter-Vorlage wurde mit folgenden Technologien erstellt:
10
10
-**[Tailwind 4](https://tailwindcss.com/docs/installation/using-vite)**: Für Utility-First CSS-Styling
11
11
-**[Vite](https://vite.dev/guide/)**: Für schnelle Entwicklung und Bauzeiten
12
12
13
-
Bemerkenswerte Bibliotheken und Tools in diesem Projekt:
13
+
Bibliotheken und Tools in diesem Projekt:
14
14
15
15
-**[remix-i18next](https://sergiodxa.github.io/remix-i18next/)**: Internationalisierungs-Framework für mehrsprachige Unterstützung
16
16
-**[daisyui](https://daisyui.com/)**: Tailwind CSS-Komponentenbibliothek für minimalistische UI-Komponenten, die so nah wie möglich am Standard-HTML sind, und ausgearbeitetes Theming (siehe `/app/styles/tailwind.css`)
0 commit comments