@@ -25,11 +25,11 @@ Unofficial Bluesky Profile Cards for Bluesky Friends 🦋
25
25
</style >
26
26
27
27
<!-- Paste wherever you want to render the card -->
28
- <bsky-widget data- handle =" patak.dev" ></bsky-widget >
28
+ <bsky-widget handle =" patak.dev" ></bsky-widget >
29
29
30
30
<!-- Paste before end of body -->
31
31
<script
32
- src =" https://unpkg.com/bsky-widget@~0.0 /dist/index.js"
32
+ src =" https://unpkg.com/bsky-widget@~0.1 /dist/index.js"
33
33
type =" module"
34
34
></script >
35
35
```
@@ -56,16 +56,53 @@ npm install bsky-widget@latest --save
56
56
``` jsx
57
57
import " bsky-widget" ;
58
58
59
- < bsky- widget data - handle= " srbh.dev" >< / bsky- widget> ;
59
+ < bsky- widget handle= " srbh.dev" >< / bsky- widget> ;
60
60
```
61
61
62
62
## Props
63
63
64
- | Prop | Description | Example value |
65
- | :-------------------- | :------------------------------------------------------------- | :-------------------------- |
66
- | data-handle | handle of your bluesky account | "srbh.dev" |
67
- | data-show-description | hide / show your description / bio from profile | "true" (default) or "false" |
68
- | data-show-banner | hide / show your banner (only applicable if you have a banner) | "true" (default) or "false" |
64
+ | Prop | Description | Example value |
65
+ | :--------------- | :------------------------------------------------------------- | :-------------------------- |
66
+ | handle | handle of your bluesky account | "srbh.dev" |
67
+ | show-description | hide / show your description / bio from profile | "true" (default) or "false" |
68
+ | show-banner | hide / show your banner (only applicable if you have a banner) | "true" (default) or "false" |
69
+ | theme | theme of the card (` dark ` , ` dim ` , ` auto ` , ` auto-dim ` , ` light ` ) | "light" |
70
+
71
+
72
+ ## Override Styles
73
+
74
+ You can go ahead and override any of these styles to customize your card further, create custom themes, or adjust the card in your website's layout
75
+
76
+ ``` css
77
+ bsky-widget {
78
+ --bsky-background : #fff ;
79
+ --bsky-primary : #1185fe ;
80
+ --bsky-primary-hover : #4ca2fe ;
81
+ --bsky-text-on-primary : #fff ;
82
+ --bsky-text-on-background : #0b0f14 ;
83
+ --bsky-text-on-background-subtle : #42576c ;
84
+ --bsky-text-large : 1.4rem ;
85
+ --bsky-text-large-line-height : 1.8rem ;
86
+ --bsky-text-medium : 1rem ;
87
+ --bsky-text-small : 0.9rem ;
88
+
89
+ font-family : Arial , Helvetica , sans-serif , -apple-system , sans-serif ;
90
+ width : 350px ;
91
+ max-width : 100% ;
92
+ min-height : 170px ;
93
+ display : inline-block ;
94
+ box-shadow : 1px 1px 8px 1px #0002 ;
95
+ border-radius : 8px ;
96
+ }
97
+ ```
98
+
99
+ ## Migration from v0.0 -> v0.1
100
+
101
+ > [ !Note]
102
+ >
103
+ > You are using v0.0 already? no worries! It's a no breaking change release. Click the link below to see how you can migrate to new version and enjoy new features 🚀
104
+
105
+ Check out the release notes at [ v0.1 Release Notes] ( https://github.com/saurabhdaware/bsky-widget/releases/tag/v0.1.0 )
69
106
70
107
71
108
## CONTRIBUTING
0 commit comments