Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: satnaing/pin-input
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0
Choose a base ref
...
head repository: satnaing/pin-input
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 7 files changed
  • 1 contributor

Commits on Sep 15, 2024

  1. Copy the full SHA
    ac1e0c7 View commit details
  2. Copy the full SHA
    aec34cc View commit details
  3. Copy the full SHA
    94d9b6c View commit details
Showing with 42 additions and 2 deletions.
  1. +8 −0 .cz.yaml
  2. +29 −0 CHANGELOG.md
  3. +1 −1 package.json
  4. BIN public/bg-noise.png
  5. BIN public/bg-noise.webp
  6. +3 −0 src/components/snippet-accordion-item.tsx
  7. +1 −1 src/index.css
8 changes: 8 additions & 0 deletions .cz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
commitizen:
major_version_zero: true
name: cz_conventional_commits
tag_format: $version
update_changelog_on_bump: true
version_provider: npm
version_scheme: semver
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# PinInput React

## 1.0.0 (2024-09-15)

### Feat

- add example section
- **seo**: add OG image and meta tags
- update favicon
- add usage section
- add footer and social links
- add pin-input form component
- add code copy functionality
- implement main layout
- implement theme switch

### Fix

- **a11y**: add sr-only text in copy button
- optimize onComplete/onIncomplete invocation
- update github links

### Refactor

- update snippet accordion

### Perf

- update png background image with webp format
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pin-input",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
Binary file removed public/bg-noise.png
Binary file not shown.
Binary file added public/bg-noise.webp
Binary file not shown.
3 changes: 3 additions & 0 deletions src/components/snippet-accordion-item.tsx
Original file line number Diff line number Diff line change
@@ -43,6 +43,9 @@ export default function SnippetAccordionItem({
className="absolute top-3 right-3 size-8"
onClick={() => setCopied(snippet)}
>
<span className="sr-only">
{copied ? "Code copied" : "Copy code"}
</span>
<IconCheck
size={16}
className={cn(
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@
@apply border-border;
}
body {
@apply bg-background text-foreground bg-[url("/bg-noise.png")] bg-[length:15%] min-h-svh w-full;
@apply bg-background text-foreground bg-[url("/bg-noise.webp")] bg-[length:15%] min-h-svh w-full;
}
body > #root {
@apply h-svh;