update iframe rules drive contacts diary
This commit is contained in:
parent
2195309080
commit
e9b646facb
@ -1,6 +1,7 @@
|
|||||||
import { getServerSession } from "next-auth/next";
|
import { getServerSession } from "next-auth/next";
|
||||||
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
|
import { ResponsiveIframe } from "@/app/components/responsive-iframe";
|
||||||
|
|
||||||
export default async function Page() {
|
export default async function Page() {
|
||||||
const session = await getServerSession(authOptions);
|
const session = await getServerSession(authOptions);
|
||||||
@ -12,19 +13,16 @@ export default async function Page() {
|
|||||||
return (
|
return (
|
||||||
<main className="w-full h-screen bg-black">
|
<main className="w-full h-screen bg-black">
|
||||||
<div className="w-full h-full px-4 pt-12 pb-4">
|
<div className="w-full h-full px-4 pt-12 pb-4">
|
||||||
<iframe
|
<ResponsiveIframe
|
||||||
src={process.env.NEXT_PUBLIC_IFRAME_CONTACTS_URL}
|
src={process.env.NEXT_PUBLIC_IFRAME_CONTACTS_URL || ''}
|
||||||
className="w-full h-full border-none"
|
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
|
className="relative"
|
||||||
style={{
|
style={{
|
||||||
marginTop: '-64px',
|
marginTop: '-64px',
|
||||||
marginLeft: '-180px',
|
marginLeft: '-180px',
|
||||||
width: 'calc(100% + 500px)',
|
width: 'calc(100% + 500px)',
|
||||||
position: 'relative',
|
|
||||||
right: '-160px'
|
right: '-160px'
|
||||||
}}
|
}}
|
||||||
allowFullScreen
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { getServerSession } from "next-auth/next";
|
import { getServerSession } from "next-auth/next";
|
||||||
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
|
import { ResponsiveIframe } from "@/app/components/responsive-iframe";
|
||||||
|
|
||||||
export default async function Page() {
|
export default async function Page() {
|
||||||
const session = await getServerSession(authOptions);
|
const session = await getServerSession(authOptions);
|
||||||
@ -12,19 +13,16 @@ export default async function Page() {
|
|||||||
return (
|
return (
|
||||||
<main className="w-full h-screen bg-black">
|
<main className="w-full h-screen bg-black">
|
||||||
<div className="w-full h-full px-4 pt-12 pb-4">
|
<div className="w-full h-full px-4 pt-12 pb-4">
|
||||||
<iframe
|
<ResponsiveIframe
|
||||||
src={process.env.NEXT_PUBLIC_IFRAME_DIARY_URL}
|
src={process.env.NEXT_PUBLIC_IFRAME_DIARY_URL || ''}
|
||||||
className="w-full h-full border-none"
|
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
|
className="relative"
|
||||||
style={{
|
style={{
|
||||||
marginTop: '-64px',
|
marginTop: '-64px',
|
||||||
marginLeft: '-180px',
|
marginLeft: '-180px',
|
||||||
width: 'calc(100% + 500px)',
|
width: 'calc(100% + 500px)',
|
||||||
position: 'relative',
|
|
||||||
right: '-160px'
|
right: '-160px'
|
||||||
}}
|
}}
|
||||||
allowFullScreen
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { getServerSession } from "next-auth/next";
|
import { getServerSession } from "next-auth/next";
|
||||||
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
|
import { ResponsiveIframe } from "@/app/components/responsive-iframe";
|
||||||
|
|
||||||
export default async function Page() {
|
export default async function Page() {
|
||||||
const session = await getServerSession(authOptions);
|
const session = await getServerSession(authOptions);
|
||||||
@ -12,19 +13,16 @@ export default async function Page() {
|
|||||||
return (
|
return (
|
||||||
<main className="w-full h-screen bg-black">
|
<main className="w-full h-screen bg-black">
|
||||||
<div className="w-full h-full px-4 pt-12 pb-4">
|
<div className="w-full h-full px-4 pt-12 pb-4">
|
||||||
<iframe
|
<ResponsiveIframe
|
||||||
src={process.env.NEXT_PUBLIC_IFRAME_DRIVE_URL}
|
src={process.env.NEXT_PUBLIC_IFRAME_DRIVE_URL || ''}
|
||||||
className="w-full h-full border-none"
|
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
|
className="relative"
|
||||||
style={{
|
style={{
|
||||||
marginTop: '-64px',
|
marginTop: '-64px',
|
||||||
marginLeft: '-180px',
|
marginLeft: '-180px',
|
||||||
width: 'calc(100% + 500px)',
|
width: 'calc(100% + 500px)',
|
||||||
position: 'relative',
|
|
||||||
right: '-160px'
|
right: '-160px'
|
||||||
}}
|
}}
|
||||||
allowFullScreen
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user