Skip to content

Commit 02e942a

Browse files
committed
Add description of project to the homepage
Fixes #16
1 parent e6ea6fb commit 02e942a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pages/index.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ export async function getStaticProps() {
8080
};
8181
}
8282

83+
const description = `The Internet's favorite JavaScript syntax highlighter supporting Node.js and the web.`;
84+
8385
const Home = ({ languages, latestVersion, snippets }: Props) => {
8486
const [snipIndex, setSnipIndex] = useState(0);
8587
const [lang, setLang] = useState(languages[snipIndex]);
@@ -96,12 +98,11 @@ const Home = ({ languages, latestVersion, snippets }: Props) => {
9698
}, [snipIndex]);
9799

98100
return (
99-
<MainLayout
100-
description={`A syntax highlighter written in JavaScript supporting ${LANG_COUNT} languages for Node.js and the web.`}
101-
>
101+
<MainLayout description={description}>
102102
<div className="container">
103103
<div className="grid lg:grid-cols-2 gap-8 mb-12">
104104
<div className="flex flex-col justify-center order-2 lg:order-1">
105+
<p className="mb-8 text-lg md:text-xl lg:text-2xl">{description}</p>
105106
<ul className="mb-8 pl-8 lg:pl-6 text-lg md:text-xl lg:text-2xl list-disc md:columns-2 lg:columns-1">
106107
<li>
107108
{LANG_COUNT} languages and {THEME_COUNT} themes

0 commit comments

Comments
 (0)