100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.

0 downloads

dbbasic-web-native/test-badge-screenshot.py
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-web-native.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-web-native.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-web-native.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add canonical.html v1.0 - The single source of truth for usability standards fb6e650 1 year ago History
test-badge-screenshot.py · 477 bytes · 11 lines
1from playwright.sync_api import sync_playwright
2
3with sync_playwright() as p:
4 browser = p.chromium.launch()
5 page = browser.new_page()
6 page.set_viewport_size({"width": 1280, "height": 2600})
7 page.goto('file:///Users/danq/dbbasic-web-native/test-badge.html')
8 page.wait_for_timeout(1500) # Wait for animations
9 page.screenshot(path='test-badge-screenshot.png', full_page=True)
10 browser.close()
11 print("Screenshot saved to test-badge-screenshot.png")