diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index e80f4018b33..66c9f6ea447 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -67,6 +67,12 @@ const config: Config = { { to: '/docs/support-us/', 'aria-label': 'Support us', label: '❤️' }, { to: '/blog', label: 'Blog', position: 'right' }, { href: 'https://fast-check.dev/api-reference/index.html', label: 'API', position: 'right' }, + { + href: 'https://bsky.app/profile/fast-check.dev', + 'aria-label': 'Bluesky account', + position: 'right', + className: 'header-bluesky-link', + }, { href: 'https://github.com/dubzzz/fast-check', 'aria-label': 'GitHub repository', diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 9453153d800..e08220fb7e4 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -32,6 +32,32 @@ --fc-banner-background-color: rgb(52, 61, 220); } +.header-bluesky-link:hover { + opacity: 0.6; +} + +.header-bluesky-link::before { + content: ''; + width: 24px; + height: 24px; + display: flex; + background: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 530' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z'/%3E%3C/svg%3E") + no-repeat; + background-position: center; +} + +[data-theme='dark'] .header-bluesky-link::before { + background: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 530' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z'/%3E%3C/svg%3E") + no-repeat; +} + +@media screen and (max-width: 996px) { + .header-bluesky-link::after { + content: 'Bluesky'; + padding-left: 0.2em; + } +} + .header-github-link:hover { opacity: 0.6; }