diff --git a/assets/index-DlGSIR6c.js b/assets/index-B7UEgDBY.js similarity index 99% rename from assets/index-DlGSIR6c.js rename to assets/index-B7UEgDBY.js index d45c71c..2a24c75 100644 --- a/assets/index-DlGSIR6c.js +++ b/assets/index-B7UEgDBY.js @@ -64,4 +64,4 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function dh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ph(e,t){return e.button===0&&(!t||t==="_self")&&!dh(e)}const hh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],mh="6";try{window.__reactRouterVersion=mh}catch{}const vh="startTransition",ms=sf[vh];function gh(e){let{basename:t,children:n,future:r,window:l}=e,o=x.useRef();o.current==null&&(o.current=xp({window:l,v5Compat:!0}));let i=o.current,[u,s]=x.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=x.useCallback(p=>{a&&ms?ms(()=>s(p)):s(p)},[s,a]);return x.useLayoutEffect(()=>i.listen(h),[i,h]),x.createElement(ah,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const yh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oo=x.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:h,unstable_viewTransition:p}=t,m=fh(t,hh),{basename:g}=x.useContext(Mt),y,w=!1;if(typeof a=="string"&&wh.test(a)&&(y=a,yh))try{let d=new URL(window.location.href),v=a.startsWith("//")?new URL(d.protocol+a):new URL(a),k=qi(v.pathname,g);v.origin===d.origin&&k!=null?a=k+v.search+v.hash:w=!0}catch{}let E=Xp(a,{relative:l}),f=Sh(a,{replace:i,state:u,target:s,preventScrollReset:h,relative:l,unstable_viewTransition:p});function c(d){r&&r(d),d.defaultPrevented||f(d)}return x.createElement("a",ri({},m,{href:y||E,onClick:w||o?r:c,ref:n,target:s}))});var vs;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vs||(vs={}));var gs;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gs||(gs={}));function Sh(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,s=Gp(),a=Ll(),h=Bc(e,{relative:i});return x.useCallback(p=>{if(ph(p,n)){p.preventDefault();let m=r!==void 0?r:al(a)===al(h);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[a,s,h,r,l,n,e,o,i,u])}const kh=""+new URL("react-CHdo91hT.svg",import.meta.url).href,xh=""+new URL("../vite.svg",import.meta.url).href,Eh=()=>{const[e,t]=x.useState(0);return z.jsx("div",{className:"flex items-center justify-center min-h-[50vh] bg-background-light dark:bg-background-dark",children:z.jsxs("div",{className:"text-center",children:[z.jsxs("div",{className:"flex justify-center mb-6",children:[z.jsx("a",{href:"https://vitejs.dev",target:"_blank",children:z.jsx("img",{src:xh,className:"logo",alt:"Vite logo"})}),z.jsx("a",{href:"https://react.dev",target:"_blank",children:z.jsx("img",{src:kh,className:"logo react",alt:"React logo"})})]}),z.jsx("h1",{className:"text-3xl font-bold text-primary-light dark:text-primary-dark",children:"Hello, Vite + React + TypeScript + Tailwind CSS!"}),z.jsxs("div",{className:"card mt-6",children:[z.jsxs("button",{onClick:()=>t(n=>n+1),className:"btn text-text-light",children:["count is ",e]}),z.jsxs("p",{className:"mt-3",children:["Edit ",z.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})]}),z.jsx("p",{className:"read-the-docs mt-6",children:"Click on the Vite and React logos to learn more"})]})})},Ch=()=>z.jsx("div",{className:"flex items-center justify-center min-h-[50vh] bg-background-light dark:bg-background-dark",children:z.jsx("h1",{className:"text-3xl font-bold text-primary-light dark:text-primary-dark",children:"About Page"})}),_h=()=>{const{theme:e,toggleTheme:t}=kp();return z.jsx("button",{onClick:t,className:"p-2 rounded bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-200",children:e==="light"?"Dark Mode":"Light Mode"})},Ph=()=>z.jsx("header",{className:"bg-white shadow-lg",children:z.jsxs("div",{className:"container mx-auto px-6 py-3 flex justify-between items-center",children:[z.jsx(oo,{to:"/",className:"text-blue-500 text-xl font-bold",children:"Logo"}),z.jsxs("nav",{className:"flex space-x-4",children:[z.jsx(oo,{to:"/",className:"text-gray-800 hover:text-blue-500",children:"Home"}),z.jsx(oo,{to:"/about",className:"text-gray-800 hover:text-blue-500",children:"About"})]}),z.jsx(_h,{})]})});function Nh(){return z.jsx(gh,{basename:"/",children:z.jsxs("div",{className:"min-h-screen bg-background-light dark:bg-background-dark text-text-light dark:text-text-dark",children:[z.jsx("div",{className:"mb-10",children:z.jsx(Ph,{})}),z.jsx("div",{className:"container mx-auto p-6",children:z.jsxs(ch,{children:[z.jsx(ti,{path:"/",element:z.jsx(Eh,{})}),z.jsx(ti,{path:"/about",element:z.jsx(Ch,{})})]})})]})})}io.createRoot(document.getElementById("root")).render(z.jsx(Ls.StrictMode,{children:z.jsx(Sp,{children:z.jsx(Nh,{})})})); + */function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function dh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ph(e,t){return e.button===0&&(!t||t==="_self")&&!dh(e)}const hh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],mh="6";try{window.__reactRouterVersion=mh}catch{}const vh="startTransition",ms=sf[vh];function gh(e){let{basename:t,children:n,future:r,window:l}=e,o=x.useRef();o.current==null&&(o.current=xp({window:l,v5Compat:!0}));let i=o.current,[u,s]=x.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=x.useCallback(p=>{a&&ms?ms(()=>s(p)):s(p)},[s,a]);return x.useLayoutEffect(()=>i.listen(h),[i,h]),x.createElement(ah,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const yh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oo=x.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:h,unstable_viewTransition:p}=t,m=fh(t,hh),{basename:g}=x.useContext(Mt),y,w=!1;if(typeof a=="string"&&wh.test(a)&&(y=a,yh))try{let d=new URL(window.location.href),v=a.startsWith("//")?new URL(d.protocol+a):new URL(a),k=qi(v.pathname,g);v.origin===d.origin&&k!=null?a=k+v.search+v.hash:w=!0}catch{}let E=Xp(a,{relative:l}),f=Sh(a,{replace:i,state:u,target:s,preventScrollReset:h,relative:l,unstable_viewTransition:p});function c(d){r&&r(d),d.defaultPrevented||f(d)}return x.createElement("a",ri({},m,{href:y||E,onClick:w||o?r:c,ref:n,target:s}))});var vs;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vs||(vs={}));var gs;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gs||(gs={}));function Sh(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,s=Gp(),a=Ll(),h=Bc(e,{relative:i});return x.useCallback(p=>{if(ph(p,n)){p.preventDefault();let m=r!==void 0?r:al(a)===al(h);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[a,s,h,r,l,n,e,o,i,u])}const kh=""+new URL("react-CHdo91hT.svg",import.meta.url).href,xh=""+new URL("../vite.svg",import.meta.url).href,Eh=()=>{const[e,t]=x.useState(0);return z.jsx("div",{className:"flex items-center justify-center min-h-[50vh] bg-background-light dark:bg-background-dark",children:z.jsxs("div",{className:"text-center",children:[z.jsxs("div",{className:"flex justify-center mb-6",children:[z.jsx("a",{href:"https://vitejs.dev",target:"_blank",children:z.jsx("img",{src:xh,className:"logo",alt:"Vite logo"})}),z.jsx("a",{href:"https://react.dev",target:"_blank",children:z.jsx("img",{src:kh,className:"logo react",alt:"React logo"})})]}),z.jsx("h1",{className:"text-3xl font-bold text-primary-light dark:text-primary-dark",children:"Hello, Vite + React + TypeScript + Tailwind CSS!"}),z.jsxs("div",{className:"card mt-6",children:[z.jsxs("button",{onClick:()=>t(n=>n+1),className:"btn text-text-light",children:["count is ",e]}),z.jsxs("p",{className:"mt-3",children:["Edit ",z.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})]}),z.jsx("p",{className:"read-the-docs mt-6",children:"Click on the Vite and React logos to learn more"})]})})},Ch=()=>z.jsx("div",{className:"flex items-center justify-center min-h-[50vh] bg-background-light dark:bg-background-dark",children:z.jsx("h1",{className:"text-3xl font-bold text-primary-light dark:text-primary-dark",children:"About Page"})}),_h=()=>{const{theme:e,toggleTheme:t}=kp();return z.jsx("button",{onClick:t,className:"p-2 rounded bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-200",children:e==="light"?"Dark Mode":"Light Mode"})},Ph=()=>z.jsx("header",{className:"bg-white shadow-lg",children:z.jsxs("div",{className:"container mx-auto px-6 py-3 flex justify-between items-center",children:[z.jsx(oo,{to:"/",className:"text-blue-500 text-xl font-bold",children:"Logo"}),z.jsxs("nav",{className:"flex space-x-4",children:[z.jsx(oo,{to:"/",className:"text-gray-800 hover:text-blue-500",children:"Home"}),z.jsx(oo,{to:"/about",className:"text-gray-800 hover:text-blue-500",children:"About"})]}),z.jsx(_h,{})]})});function Nh(){return z.jsx(gh,{basename:"/vite-react-ts-boilerplate/",children:z.jsxs("div",{className:"min-h-screen bg-background-light dark:bg-background-dark text-text-light dark:text-text-dark",children:[z.jsx("div",{className:"mb-10",children:z.jsx(Ph,{})}),z.jsx("div",{className:"container mx-auto p-6",children:z.jsxs(ch,{children:[z.jsx(ti,{path:"/",element:z.jsx(Eh,{})}),z.jsx(ti,{path:"/about",element:z.jsx(Ch,{})})]})})]})})}io.createRoot(document.getElementById("root")).render(z.jsx(Ls.StrictMode,{children:z.jsx(Sp,{children:z.jsx(Nh,{})})})); diff --git a/index.html b/index.html index 5c44fc0..f44bf47 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +