Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
alifnaufalyasin authored Feb 23, 2022
1 parent 08c2735 commit d6e50f2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/ButtonAiTalks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ButtonZoom = () => {
<Skeleton isLoaded={showSkelton}>
<Image
alt="AiTalks : Episode 2"
src="/assets/images/AiTalksEps2.jpg?webp"
src="/assets/images/AiTalksEps2.png?webp"
fallbackSrc="/assets/images/AiTalksEps2.png?lqip"
loading='lazy'
maxH={{ base: "70vh", lg: "75vh" }}
Expand Down
23 changes: 23 additions & 0 deletions pages/AiTalks2.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { useEffect } from 'react'
import { Heading } from "@chakra-ui/react";
import { useRouter } from 'next/router'

// Here you would fetch and return the user
const useUser = () => ({ user: null, loading: false })

export default function Page() {
const { user, loading } = useUser()
const router = useRouter()

useEffect(() => {
if (!(user || loading)) {
router.push('https://ailabtelkom.github.io/AiTalks')
}
}, [user, loading])

return (
<Heading as="h2" fontSize={{ base: "lg", lg: "xl" }}>
Redirecting to Discord...
</Heading>
)
}
Binary file added public/assets/images/AiTalksEps2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d6e50f2

Please sign in to comment.