Skip to content

feat(playground): integrate dob-render and simplify tailwind config #191

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 2 commits into from
Mar 23, 2025

Conversation

yixyxiu
Copy link
Contributor

@yixyxiu yixyxiu commented Mar 23, 2025

  • Add @nervina-labs/dob-render library integration
  • Add dob-render type definitions to Editor
  • Simplify tailwind config to include all classes

Example:

import { renderByTokenKey, svgToBase64 } from "@nervina-labs/dob-render";

console.log("Render DOB by dob-ender SDK ");
const tokenKey =
  "672f23dd04031976f6bf05ad6e0ebacb1cdc7d31afd8318ad1474de9ed531b7a";

const svg = await renderByTokenKey(tokenKey);
const img = await svgToBase64(svg);
console.log("Render result:", <img src={img} />);
console.log(
  "Show DOB with custom size, position:", <div className="h-28 w-28 overflow-hidden place-self-center">
    <img src={img} />
  </div>,
);

Screenshot

image

- Add @nervina-labs/dob-render library integration
- Add dob-render type definitions to Editor
- Simplify tailwind config to include all classes
Copy link

changeset-bot bot commented Mar 23, 2025

⚠️ No Changeset found

Latest commit: 3a2c720

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@Hanssen0 Hanssen0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hanssen0 Hanssen0 merged commit ea533c2 into ckb-devrel:master Mar 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants