update iframe rules drive contacts diary

This commit is contained in:
Alma 2025-04-09 15:39:38 +02:00
parent 2195309080
commit e9b646facb
3 changed files with 15 additions and 21 deletions

View File

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

View File

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

View File

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