Skip to content

feat: added playgrounds page #4551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 48 commits into from
Jul 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
6d72b42
feat: align how to use a DBCard as button or anchor
nmerget Jul 9, 2025
9b74f0b
Merge branch '3.0-release' into feat-card-inside-button
nmerget Jul 9, 2025
4fe9e4a
auto update snapshots (#4507)
github-actions[bot] Jul 9, 2025
41f2947
chore: update interactive card
nmerget Jul 11, 2025
5ea2877
auto update snapshots (#4525)
github-actions[bot] Jul 11, 2025
89fa873
Merge branch '3.0-release' into feat-card-inside-button
nmerget Jul 15, 2025
ae7560d
Update docs/migration/v2.x.x-to-v3.0.0.md
nmerget Jul 16, 2025
af2a3b7
Update docs/migration/v2.x.x-to-v3.0.0.md
nmerget Jul 16, 2025
506e194
Update showcases/vue-showcase/src/components/card/Card.vue
nmerget Jul 16, 2025
f3e29c2
Update showcases/react-showcase/src/components/card/index.tsx
nmerget Jul 16, 2025
2591024
Update showcases/angular-showcase/src/app/components/card/card.compon…
nmerget Jul 16, 2025
acc2c73
feat: add auto interactive mode when wrapping card in button or anchor
nmerget Jul 16, 2025
a9d2eac
fix: linting issue
nmerget Jul 16, 2025
9c5665e
feat: added playground page (#4543)
mfranzke Jul 16, 2025
1c34736
Revert "feat: added playground page (#4543)"
mfranzke Jul 16, 2025
52c8917
Revert "chore: update lint-staged config (#4500)" (#4550)
mfranzke Jul 16, 2025
b270eef
docs: added playground page
mfranzke Jul 16, 2025
2a72ce6
chore: run format
nmerget Jul 17, 2025
97641b7
Merge remote-tracking branch 'origin/feat-card-inside-button' into fe…
nmerget Jul 17, 2025
40886b8
fix: linting issue
nmerget Jul 17, 2025
ee845a1
auto update snapshots (#4558)
github-actions[bot] Jul 17, 2025
2a6d0f1
Apply suggestions from code review
mfranzke Jul 17, 2025
b44f6ed
Update index.mdx
mfranzke Jul 17, 2025
9629494
refactor: restructured the pages structure
mfranzke Jul 17, 2025
0b366b4
refactor: more contents
mfranzke Jul 17, 2025
ffb6770
style: optimizations
mfranzke Jul 17, 2025
fd6e125
Update v2.x.x-to-v3.0.0.md
mfranzke Jul 17, 2025
775c114
refactor: prettier
mfranzke Jul 17, 2025
df2d645
refactor: running prettier
mfranzke Jul 17, 2025
5cd00c0
Merge branch 'feat-card-inside-button' into feat-added-playground-pag…
mfranzke Jul 17, 2025
a1e0510
Update .jscpd.json
mfranzke Jul 17, 2025
3be6df2
Update playgrounds.scss
mfranzke Jul 17, 2025
933fad1
auto update snapshots (#4563)
github-actions[bot] Jul 17, 2025
5ae3d04
Merge branch 'feat-card-inside-button' into feat-added-playground-pag…
mfranzke Jul 17, 2025
1a1d77d
Merge remote-tracking branch 'origin/3.0-release' into feat-card-insi…
nmerget Jul 18, 2025
f173b4c
fix: issue with vue showcase
nmerget Jul 18, 2025
c9687d5
Merge branch 'feat-card-inside-button' into feat-added-playground-pag…
mfranzke Jul 18, 2025
50cef3f
refactor: some optimizations
mfranzke Jul 18, 2025
3260b48
refactor: further optimizations
mfranzke Jul 18, 2025
e0b3ee7
style: added general tokens
mfranzke Jul 18, 2025
fbb642c
style: optimization
mfranzke Jul 18, 2025
4df2a02
Merge branch '3.0-release' into feat-card-inside-button
mfranzke Jul 18, 2025
d1f8b92
refactor: reformatting
mfranzke Jul 18, 2025
6eabe1f
Merge branch 'feat-card-inside-button' into feat-added-playground-pag…
mfranzke Jul 18, 2025
4aebcd2
Merge branch '3.0-release' into feat-added-playground-page-new
nmerget Jul 21, 2025
65542b1
refactor: using a variable
mfranzke Jul 21, 2025
f7987c1
auto update snapshots (#4584)
github-actions[bot] Jul 21, 2025
b464d3f
Merge branch '3.0-release' into feat-added-playground-page-new
mfranzke Jul 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/.jscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"reporters": ["console"],
"minTokens": 65,
"ignore": [
"showcases/patternhub/public/assets/images/*.svg",
"**/.angular/**",
".history/**",
"**/__snapshots__/**",
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ body:
value: |
Thank you for taking the time to fill out this bug report! Feedback from the community is highly valuable to us, as it helps improve our work and benefits all users. 🙂

We would be more than happy if you could share a URL if the problem occurs in our [documentation](https://design-system.deutschebahn.com/core-web/), or at least some code. Even better would be a [working example on StackBlitz or CodeSandbox](https://design-system.deutschebahn.com/core-web/version/latest/foundations/playgrounds). Please keep in mind not to share any internal information or data this way. This includes internal URLs. Only use sample material.

- type: checkboxes
id: component
attributes:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/foundations/scss/defaults/default-code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pre:not([class]):has(code) {
}
}

a:has(code:not([class])) {
a:has(code:not([class]):only-child) {
background-color: colors.$db-adaptive-bg-inverted-contrast-max-default;
color: colors.$db-adaptive-on-bg-inverted-default;

Expand Down
3 changes: 2 additions & 1 deletion showcases/patternhub/data/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ export const ROUTES: NavigationItem[] = [
]
}
]
}
},
{ label: 'Playgrounds', path: '/foundations/playgrounds' }
];

const fillNavigationRecursive = (
Expand Down
1 change: 1 addition & 0 deletions showcases/patternhub/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import LinkHeader from '../components/link-header';
import '../styles/decision-tree.scss';
import '../styles/globals.scss';
import '../styles/highlight.scss';
import '../styles/playgrounds.scss';

const App = ({ Component, pageProps }: AppProps) => (
<MDXProvider
Expand Down
86 changes: 86 additions & 0 deletions showcases/patternhub/pages/foundations/playgrounds/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import DefaultPage from "../../../components/default-page";
import { DBCard } from "../../../../../output/react/src";

# Playgrounds

You can try out our components on StackBlitz or CodeSandbox without downloading or installing anything on your local machine.

We would also appreciate it if you could provide a working example when opening an issue in our repository. Please keep in mind not to share any internal information or data this way, not even in screenshots. This includes internal URLs. Only use sample material.

<section class="playground">

## CodeSandbox

<a href="https://codesandbox.io/s/github/db-ux-design-system/examples/tree/main/react-example">
<DBCard behavior="interactive">
![](/assets/images/react-showcase.svg)
<strong>React 18</strong>
React app including `@db-ux/react-core-components`
</DBCard>
</a>

<a href="https://codesandbox.io/s/github/db-ux-design-system/examples/tree/main/vue-example">
<DBCard behavior="interactive">
![](/assets/images/vue-showcase.svg)
<strong>Vue 3</strong>
Vue app including `@db-ux/v-core-components`
</DBCard>
</a>

<a href="https://codesandbox.io/s/github/db-ux-design-system/examples/tree/main/angular17-example">
<DBCard behavior="interactive">
![](/assets/images/angular-showcase.svg)
<strong>Angular 17</strong>
Angular app including `@db-ux/ngx-core-components`
</DBCard>
</a>

<a href="https://codesandbox.io/s/github/db-ux-design-system/examples/tree/main/react-tailwind-template">
<DBCard behavior="interactive">
![](/assets/images/react-wind-showcase.svg)
<strong>React 18 + tailwind</strong>
React + tailwind app including `@db-ux/react-core-components`
</DBCard>
</a>

</section>

<section class="playground">

## StackBlitz

<a href="https://stackblitz.com/fork/github/db-ux-design-system/examples/tree/main/react-example?file=index.html">
<DBCard behavior="interactive">
![](/assets/images/react-showcase.svg)
<strong>React 18</strong>
React app including `@db-ux/react-core-components`
</DBCard>
</a>

<a href="https://stackblitz.com/fork/github/db-ux-design-system/examples/tree/main/vue-example?file=index.html">
<DBCard behavior="interactive">
![](/assets/images/vue-showcase.svg)
<strong>Vue 3</strong>
Vue app including `@db-ux/v-core-components`
</DBCard>
</a>

<a href="https://stackblitz.com/fork/github/db-ux-design-system/examples/tree/main/angular17-example?file=index.html">
<DBCard behavior="interactive">
![](/assets/images/angular-showcase.svg)
<strong>Angular 17</strong>
Angular app including `@db-ux/ngx-core-components`
</DBCard>
</a>

<a href="https://stackblitz.com/fork/github/db-ux-design-system/examples/tree/main/react-tailwind-template?file=index.html">
<DBCard behavior="interactive">
![](/assets/images/react-wind-showcase.svg)
<strong>React 18 + tailwind</strong>
React + tailwind app including `@db-ux/react-core-components`
</DBCard>
</a>

</section>

export default ({ children }) => <DefaultPage>{children}</DefaultPage>;
87 changes: 87 additions & 0 deletions showcases/patternhub/public/assets/images/angular-showcase.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Angular logo retrieved from URL: https://angular.io/assets/images/logos/angular/angular.svg
97 changes: 97 additions & 0 deletions showcases/patternhub/public/assets/images/react-showcase.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
React logo retrieved from URL: https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg
Loading
Loading