build-valuecurve/_app/immutable/nodes/4.P_foqsYU.js

1 line
5.3 KiB
JavaScript

import{f as c,a as l}from"../chunks/CkL4Pxt3.js";import{p as ae,d as s,g as e,e as re,f as oe,s as i,i as M,j as E,$ as se,r as o,h as O,t as U}from"../chunks/s1dcSIVc.js";import{s as g}from"../chunks/CPMpaYR7.js";import{i as j}from"../chunks/B6leOVDb.js";import{h as ie,N as ne,e as z,F as le,r as ce,i as F,s as v,a as de}from"../chunks/DQsFLTCT.js";import{b as pe}from"../chunks/SaFGkI3k.js";import{b as ve}from"../chunks/2Jbz9SS3.js";var ge=c('<meta name="description" content="Interactive Jupyter notebooks for hands-on learning. Open directly in Google Colab."/>'),me=c("<option> </option>"),ue=c('<a target="_blank" rel="noopener noreferrer" class="inline-flex items-center gap-2 px-4 py-2 bg-yellow-400 hover:bg-yellow-500 text-gray-900 rounded-lg text-sm font-medium transition-colors"><svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm0 2.4c5.302 0 9.6 4.298 9.6 9.6s-4.298 9.6-9.6 9.6S2.4 17.302 2.4 12 6.698 2.4 12 2.4z"></path></svg> Open in Colab</a>'),be=c('<span class="inline-flex items-center gap-2 px-4 py-2 bg-gray-100 text-gray-400 rounded-lg text-sm font-medium">Coming Soon</span>'),xe=c('<div><div class="flex items-start justify-between mb-4"><div><span> </span></div> <span> </span></div> <h3> </h3> <p> </p> <!></div>'),fe=c('<div class="text-center py-12"><p class="text-gray-500">No notebooks found matching your criteria.</p></div>'),ye=c('<div class="min-h-screen bg-gradient-to-b from-slate-50 to-white"><!> <main class="pt-24 pb-16 px-6"><div class="max-w-6xl mx-auto"><div class="text-center mb-12"><h1 class="text-4xl font-bold text-gray-900 mb-4">Notebooks</h1> <p class="text-gray-600 max-w-2xl mx-auto">Interactive Jupyter notebooks for hands-on learning. Open directly in Google Colab - no setup required.</p></div> <div class="flex flex-col sm:flex-row gap-4 mb-8"><div class="flex-1"><input type="text" placeholder="Search notebooks..." class="w-full px-4 py-2.5 border border-gray-200 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-all"/></div> <select class="px-4 py-2.5 border border-gray-200 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 bg-white"><option>All Categories</option><!></select></div> <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6"></div> <!></div></main> <!></div>');function Te(G,q){ae(q,!0);const B=[{title:"Exploratory Data Analysis",description:"Exploratory data analysis using the Gapminder dataset. Learn data wrangling, visualization, and insights extraction.",category:"EDA",colabUrl:"https://colab.research.google.com/github/valuecurve/notebooks/blob/main/eda-gapminder.ipynb",icon:"🌍"},{title:"Statistical Tests Practice",description:"Hands-on practice with t-tests, ANOVA, chi-square, and correlation analysis using real datasets.",category:"STATISTICS",colabUrl:"https://colab.research.google.com/github/valuecurve/notebooks/blob/main/statistical-tests.ipynb",icon:"📊"},{title:"Linear Regression Deep Dive",description:"From simple to multiple regression. Understand assumptions, diagnostics, and interpretation.",category:"ML",colabUrl:"#",icon:"📈"},{title:"Classification Models",description:"Logistic regression, decision trees, and random forests. Compare model performance and interpret results.",category:"ML",colabUrl:"#",icon:"🎯"}];let m=E(""),u=E("all");const J=["all","EDA","STATISTICS","ML"],k=O(()=>B.filter(t=>{const a=t.title.toLowerCase().includes(e(m).toLowerCase())||t.description.toLowerCase().includes(e(m).toLowerCase()),r=e(u)==="all"||t.category===e(u);return a&&r}));function H(t){switch(t.toUpperCase()){case"EDA":return"bg-teal-100 text-teal-700";case"STATISTICS":return"bg-blue-100 text-blue-700";case"ML":return"bg-orange-100 text-orange-700";default:return"bg-gray-100 text-gray-700"}}var h=ye();ie("t5mrr1",t=>{var a=ge();oe(()=>{se.title="Notebooks | Build with AI"}),l(t,a)});var N=s(h);ne(N,{});var _=i(N,2),$=s(_),w=i(s($),2),C=s(w),D=s(C);ce(D),o(C);var S=i(C,2),A=s(S);A.value=A.__value="all";var P=i(A);z(P,17,()=>J.filter(t=>t!=="all"),F,(t,a)=>{var r=me(),d=s(r,!0);o(r);var p={};U(()=>{g(d,e(a)),p!==(p=e(a))&&(r.value=(r.__value=e(a))??"")}),l(t,r)}),o(S),o(w);var L=i(w,2);z(L,21,()=>e(k),F,(t,a)=>{const r=O(()=>e(a).colabUrl!=="#");var d=xe(),p=s(d),b=s(p),T=s(b),K=s(T,!0);o(T),o(b);var I=i(b,2),W=s(I,!0);o(I),o(p);var x=i(p,2),X=s(x,!0);o(x);var f=i(x,2),Y=s(f,!0);o(f);var Z=i(f,2);{var ee=n=>{var y=ue();U(()=>de(y,"href",e(a).colabUrl)),l(n,y)},te=n=>{var y=be();l(n,y)};j(Z,n=>{e(r)?n(ee):n(te,!1)})}o(d),U(n=>{v(d,1,`group block p-6 bg-white rounded-2xl border border-gray-100 ${e(r)?"card-hover":"opacity-75"}`),v(b,1,`w-12 h-12 rounded-xl ${e(r)?"bg-primary-50":"bg-gray-100"} flex items-center justify-center ${e(r)?"transition-transform group-hover:scale-110":""}`),v(T,1,`text-2xl ${e(r)?"":"grayscale"}`),g(K,e(a).icon),v(I,1,`text-xs font-medium px-2 py-1 rounded-full ${n??""}`),g(W,e(a).category),v(x,1,`text-lg font-semibold ${e(r)?"text-gray-900 group-hover:text-primary-600":"text-gray-400"} mb-2 transition-colors`),g(X,e(a).title),v(f,1,`${e(r)?"text-gray-600":"text-gray-400"} text-sm leading-relaxed mb-4`),g(Y,e(a).description)},[()=>H(e(a).category)]),l(t,d)}),o(L);var Q=i(L,2);{var R=t=>{var a=fe();l(t,a)};j(Q,t=>{e(k).length===0&&t(R)})}o($),o(_);var V=i(_,2);le(V),o(h),pe(D,()=>e(m),t=>M(m,t)),ve(S,()=>e(u),t=>M(u,t)),l(G,h),re()}export{Te as component};