-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to the latest version of openjscad-react, added more complete…
… example
- Loading branch information
Showing
10 changed files
with
313 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,82 @@ | ||
# openjscad-react-next-starter | ||
<h1 align="center">openjscad-react-next-starter</h1> | ||
|
||
A web starter project with OpenJSCAD, React, Next.js, TypeScript, and Netlify. Built with [openjscad-react](https://github.com/aeksco/openjscad-react). | ||
<div align="center"> | ||
<strong>A React.js + Next.js starter kit for building apps with <a href="https://aeksco.github.io/openjscad-react">openjscad-react</a></strong> | ||
</div> | ||
|
||
<br /> | ||
|
||
<div align="center"> | ||
Write an <code>OpenJSCAD</code> script and wire it up to some inputs to start exporting user-customizable designs | ||
</div> | ||
|
||
<br /> | ||
|
||
<div align="center"> | ||
<!-- GitHub Stars --> | ||
<img src="https://img.shields.io/github/stars/aeksco/openjscad-react-next-starter.svg?style=social&label=Star" alt="GitHub Stars" /> | ||
|
||
<!-- MIT License --> | ||
<img src="https://img.shields.io/apm/l/atomic-design-ui.svg" alt="MIT License" /> | ||
|
||
<!-- Hit Count --> | ||
<img src="http://hits.dwyl.com/aeksco/openjscad-react-next-starter.svg" alt="Hit Count" /> | ||
|
||
<!-- PRs Welcome --> | ||
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="Hit Count" /> | ||
</div> | ||
|
||
<div align="center"> | ||
<h3> | ||
<a href="https://aeksco.github.io/openjscad-react"> | ||
Website | ||
</a> | ||
<span> | </span> | ||
<a href="https://aeksco.github.io/openjscad-react"> | ||
Documentation | ||
</a> | ||
</h3> | ||
</div> | ||
|
||
 | ||
|
||
<hr/> | ||
|
||
## Developing | ||
|
||
- Install dependencies: | ||
|
||
``` | ||
yarn install | ||
``` | ||
|
||
- Build the Next.js project and start the development server: | ||
|
||
``` | ||
yarn build && yarn start | ||
``` | ||
|
||
- Export the Next.js app: | ||
|
||
``` | ||
yarn build && yarn export | ||
``` | ||
|
||
## Built with | ||
|
||
- [React](https://reactjs.org) | ||
- [TypeScript](https://www.typescriptlang.org/) | ||
- [Tailwind CSS](https://tailwindcss.com) | ||
|
||
## Misc. References | ||
|
||
- [openjscad-react](https://github.com/aeksco/openjscad-react) | ||
- [OpenJSCAD Homepage](https://openjscad.org) | ||
- [OpenJSCAD API Reference](https://openjscad.org/dokuwiki/doku.php) | ||
- [JSCAD User Group](https://openjscad.nodebb.com/) | ||
|
||
### License | ||
|
||
Open source under the [MIT License](https://github.com/aeksco/openjscad-react/blob/main/LICENSE). Built with :heart: by [@aeksco](https://github.com/aeksco) | ||
|
||
[](https://twitter.com/intent/tweet?text=https://github.com/aeksco/openjscad-react) |
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
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
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,12 @@ | ||
import * as React from "react"; | ||
|
||
// // // // | ||
|
||
export function FormGroup(props: { label: string; children: React.ReactNode }) { | ||
return ( | ||
<div className="mt-5"> | ||
<p className="font-semibold mb-2">{props.label}</p> | ||
{props.children} | ||
</div> | ||
); | ||
} |
Oops, something went wrong.