GithubHelp home page GithubHelp logo

evavic44 / sanity-nextjs-site Goto Github PK

View Code? Open in Web Editor NEW
66.0 3.0 14.0 364 KB

Modern portfolio site built with Next.js 13, Sanity, Tailwind CSS and TypeScript

Home Page: https://sanity-nextjs-site.vercel.app

TypeScript 96.21% CSS 0.27% JavaScript 3.52%
nextjs nextjs13 portfolio sanity tailwindcss typescript freecodecamp app-dir

sanity-nextjs-site's Introduction

sanity

Sanity.io + NextJS Portfolio Site

A portfolio template built with Next.js, Tailwind CSS and Sanity.io for content

To use this template for your portfolio site, follow the guide: How to build a Portfolio Site with Sanity and Next.js to learn how to set-up your Sanity account and connect the schema data

Features

  • A performant, static personal personal website with editable projects
  • Manage portfolio content through sanity content lake by visiting yourwebsite.com/studio
  • Webhook-triggered continuous deployment; Content updates will automatically trigger a build command
  • Built with cutting-edge technologies: Next.js 13, TypeScript, Tailwind CSS

Project Overview

Personal Website Studio
Personal Website Sanity Studio

Important files and folders

File(s) Description
sanity.config.ts Config file for Sanity Studio
sanity.client.ts Config file for Sanity CLI
studio Where Sanity Studio is mounted
schemas Where Sanity Studio gets its content types from
sanity.query.ts Where Sanity data is described and retrieved

Run project locally

git clone https://github.com/Evavic44/sanity-nextjs-site.git

cd sanity-nextjs-site

npm install

npm run dev

Visit http://localhost:3000 to see your site
Visit http://localhost:3000/studio to edit content

Next steps

sanity-nextjs-site's People

Contributors

davidrmellors avatar evavic44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sanity-nextjs-site's Issues

Unable to expose a schema

Hi everyone! I've been following the tutorial successfully until I reached the Job schema. For some reason I cannot expose it. This is how my schemas index.ts code looks:

import job from "./job";
import profile from "./profile";

export const schemaTypes = [job, profile];

I have also tried to expose only the Job schema by removing the Profile from the array, but still I only see the Profile tab as shown here:
image

Any ideas? It might be something really small but I'm stuck.
Thank you in advance ๐Ÿ™‚

Q: SSR or SSG?

Thanks for this tutorial! I really enjoyed doing it. ๐Ÿ‘

Something that isn't clear: what rendering strategy is being used? Static? Server-side? Since getStaticProps or getServerSideProps isn't being used, it isn't clear to me.

Content not updating when making changes in Sanity studio

Hi Victor and all,

I've been following this tutorial and it's amazing to learn about Sanity headless CMS.
However, I encountered an issue about using the studio. Whenever I make changes in the studio, it does not reflect the changes on the website. I did set up the deployment hook to make sure that the site rebuilds automatically every time I save changes in the studio. Does anyone know why? Should I use getStaticProps() to fetch the data instead? Here is a deployment log from Vercel for your information. Thank you.

image

Resume missing file extension

Hi there,

upon clicking the download resume button, the resume downloads as
a file that has no extension. I tried troubleshooting by myself, but can't
seem to fix the problem

Hopefully you can help.

no-extension

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.