(null)
+ const techIndex = useRef(0)
useEffect(() => {
const interval = setInterval(
@@ -23,14 +22,14 @@ export const Splash = () => {
onAnimationEnd={() => setDrops((c) => c.slice(1))}
>
{STACK[techIndex.current++ % STACK.length]}
-
- )
+ ,
+ ),
),
- 1000
- );
+ 1000,
+ )
- return () => clearInterval(interval);
- }, []);
+ return () => clearInterval(interval)
+ }, [])
return (
@@ -42,5 +41,5 @@ export const Splash = () => {
SST Template
- );
-};
+ )
+}
diff --git a/web/lib/component/home/Splash/Stack.tsx b/web/app/lib/ui/Hero/Stack.tsx
similarity index 100%
rename from web/lib/component/home/Splash/Stack.tsx
rename to web/app/lib/ui/Hero/Stack.tsx
diff --git a/web/app/page.tsx b/web/app/page.tsx
index f890163..b0a91f3 100644
--- a/web/app/page.tsx
+++ b/web/app/page.tsx
@@ -1,9 +1,9 @@
-import Home from '@/lib/component/home/Home'
+import { Hero } from './lib/ui/Hero/Hero'
export default function Page() {
return (
-
+
)
}
diff --git a/web/app/sample/page.tsx b/web/app/sample/page.tsx
index 0ecfd5b..3fe9027 100644
--- a/web/app/sample/page.tsx
+++ b/web/app/sample/page.tsx
@@ -6,8 +6,8 @@ import { TestGql } from './TestGql'
export default () => {
return (
-
+
-
+
)
}
diff --git a/web/app/serverActions.ts b/web/app/serverActions.ts
index a3ba638..6cc5831 100644
--- a/web/app/serverActions.ts
+++ b/web/app/serverActions.ts
@@ -20,5 +20,5 @@ export async function authenticate(redirectTo?: string) {
}
export async function unauthenticate() {
- await signOut()
+ await signOut({ redirectTo: '/' })
}
diff --git a/web/lib/component/home/Home.tsx b/web/lib/component/home/Home.tsx
deleted file mode 100644
index 91e845c..0000000
--- a/web/lib/component/home/Home.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react'
-
-import { Splash } from './Splash/Splash'
-
-const Home: React.FC = () => {
- return (
-
-
-
- )
-}
-
-export default Home