TomasBankauskas / testing-portfolio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto-annoteted Example: Developer Potfolio Site

Developer Portfolio

This is a full-fledged portfolio website built with Next.js, Tailwind & the Git Content Source.

The codebase showcases how to apply annotations at scale, meaning: how to make much of your components highlightable in the visual editor through data attributes without manually adding code throughout the codebase.

This is achieved by:

  1. Adding an annotation property to the content objects at they're loaded (see src/utils/content.ts)
  2. When rendering the page, each content sub-object is dynamically matched to the appropriate component. At this point, wrap each component with an annotation, based on the abovementioned content property. See src/components/components-registry.tsx.

⚡ Demo: personal-nextjs.stackbit.app

Getting Started

The typical development process is to begin by working locally.

Create local Stackbit project from this repo:

npx create-stackbit-app@latest --example auto-annotated-portfolio

Run the Next.js development server:

cd my-stackbit-site
npm run dev

Install the Stackbit CLI. Then open a new terminal window in the same project directory and run the Stackbit Dev server:

npm install -g @stackbit/cli
stackbit dev

This outputs your own Stackbit URL. Open this, register or sign in, and you will be directed to Stackbit's visual editor for your new project.

Next.js Dev + Stackbit Dev

Next Steps

Here are a few suggestions on what to do next if you're new to Stackbit:

Other Stackbit Projects

Stackbit has a number of examples that you can use to create a new project or evaluate Stackbit. Run the following command to see a list of available examples:

npx create-stackbit-app@latest --help

You can also visit our stackbit-themes GitHub organization

Join the Community

Join us on Discord for community support and to showcase what you build with this starter.

About


Languages

Language:TypeScript 94.4%Language:JavaScript 3.0%Language:CSS 2.6%