@@ -234,7 +232,7 @@ class Index extends React.Component {
Docusaurus is building websites for these projects...
-
-
-
- );
- }
-
render() {
- const fbShowcase = siteConfig.users
- .filter(user => user.fbOpenSource)
- .map((user, i) => this.renderUser(user, i));
-
- const showcase = siteConfig.users
- .filter(user => !user.fbOpenSource)
- .map((user, i) => this.renderUser(user, i));
+ const fbUsersToShowcase = siteConfig.users.filter(
+ user => user.fbOpenSource,
+ );
+ const restToShowcase = siteConfig.users.filter(user => !user.fbOpenSource);
return (
@@ -46,7 +36,7 @@ class Users extends React.Component {
.
-
{fbShowcase}
+
@@ -54,7 +44,7 @@ class Users extends React.Component {
-
{showcase}
+
Is your project using Docusaurus?
diff --git a/v1/website/static/css/custom.css b/v1/website/static/css/custom.css
index 3356af39ee..63660eb610 100644
--- a/v1/website/static/css/custom.css
+++ b/v1/website/static/css/custom.css
@@ -12,3 +12,48 @@
table td:first-child > code {
white-space: nowrap;
}
+
+.showcase {
+ align-items: center;
+ display: flex;
+ flex-flow: row wrap;
+ justify-content: center;
+ margin-bottom: 20px;
+}
+
+.showcase .link {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ height: 180px;
+ margin: 5px;
+ padding: 5px;
+}
+
+.showcase .link:hover {
+ text-decoration: underline;
+}
+
+.showcase .link .caption {
+ line-height: 20px;
+ height: 20px;
+}
+
+.showcase .link img {
+ max-height: 110px;
+ padding: 20px;
+ width: 110px;
+ align-self: center;
+}
+
+@media only screen and (max-width: 735px) {
+ .showcase .link {
+ height: 134px;
+ }
+
+ .showcase .link img {
+ max-height: 64px;
+ padding: 20px;
+ width: 64px;
+ }
+}