Mindset test (Fixed vs Growth) inspired by Carol S. Dweck’s book “Mindset”. Built with Next.js App Router, ready for Vercel, and fully localized with copy stored in one language file.
- Landing page patterned after sleep-test.org with a clear start CTA and language chips.
- Six-point Likert questionnaire with reverse scoring baked in and a progress bar that mirrors the sleep-test experience.
- Professional results page with share-ready metadata and social links.
- All visible text, questions, and ranges live in
lib/dictionary.tsfor easy editing from the locale dropdown.
- Install dependencies and start the dev server:
npm install npm run dev
- Open
http://localhost:3000/(middleware redirects to the defaultenlocale). Switch locales via the chips on the landing page.
- Import the repository into Vercel and choose Next.js.
- Build command:
npm run build(Vercel runsnpm installautomatically). - Output directory:
.next. - i18n is configured with locales
en,no, andptinnext.config.mjs, defaulting toen.
- Copy, questions, Likert labels, and result ranges live in
lib/dictionary.tsforen,no, andpt. - Global styling for landing, questionnaire, and results is in
app/globals.css. - Primary routes:
/[locale]: landing/[locale]/quiz: questionnaire/[locale]/result: results page (usesscorein the query string)