Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
callmewhy committed Nov 23, 2024
1 parent ae3f8bc commit 502a62c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/example/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { Safari } from '@/components/safari'
import { useSearchParams } from 'react-router-dom'

export default function () {
const [search] = useSearchParams()
const url = search.get('url') ?? `${window.origin}/dapp`

return (
<div className="flex-center h-95vh">
<div className="relative mt-5vh h-[753px] w-[1202px]">
<Safari url={`${window.origin}/dapp`} width={1203} height={753} className="absolute" />
<Safari url={url} width={1203} height={753} className="absolute" />
<div className="relative z-100 mb-[2px] size-full pt-[52px] overflow-hidden rounded-b-xl">
<iframe src="/dapp" className="h-full w-full border-0" />
<iframe src={url} className="h-full w-full border-0" />
</div>
</div>
</div>
Expand Down

0 comments on commit 502a62c

Please sign in to comment.