diff --git a/website/src/components/accordion.js b/website/src/components/accordion.js index 504f415a5..9ff145bd2 100644 --- a/website/src/components/accordion.js +++ b/website/src/components/accordion.js @@ -33,7 +33,7 @@ export default function Accordion({ title, id, expanded = false, spaced = false, event.stopPropagation()} > ¶ diff --git a/website/src/components/card.js b/website/src/components/card.js index 3e973daae..ef43eb866 100644 --- a/website/src/components/card.js +++ b/website/src/components/card.js @@ -11,7 +11,7 @@ export default function Card({ title, to, image, header, small, onClick, childre return (
{label}
)}
-
+
{title}
diff --git a/website/src/components/link.js b/website/src/components/link.js
index 1562a82c8..c8de617fe 100644
--- a/website/src/components/link.js
+++ b/website/src/components/link.js
@@ -26,7 +26,7 @@ export default function Link({
to,
href,
onClick,
- hidden = false,
+ noLinkLayout = false,
hideIcon = false,
ws = false,
forceExternal = false,
@@ -36,10 +36,10 @@ export default function Link({
const dest = to || href
const external = forceExternal || /(http(s?)):\/\//gi.test(dest)
const icon = getIcon(dest)
- const withIcon = !hidden && !hideIcon && !!icon && !isImage(children)
+ const withIcon = !noLinkLayout && !hideIcon && !!icon && !isImage(children)
const sourceWithText = withIcon && isString(children)
const linkClassNames = classNames(classes.root, className, {
- [classes.hidden]: hidden,
+ [classes['no-link-layout']]: noLinkLayout,
[classes.nowrap]: (withIcon && !sourceWithText) || icon === 'network',
[classes['with-icon']]: withIcon,
})
@@ -97,7 +97,7 @@ Link.propTypes = {
to: PropTypes.string,
href: PropTypes.string,
onClick: PropTypes.func,
- hidden: PropTypes.bool,
+ noLinkLayout: PropTypes.bool,
hideIcon: PropTypes.bool,
ws: PropTypes.bool,
className: PropTypes.string,
diff --git a/website/src/components/navigation.js b/website/src/components/navigation.js
index 4d8f0d091..b267252ac 100644
--- a/website/src/components/navigation.js
+++ b/website/src/components/navigation.js
@@ -30,7 +30,7 @@ const NavigationDropdown = ({ items = [], section }) => {
export default function Navigation({ title, items = [], section, search, alert, children }) {
const logo = (
-
+
{title}
@@ -57,7 +57,7 @@ export default function Navigation({ title, items = [], section, search, alert,
})
return (
-
+
{text}
diff --git a/website/src/components/readnext.js b/website/src/components/readnext.js
index 09c0e4655..159a4d370 100644
--- a/website/src/components/readnext.js
+++ b/website/src/components/readnext.js
@@ -9,15 +9,15 @@ import classes from '../styles/readnext.module.sass'
export default function ReadNext({ title, to }) {
return (
-
-
+
+
{title}
-
-
-
-
-
+
+
+
+
)
}
diff --git a/website/src/styles/link.module.sass b/website/src/styles/link.module.sass
index 41781538b..cb7dc7910 100644
--- a/website/src/styles/link.module.sass
+++ b/website/src/styles/link.module.sass
@@ -7,7 +7,7 @@
&:hover
color: var(--color-front)
-.hidden
+.no-link-layout
border: none
color: inherit
diff --git a/website/src/templates/universe.js b/website/src/templates/universe.js
index 73dde219c..e72356924 100644
--- a/website/src/templates/universe.js
+++ b/website/src/templates/universe.js
@@ -94,14 +94,14 @@ const UniverseContent = ({ content = [], categories, theme, pageContext, mdxComp
)
return cover ? (
+
-
+
{/* eslint-disable-next-line @next/next/no-img-element */}
) : data.id === 'videos' ? (
-
+
{header}
{title}
@@ -216,7 +216,7 @@ const Project = ({ data, components }) => (
{data.spacy_version && }
{data.github && (
-
+
(
{data.author_links && data.author_links.twitter && (
@@ -313,14 +313,14 @@ const Project = ({ data, components }) => (
{data.author_links && data.author_links.github && (
)}
{data.author_links && data.author_links.website && (
-
+
)}
diff --git a/website/src/widgets/styleguide.js b/website/src/widgets/styleguide.js
index 8b3d3eeec..82edf7d61 100644
--- a/website/src/widgets/styleguide.js
+++ b/website/src/widgets/styleguide.js
@@ -76,7 +76,7 @@ export const Patterns = () => {
by
-
+
Kemal Şanlı