Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newtonproject/newtonproject-org-website-2.0
newtonproject.org is a primary online resource for the newton community.
https://github.com/newtonproject/newtonproject-org-website-2.0
blockchain gatsby newton react web3
Last synced: about 2 months ago
JSON representation
newtonproject.org is a primary online resource for the newton community.
- Host: GitHub
- URL: https://github.com/newtonproject/newtonproject-org-website-2.0
- Owner: newtonproject
- Created: 2022-06-24T13:14:30.000Z (over 2 years ago)
- Default Branch: devnet
- Last Pushed: 2024-03-06T06:23:49.000Z (11 months ago)
- Last Synced: 2024-04-24T04:29:11.058Z (9 months ago)
- Topics: blockchain, gatsby, newton, react, web3
- Language: TypeScript
- Homepage: https://newtonproject.org
- Size: 95.1 MB
- Stars: 1
- Watchers: 8
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# newton-website-2.0
## 1.Main technology stack
```
Gatsby.js + React + Typescript + Tailwind CSS.
Other tools included: Autoprefixer, Sass, PostCSS, ESLint, Prettier.
```## 2.Create a Gatsby site
```
gatsby new newton-website-2.0
yarn
```## 3.Start
```
cd newton-website-2.0/
yarn start
```## 4.Push
```
yarn ff
yarn build
git push
```## 5. Participate in building internationalization
**a.Project address**
- https://www.newtonproject.org/**b.International Translation Technology**
- gatsby-plugin-intl-v6
- npm Address: https://www.npmjs.com/package/gatsby-plugin-intl-v6**c.Directory of documents placed in the translated language**
- `src/static/intl`
- Create a new json file for the language type in the intl folder, paying particular attention to the fact that the value of the key must not be changed, but must be consistent with the key in the en.json folder.**d.Html Translation of the formed catalogue**
- `src/components/language`
- Append the key value of the translated language type to the language file.**e.Configuration files gatsby-config.js**
- gatsby-config.js
```
{
...
{
resolve: `gatsby-plugin-intl-v6`,
options: {
path: `${__dirname}/src/static/intl`,
languages: [`en`], // add language code.
defaultLanguage: `en`,
redirect: true,
},
}
...
}
```- Add the appropriate language to the `gatsby-config.js` configuration file.
- Add the type of languages in the options of the `gatsby-plugin-intl-v6` configuration.
- The default language of the project is en in `defaultLanguage`, which is `en`.## 6 Deploy
```
docker build -t newton-website .
docker run -dp 8081:80 newton-website
```