Add user survey alert to the top (#12452)

* Add user survey alert to the top

* Shorter

---------

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
Ines Montani 2023-03-22 11:09:37 +01:00 committed by GitHub
parent 54c614e116
commit b479f8bfa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 10 deletions

View File

@ -111,11 +111,12 @@
line-height: var(--line-height-xs) line-height: var(--line-height-xs)
text-align: center text-align: center
@include breakpoint(max, xs) @include breakpoint(max, md)
.list .alert
display: none display: none
.alert @include breakpoint(max, xs)
.list
display: none display: none
.has-alert .has-alert

View File

@ -25,11 +25,6 @@ const AlertSpace = ({ nightly, legacy }) => {
const isOnline = useOnlineStatus() const isOnline = useOnlineStatus()
return ( return (
<> <>
{isOnline && (
<Alert title="💥 We'd love to learn more about your experience with spaCy!">
<Link to="https://form.typeform.com/to/aMel9q9f">Take our survey here.</Link>
</Alert>
)}
{nightly && ( {nightly && (
<Alert <Alert
title="You're viewing the pre-release docs." title="You're viewing the pre-release docs."
@ -62,9 +57,15 @@ const AlertSpace = ({ nightly, legacy }) => {
) )
} }
// const navAlert = (
// <Link to="/usage/v3-5" noLinkLayout>
// <strong>💥 Out now:</strong> spaCy v3.5
// </Link>
// )
const navAlert = ( const navAlert = (
<Link to="/usage/v3-5" noLinkLayout> <Link to="https://form.typeform.com/to/aMel9q9f" noLinkLayout>
<strong>💥 Out now:</strong> spaCy v3.5 <strong>💥 Take the user survey!</strong>
</Link> </Link>
) )