diff --git a/client/Home.tsx b/client/Home.tsx
index e5479b3..a90be5b 100644
--- a/client/Home.tsx
+++ b/client/Home.tsx
@@ -165,6 +165,7 @@ const Home = () => {
style={{
display: 'flex',
flexWrap: 'wrap',
+ justifyContent: 'center',
opacity: '0.4',
padding: '32px 16px',
}}
diff --git a/client/components/CoverCard.tsx b/client/components/CoverCard.tsx
index b358a41..aa3a81c 100644
--- a/client/components/CoverCard.tsx
+++ b/client/components/CoverCard.tsx
@@ -11,32 +11,31 @@ interface CoverCardProps {
const CoverCard: React.FC
= ({ pattern }) => {
return (
-
-
+
+
-
-
- {pattern}
-
-
-
+ {pattern}
+
+
);
};
diff --git a/client/components/RelatedPatterns.tsx b/client/components/RelatedPatterns.tsx
index c9d4a47..718f6f4 100644
--- a/client/components/RelatedPatterns.tsx
+++ b/client/components/RelatedPatterns.tsx
@@ -13,7 +13,7 @@ const RelatedPatterns: React.FC = ({ patterns }) => {
-
+
{
patterns.map((pattern) =>
)
}
diff --git a/client/components/SampleCode.tsx b/client/components/SampleCode.tsx
index f082e93..c210a4b 100644
--- a/client/components/SampleCode.tsx
+++ b/client/components/SampleCode.tsx
@@ -11,7 +11,10 @@ const SampleCode: React.FC
= ({ code, lang }) => {
return code === ''
? <>>
: (
-
+
);
};
diff --git a/client/helpers/highlight.ts b/client/helpers/highlight.ts
index 81a56a6..44884ce 100755
--- a/client/helpers/highlight.ts
+++ b/client/helpers/highlight.ts
@@ -8,7 +8,7 @@ const highlight = (input: string, language: string) => {
const { value } = hljs.highlight(lang, input);
const highlighted = value.replace('&', '&').trim();
- return `${highlighted}
`;
+ return `${highlighted}
`;
};
export default highlight;
diff --git a/client/index.css b/client/index.css
index 5dc3814..d5c1d82 100644
--- a/client/index.css
+++ b/client/index.css
@@ -2,6 +2,12 @@ body {
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
-webkit-font-smoothing: antialiased;
}
+html, body, div, article, aside, section, main, nav, footer, header, form, fieldset, legend, pre, code, a,
+h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, blockquote, figcaption, figure, textarea,
+table, td, th, tr,
+input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"] {
+ box-sizing: border-box;
+}
.hljs, code {
font-family: 'Source Code Pro', monospace;
}
diff --git a/client/layouts/Layout.tsx b/client/layouts/Layout.tsx
index 474f5f3..37d878d 100644
--- a/client/layouts/Layout.tsx
+++ b/client/layouts/Layout.tsx
@@ -8,7 +8,7 @@ const Layout: React.FC<{}> = ({ children }) => {
}, []);
return (
-
+
{children}
import(`.
const DetailsLoader: LoadableComponent = loadable(loadDetails, {
fallback: (
-
+