PageSourceSearch

https://soundsauce.ai/assets/Dashboard-qgolHong.js

js soundsauce.ai collected 2026-10-05 14:43:16 UTC 4,015 bytes, 27 lines download raw bytes

1import{r as i,g as n,j as e}from"./index-CtslZSVi.js";import{T as d}from"./TopBar-CzsN2jyM.js";const c=()=>e.jsxs("svg",{viewBox:"0 0 24 24",width:"34",height:"34",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.jsx("polyline",{points:"7 10 12 15 17 10"}),e.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),h=()=>e.jsxs("svg",{viewBox:"0 0 24 24",width:"34",height:"34",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M3 3v18h18"}),e.jsx("rect",{x:"7",y:"12",width:"3",height:"6",rx:"1"}),e.jsx("rect",{x:"12",y:"8",width:"3",height:"10",rx:"1"}),e.jsx("rect",{x:"17",y:"5",width:"3",height:"13",rx:"1"})]});function o({href:r,art:a,title:s,sub:t}){return e.jsxs("a",{className:"hub-tile",href:r,children:[e.jsx("div",{className:"hub-art",children:a}),e.jsx("div",{className:"hub-title",children:s}),e.jsx("div",{className:"hub-sub",children:t})]})}function x(){const[r,a]=i.useState("checking");return i.useEffect(()=>{(async()=>{const{session:s,timedOut:t}=await n();if(t){a("error");return}if(!s?.access_token){a("signedout");return}a("ok")})()},[]),e.jsxs("div",{className:"hub",children:[e.jsx("style",{children:l}),e.jsx(d,{}),e.jsxs("main",{className:"hub-main",children:[e.jsx("h1",{children:"Dashboard"}),r==="checking"&&e.jsx("div",{className:"hub-msg",children:"Loading…"}),r==="error"&&e.jsxs("div",{className:"hub-msg",children:[e.jsx("p",{children:"Couldn’t load your dashboard."}),e.jsx("a",{className:"hub-cta",href:"/dashboard",children:"Retry"})]}),r==="signedout"&&e.jsxs("div",{className:"hub-msg",children:[e.jsx("p",{children:"Sign in to access your dashboard."}),e.jsx("a",{className:"hub-cta",href:"/",children:"Go to the player"})]}),r==="ok"&&e.jsxs("div",{className:"hub-grid",children:[e.jsx(o,{href:"/downloads",art:e.jsx(c,{}),title:"My Library",sub:"Loops you've saved and downloaded — play, rate, drag into your DAW"}),e.jsx(o,{href:"/studio",art:e.jsx(h,{}),title:"Producer Studio",sub:"Your packs & analytics — or join as a producer"})]})]})]})}const l=`
2.hub { --bg:#0e1014; --panel:#151821; --panel-2:#1d2230; --border:#2a3145;
3       --fg:#e6e9f2; --dim:#9aa3b8; --accent:#7aa2ff;
4       min-height:100vh; min-height:100dvh; background:var(--bg); color:var(--fg);
5       font-family:-apple-system,"SF Pro Text",Inter,system-ui,sans-serif; }
6.hub * { box-sizing:border-box; }
7.hub-main { max-width:820px; margin:0 auto; padding:1rem 1.1rem 3rem; }
8.hub-main h1 { font-size:1.9rem; font-weight:700; margin:.4rem 0 1.3rem; }
9.hub-msg { text-align:center; color:var(--dim); margin:4rem auto; max-width:460px; line-height:1.5; }
10.hub .hub-cta { display:inline-block; margin-top:1rem; background:transparent; border:1px solid var(--accent);
11       color:var(--accent); border-radius:12px; padding:.55rem 1.1rem; font-weight:600; text-decoration:none; }
12.hub .hub-cta:hover { background:var(--accent); color:#0e1014; }
13.hub-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:1rem; }
14.hub-tile { display:flex; flex-direction:column; gap:.35rem; aspect-ratio:1/1; padding:1.3rem;
15       background:var(--panel); border:1px solid var(--border); border-radius:20px; text-decoration:none; color:var(--fg);
16       transition:transform .12s ease, border-color .12s ease, background .12s ease; }
17.hub-tile:hover { transform:translateY(-2px); border-color:var(--accent); background:var(--panel-2); }
18.hub-art { flex:1 1 auto; display:flex; align-items:center; justify-content:center; color:var(--accent); }
19.hub-title { font-size:1.15rem; font-weight:700; }
20.hub-sub { color:var(--dim); font-size:.85rem; line-height:1.35; }
21@media (max-width: 520px) {
22  .hub-grid { grid-template-columns:1fr 1fr; gap:.7rem; }
23  .hub-tile { padding:1rem; border-radius:16px; }
24  .hub-title { font-size:1rem; }
25  .hub-sub { font-size:.78rem; }
26}
27`;export{x as default};

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.