Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iteam1337/iteam-next-site
Our official website
https://github.com/iteam1337/iteam-next-site
Last synced: about 5 hours ago
JSON representation
Our official website
- Host: GitHub
- URL: https://github.com/iteam1337/iteam-next-site
- Owner: Iteam1337
- Created: 2021-04-17T13:07:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T08:04:50.000Z (about 1 year ago)
- Last Synced: 2024-04-14T11:04:21.903Z (7 months ago)
- Language: JavaScript
- Homepage: https://iteam.se
- Size: 98.5 MB
- Stars: 3
- Watchers: 5
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Iteam new website 2021
![Vercel](https://vercelbadge.vercel.app/api/iteam1337/iteam-next-site)
Hi! This is Iteam's official website based on Next.JS and Sanity. Look around and if you find any issues or have suggestions, please feel free to file an issue or pull request.
## Live preview
When you add a new page to sanity it's really nice to add live preview as well.
### Client
If you want to add live preview to a [slug] page, you need to use getClient(preview) in getStaticProps and then usePreviewSubscription followed by filterDataToSingleItem.
To make it clearer that the user is in preview mode we use the `ExitPreviewLink` component in every page that live preview should show.
### Studio
If you want to add live preview to a document type you will need to add .views to deskStructure and then do the same as above.
You might need to take a look in resolveProductionUrl as well.
## Client
[Client readme](https://github.com/Iteam1337/Iteam-next-site/blob/main/client/README.md)
## Studio
[Studio readme](https://github.com/Iteam1337/Iteam-next-site/blob/main/studio/README.md)