mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
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:
parent
54c614e116
commit
b479f8bfa5
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user