diff --git a/.changeset/witty-ants-serve.md b/.changeset/witty-ants-serve.md new file mode 100644 index 0000000..4bc1b57 --- /dev/null +++ b/.changeset/witty-ants-serve.md @@ -0,0 +1,5 @@ +--- +'@astro-community/astro-embed-bluesky': patch +--- + +Fixes Bluesky logo and styling of links in posts diff --git a/demo/src/pages/bluesky.astro b/demo/src/pages/bluesky.astro index 3440c81..6742f81 100644 --- a/demo/src/pages/bluesky.astro +++ b/demo/src/pages/bluesky.astro @@ -5,6 +5,7 @@ import post from '../post.json'; --- +

Raw data

@@ -24,3 +25,10 @@ import post from '../post.json';

Starter pack

+
+ diff --git a/package-lock.json b/package-lock.json index 30072de..26af2a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12698,12 +12698,12 @@ } }, "packages/astro-embed": { - "version": "0.8.0", + "version": "0.9.0", "license": "MIT", "dependencies": { "@astro-community/astro-embed-baseline-status": "^0.1.0", - "@astro-community/astro-embed-bluesky": "^0.0.0", - "@astro-community/astro-embed-integration": "^0.7.2", + "@astro-community/astro-embed-bluesky": "^0.1.0", + "@astro-community/astro-embed-integration": "^0.8.0", "@astro-community/astro-embed-link-preview": "^0.2.2", "@astro-community/astro-embed-twitter": "^0.5.6", "@astro-community/astro-embed-vimeo": "^0.3.10", @@ -12726,7 +12726,7 @@ }, "packages/astro-embed-bluesky": { "name": "@astro-community/astro-embed-bluesky", - "version": "0.0.0", + "version": "0.1.0", "license": "MIT", "dependencies": { "@atproto/api": "^0.13.14", @@ -12738,7 +12738,7 @@ }, "packages/astro-embed-integration": { "name": "@astro-community/astro-embed-integration", - "version": "0.7.2", + "version": "0.8.0", "license": "MIT", "dependencies": { "@astro-community/astro-embed-link-preview": "^0.2.0", diff --git a/packages/astro-embed-bluesky/src/post.astro b/packages/astro-embed-bluesky/src/post.astro index 9cb8b59..53c8a05 100644 --- a/packages/astro-embed-bluesky/src/post.astro +++ b/packages/astro-embed-bluesky/src/post.astro @@ -79,6 +79,10 @@ const formatter = new Intl.DateTimeFormat('en-US', { transition: var(--bluesky-card-transition); } + .bluesky-post-container .post-content :global(a) { + text-decoration: none; + } + .post-content { padding: var(--bluesky-space-md) var(--bluesky-space-lg) var(--bluesky-space-sm); @@ -122,7 +126,7 @@ const formatter = new Intl.DateTimeFormat('en-US', { } .bluesky-logo { - height: var(--bluesky-avatar-sm); + height: var(--bluesky-icon-size-lg); transition: transform 0.2s ease; } @@ -139,8 +143,9 @@ const formatter = new Intl.DateTimeFormat('en-US', { color: var(--bluesky-color-text); } - .post-text :global(a) { - color: var(--bluesky-color-text); + .bluesky-post-container .post-text :global(a) { + color: var(--bluesky-color-link); + text-decoration: none; } .timestamp { diff --git a/packages/astro-embed-bluesky/src/styles.css b/packages/astro-embed-bluesky/src/styles.css index 9777ed8..7c84a70 100644 --- a/packages/astro-embed-bluesky/src/styles.css +++ b/packages/astro-embed-bluesky/src/styles.css @@ -2,6 +2,8 @@ /* Colours */ --bluesky-color-overlay: rgba(0, 0, 0, 0.5); + --bluesky-color-link: rgb(59 130 246); + /* Colour palette */ --bluesky-color-text--light: #000000; --bluesky-color-text-secondary--light: rgb(66 87 108);