PageSourceSearch

https://careerdiary.io/assets/PublicCareerScorePage-CPa1jRLD.js

js careerdiary.io collected 2026-10-02 01:57:57 UTC 3,099 bytes, 1 lines download raw bytes

1import{r as t,j as e}from"./animation-CddyXVCz.js";import{ab as o,p as x,ac as m,h as d,S as h,J as p,B as u,i as g}from"./index-DnWsV7cE.js";import"./react-vendor-CbN3pvl2.js";import"./supabase-iKSPld20.js";import"./docgen-Bp8WKBAE.js";import"./query-DPqpbKNH.js";const S=()=>{const{shareId:s}=o(),[a,i]=t.useState(null),[c,l]=t.useState(!0);return x({title:a?`Career Readiness Score: ${a.totalScore}/100 | CareerDiary`:"Career Readiness Score | CareerDiary",description:(a==null?void 0:a.summary)||"See a shared CareerDiary readiness score and compare your own.",canonical:`https://careerdiary.io/score/${s||""}`}),t.useEffect(()=>{if(!s)return;let r=!0;return m(s).then(n=>{r&&i(n)}).catch(()=>{r&&i(null)}).finally(()=>{r&&l(!1)}),()=>{r=!1}},[s]),e.jsx("div",{className:"min-h-screen min-h-dvh bg-[var(--bg-primary)] px-4 py-10",children:e.jsxs("div",{className:"mx-auto max-w-4xl space-y-6",children:[e.jsx(d,{variant:"glass",className:"overflow-hidden bg-gradient-to-br from-indigo-500/16 via-white to-white dark:from-indigo-500/10 dark:via-slate-900 dark:to-slate-900",children:c?e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-8 w-48 rounded bg-slate-200 dark:bg-slate-700"}),e.jsx("div",{className:"h-4 w-3/4 rounded bg-slate-200 dark:bg-slate-700"})]}):a?e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-indigo-500/10 px-3 py-1 text-xs font-semibold uppercase tracking-[0.2em] text-indigo-700 dark:text-indigo-300",children:[e.jsx(h,{className:"h-4 w-4"}),"Shared Report Card"]}),e.jsxs("div",{className:"text-5xl font-bold text-[var(--text-primary)]",children:[a.totalScore,"/100"]}),e.jsx("p",{className:"max-w-2xl text-base text-[var(--text-secondary)]",children:a.summary}),e.jsx("div",{className:"grid gap-3 md:grid-cols-3",children:a.dimensions.map(r=>e.jsxs("div",{className:"rounded-2xl border border-[var(--border-default)] bg-white/80 p-4 dark:bg-slate-950/50",children:[e.jsx("div",{className:"text-xs uppercase tracking-[0.16em] text-[var(--text-secondary)]",children:r.label}),e.jsx("div",{className:"mt-3 text-2xl font-bold text-[var(--text-primary)]",children:r.score})]},r.id))})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsx("h1",{className:"text-2xl font-bold text-[var(--text-primary)]",children:"Score not found"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:"This shared report is missing or expired."})]})}),e.jsx(d,{variant:"glass",children:e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-[var(--text-primary)]",children:"Check your own career readiness"}),e.jsx("p",{className:"mt-2 text-sm text-[var(--text-secondary)]",children:"Upload your resume, track accomplishments, and generate your own shareable score."})]}),e.jsx(p,{to:"/signup",children:e.jsx(u,{variant:"primary",size:"md",rightIcon:e.jsx(g,{className:"h-4 w-4"}),children:"Get Your Score"})})]})})]})})};export{S as PublicCareerScorePage};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.