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 9eb597b7b..f07e2d375 100644 --- a/website/src/components/card.js +++ b/website/src/components/card.js @@ -10,7 +10,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 0f9753a87..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.noLinkLayout]: 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..00eabb278 100644
--- a/website/src/components/readnext.js
+++ b/website/src/components/readnext.js
@@ -10,11 +10,11 @@ import classes from '../styles/readnext.module.sass'
export default function ReadNext({ title, to }) {
return (
-
+
{title}
-
+
diff --git a/website/src/templates/universe.js b/website/src/templates/universe.js
index fcd433823..4d65ba569 100644
--- a/website/src/templates/universe.js
+++ b/website/src/templates/universe.js
@@ -93,14 +93,14 @@ const UniverseContent = ({ content = [], categories, theme, pageContext, mdxComp
)
return cover ? (
-
+
{/* eslint-disable-next-line @next/next/no-img-element */}
) : data.id === 'videos' ? (
-
+
{header}
{title}
@@ -202,7 +202,7 @@ const Project = ({ data, components }) => (
{data.spacy_version && }
{data.github && (
-
+
{[
`release/${data.github}/all.svg?style=flat-square`,
`license/${data.github}.svg?style=flat-square`,
@@ -293,7 +293,7 @@ const Project = ({ data, components }) => (
{data.author_links && data.author_links.twitter && (
@@ -302,14 +302,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 c12d6d38c..b171eb20f 100644
--- a/website/src/widgets/styleguide.js
+++ b/website/src/widgets/styleguide.js
@@ -76,7 +76,7 @@ export const Patterns = () => {
by
-
+
Kemal Şanlı