-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed my custom css names and used Docusaurus css classes (#291)
* Removed my custom css and used Docusaurus css classes * Improved the elements design of tools and templates cards * Update docusaurus.config.js Rename path "template" -> "resources" * Update and rename template.js to resources.js --------- Co-authored-by: Shalitha Suranga <[email protected]>
- Loading branch information
1 parent
48ea465
commit 7211dad
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import Layout from '@theme/Layout'; | ||
import Link from '@docusaurus/Link'; | ||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; | ||
import styles from './styles.module.css'; | ||
|
||
const templates = [ | ||
{ | ||
title: 'Neutralinojs-React', | ||
description: ( | ||
<> | ||
A simple React.js template for building Neutralinojs apps | ||
</> | ||
), | ||
githubLink: 'https://github.com/codezri/neutralinojs-react' | ||
}, | ||
{ | ||
title: 'Neutralinojs-Minimal', | ||
description: ( | ||
<> | ||
The default template for a Neutralinojs app. | ||
</> | ||
), | ||
githubLink: 'https://github.com/neutralinojs/neutralinojs-minimal' | ||
}, | ||
|
||
|
||
]; | ||
|
||
export default function NeutralinoTools() { | ||
const context = useDocusaurusContext(); | ||
const { siteConfig = {} } = context; | ||
return ( | ||
<Layout | ||
title="Neutralinojs App Developer Resources" | ||
description="Check these Neutralinojs development tools, templates, and learning resources for building high-quality cross-platform apps productively"> | ||
<header className={clsx('hero hero--primary', styles.heroBanner)}> | ||
<div className="container"> | ||
<h1 className="hero__title">{siteConfig.title} app developer resources</h1> | ||
</div> | ||
</header> | ||
<main> | ||
<div className='container' style={{ marginTop: '2rem' }}> | ||
<div className='container'> | ||
<h1>Templates</h1> | ||
<ul className='row'> | ||
{templates.map((template, index) => ( | ||
<li key={index} className={clsx(window.innerWidth <= 768 ? 'col card-demo' : 'card-demo col col--5')} style={{ marginTop: '1rem', marginBottom: '2rem', listStyle: 'none'}}> | ||
<div className='card padding-md' style={{padding: '2rem'}}> | ||
<h3 className={styles.align}>{template.title}</h3> | ||
<p className={styles.align}>{template.description}</p> | ||
<div> | ||
<Link | ||
className={clsx( | ||
'button button--warning button--lg', | ||
)} | ||
to={template.githubLink}> | ||
View Repository | ||
</Link> | ||
</div> | ||
</div> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
</div> | ||
</main> | ||
</Layout> | ||
); | ||
} |